signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ErrorHandling { /** * This will report an error from a tag . The error will
* contain a message . If error reporting is turned off ,
* the message will be returned and the caller should throw
* a JspException to report the error .
* @ param message - the message to register with the error
* @ thr... | assert ( message != null ) : "parameter 'message' must not be null." ; // add the error to the list of errors
if ( _errors == null ) _errors = new ArrayList ( ) ; TagErrorInfo tei = new TagErrorInfo ( ) ; tei . tagType = tagName ; tei . message = message ; _errors . add ( tei ) ; IErrorReporter er = getErrorReporter ( ... |
public class AtomCache { /** * Returns the representation of a { @ link ScopDomain } as a BioJava { @ link Structure } object .
* @ param scopId
* a SCOP Id
* @ return a Structure object
* @ throws IOException
* @ throws StructureException */
public Structure getStructureForDomain ( String scopId ) throws IOE... | return getStructureForDomain ( scopId , ScopFactory . getSCOP ( ) ) ; |
public class Person { /** * The instance method sets the new password for the current context user .
* Before the new password is set , some checks are made .
* @ param _ newPasswd new Password to set
* @ throws EFapsException on error
* @ return true if password set , else false */
public Status setPassword ( ... | final Type type = CIAdminUser . Person . getType ( ) ; if ( _newPasswd . length ( ) == 0 ) { throw new EFapsException ( getClass ( ) , "PassWordLength" , 1 , _newPasswd . length ( ) ) ; } final Update update = new Update ( type , "" + getId ( ) ) ; final Status status = update . add ( CIAdminUser . Person . Password , ... |
public class ExtractorMojo { /** * Create CSV by using all the projects provided . */
private String createMultiProjectCSV ( ) { } } | String csvData = null ; List < IProject > projects = null ; IProject project = null ; if ( isProjectKeyProvided ( ) ) { project = getExtractor ( ) . getProject ( getProjectKey ( ) ) ; projects = new ArrayList < IProject > ( ) ; projects . add ( project ) ; } else if ( isProjectKeyPatternProvided ( ) ) { projects = getE... |
public class UcsApi { /** * Create a new contact
* @ param createContactData ( required )
* @ return ApiResponse & lt ; ApiSuccessResponse & gt ;
* @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the response body */
public ApiResponse < ApiSuccessResponse > createContac... | com . squareup . okhttp . Call call = createContactValidateBeforeCall ( createContactData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class IntegerRangeDropdownFilterComposite { /** * Calculates the ranges that the developer implemented in config . xml and
* in MainContentPanel . ui . xml and puts them in an ArrayList that will be used
* in setupRange ( String fieldName ) to fill the values of the ListBox */
private ArrayList < String > ca... | ArrayList < String > allTheValues = new ArrayList < String > ( ) ; int minSampleSizeInteger = Integer . parseInt ( minSampleSize ) ; int maxSampleSizeInteger = Integer . parseInt ( maxSampleSize ) ; int incrementInteger = Integer . parseInt ( increment ) ; for ( int i = minSampleSizeInteger ; i < maxSampleSizeInteger ;... |
public class ShardCache { /** * worry about concurrency . */
private void loadShardCache ( TableDefinition tableDef ) { } } | String appName = tableDef . getAppDef ( ) . getAppName ( ) ; String tableName = tableDef . getTableName ( ) ; m_logger . debug ( "Loading shard cache for {}.{}" , appName , tableName ) ; Date cacheDate = new Date ( ) ; String cacheKey = appName + "/" + tableName ; m_cacheMap . put ( cacheKey , cacheDate ) ; Map < Strin... |
public class AwsClientBuilder { /** * Sets the AWSCredentialsProvider used by the client . If not specified the default is { @ link
* DefaultAWSCredentialsProviderChain } .
* @ param credentialsProvider New AWSCredentialsProvider to use . */
public final void setCredentials ( AWSCredentialsProvider credentialsProvi... | this . credentials = credentialsProvider ; if ( null != this . iamEndpoint ) { if ( ( this . credentials . getCredentials ( ) instanceof IBMOAuthCredentials ) && ( ( IBMOAuthCredentials ) this . credentials . getCredentials ( ) ) . getTokenManager ( ) instanceof DefaultTokenManager ) { ( ( DefaultTokenManager ) ( ( IBM... |
public class Monitors { /** * Extract all fields / methods of { @ code obj } that have a monitor annotation and add them to
* { @ code monitors } . */
static void addAnnotatedFields ( List < Monitor < ? > > monitors , String id , TagList tags , Object obj ) { } } | final Class < com . netflix . servo . annotations . Monitor > annoClass = com . netflix . servo . annotations . Monitor . class ; try { Set < Field > fields = getFieldsAnnotatedBy ( obj . getClass ( ) , annoClass ) ; for ( Field field : fields ) { final com . netflix . servo . annotations . Monitor anno = field . getAn... |
public class Locale { /** * Replies the text that corresponds to the specified resource .
* @ param key is the name of the resource into the specified file
* @ param defaultValue is the default value to replies if the resource does not contain the specified key .
* @ param params is the the list of parameters whi... | return getStringWithDefault ( ClassLoaderFinder . findClassLoader ( ) , detectResourceClass ( null ) , key , defaultValue , params ) ; |
public class AmqpMessageHandlerService { /** * * Executed if a amqp message arrives .
* @ param message
* the message
* @ param type
* the type
* @ param tenant
* the tenant
* @ param virtualHost
* the virtual host
* @ return the rpc message back to supplier . */
public Message onMessage ( final Messa... | if ( StringUtils . isEmpty ( type ) || StringUtils . isEmpty ( tenant ) ) { throw new AmqpRejectAndDontRequeueException ( "Invalid message! tenant and type header are mandatory!" ) ; } final SecurityContext oldContext = SecurityContextHolder . getContext ( ) ; try { final MessageType messageType = MessageType . valueOf... |
public class SortedGrouping { /** * Applies a GroupCombineFunction on a grouped { @ link DataSet } .
* A CombineFunction is similar to a GroupReduceFunction but does not perform a full data exchange . Instead , the
* CombineFunction calls the combine method once per partition for combining a group of results . This... | if ( combiner == null ) { throw new NullPointerException ( "GroupCombine function must not be null." ) ; } TypeInformation < R > resultType = TypeExtractor . getGroupCombineReturnTypes ( combiner , this . getInputDataSet ( ) . getType ( ) , Utils . getCallLocationName ( ) , true ) ; return new GroupCombineOperator < > ... |
public class LinkedList { /** * Retrieves and removes the first element of this list ,
* or returns { @ code null } if this list is empty .
* @ return the first element of this list , or { @ code null } if
* this list is empty
* @ since 1.6 */
public E pollFirst ( ) { } } | final Node < E > f = first ; return ( f == null ) ? null : unlinkFirst ( f ) ; |
public class CommerceShipmentModelImpl { /** * Converts the soap model instances into normal model instances .
* @ param soapModels the soap model instances to convert
* @ return the normal model instances */
public static List < CommerceShipment > toModels ( CommerceShipmentSoap [ ] soapModels ) { } } | if ( soapModels == null ) { return null ; } List < CommerceShipment > models = new ArrayList < CommerceShipment > ( soapModels . length ) ; for ( CommerceShipmentSoap soapModel : soapModels ) { models . add ( toModel ( soapModel ) ) ; } return models ; |
public class Channel { /** * Get signed byes of the update channel .
* @ param updateChannelConfiguration
* @ param signer
* @ return
* @ throws InvalidArgumentException */
public byte [ ] getUpdateChannelConfigurationSignature ( UpdateChannelConfiguration updateChannelConfiguration , User signer ) throws Inval... | userContextCheck ( signer ) ; if ( null == updateChannelConfiguration ) { throw new InvalidArgumentException ( "channelConfiguration is null" ) ; } try { TransactionContext transactionContext = getTransactionContext ( signer ) ; final ByteString configUpdate = ByteString . copyFrom ( updateChannelConfiguration . getUpd... |
public class tmtrafficaction { /** * Use this API to add tmtrafficaction resources . */
public static base_responses add ( nitro_service client , tmtrafficaction resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { tmtrafficaction addresources [ ] = new tmtrafficaction [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new tmtrafficaction ( ) ; addresources [ i ] . name = resources [ i ] . name ; addr... |
public class JsonDBTemplate { /** * / * ( non - Javadoc )
* @ see io . jsondb . JsonDBOperations # createCollection ( java . lang . Class ) */
@ Override public < T > void createCollection ( Class < T > entityClass ) { } } | createCollection ( Util . determineCollectionName ( entityClass ) ) ; |
public class ReactionSetManipulator { /** * Get all Reactions object containing a Molecule as a Product from a set of
* Reactions .
* @ param reactSet The set of reaction to inspect
* @ param molecule The molecule to find as a product
* @ return The IReactionSet */
public static IReactionSet getRelevantReaction... | IReactionSet newReactSet = reactSet . getBuilder ( ) . newInstance ( IReactionSet . class ) ; for ( IReaction reaction : reactSet . reactions ( ) ) { for ( IAtomContainer atomContainer : reaction . getProducts ( ) . atomContainers ( ) ) if ( atomContainer . equals ( molecule ) ) newReactSet . addReaction ( reaction ) ;... |
public class URLUtil { /** * Method that tries to get a stream ( ideally , optimal one ) to write to
* the resource specified by given URL .
* Currently it just means creating a simple file output stream if the
* URL points to a ( local ) file , and otherwise relying on URL classes
* input stream creation metho... | if ( "file" . equals ( url . getProtocol ( ) ) ) { /* As per [ WSTX - 82 ] , can not do this if the path refers
* to a network drive on windows . */
String host = url . getHost ( ) ; if ( host == null || host . length ( ) == 0 ) { return new FileOutputStream ( url . getPath ( ) ) ; } } return url . openConnection ( )... |
public class MapWithProtoValuesSubject { /** * Compares float fields with these explicitly specified top - level field numbers using the
* provided absolute tolerance .
* @ param tolerance A finite , non - negative tolerance . */
public MapWithProtoValuesFluentAssertion < M > usingFloatToleranceForFieldsForValues (... | return usingConfig ( config . usingFloatToleranceForFields ( tolerance , asList ( firstFieldNumber , rest ) ) ) ; |
public class OtpCookedConnection { /** * pass the message to the node for final delivery . Note that the connection
* itself needs to know about links ( in case of connection failure ) , so we
* snoop for link / unlink too here . */
@ Override public void deliver ( final OtpMsg msg ) { } } | final boolean delivered = self . deliver ( msg ) ; switch ( msg . type ( ) ) { case OtpMsg . linkTag : if ( delivered ) { links . addLink ( msg . getRecipientPid ( ) , msg . getSenderPid ( ) ) ; } else { try { // no such pid - send exit to sender
super . sendExit ( msg . getRecipientPid ( ) , msg . getSenderPid ( ) , n... |
public class DBManagerService { /** * Get the DBService for the default database . This object is created when the
* DBManagerService is started .
* @ return { @ link DBService } for the defaultdatabase . */
public DBService getDefaultDB ( ) { } } | String defaultTenantName = TenantService . instance ( ) . getDefaultTenantName ( ) ; synchronized ( m_tenantDBMap ) { DBService dbservice = m_tenantDBMap . get ( defaultTenantName ) ; assert dbservice != null : "Database for default tenant not found" ; return dbservice ; } |
public class ListDomainNamesResult { /** * The names of the search domains owned by an account .
* @ param domainNames
* The names of the search domains owned by an account .
* @ return Returns a reference to this object so that method calls can be chained together . */
public ListDomainNamesResult withDomainName... | setDomainNames ( domainNames ) ; return this ; |
public class RecoveryDirectorImpl { /** * Internal method to initiate recovery processing of the given FailureScope . All
* registered RecoveryAgent objects will be directed to process the FailureScope
* in sequence .
* @ param FailureScope The FailureScope to process .
* @ return boolean success */
@ Override ... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "directInitialization" , new Object [ ] { failureScope , this } ) ; // Use configuration to determine if recovery is local ( for z / OS ) .
final FailureScope currentFailureScope = Configuration . localFailureScope ( ) ; /* @ LI1578-22A */
// Synchronize to ensure consis... |
public class Payments { /** * 根据transactionId查询退款记录
* @ param transactionId
* @ return */
public RefundQuery refundQueryByTransactionId ( String transactionId ) { } } | RefundQueryRequestWrapper refundQueryRequestWrapper = new RefundQueryRequestWrapper ( ) ; refundQueryRequestWrapper . setTransactionId ( transactionId ) ; return refundQuery ( refundQueryRequestWrapper ) ; |
public class ProjectTask { /** * Add this field in the Record ' s field sequence . */
public BaseField setupField ( int iFieldSeq ) { } } | BaseField field = null ; // if ( iFieldSeq = = 0)
// field = new CounterField ( this , ID , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ;
// field . setHidden ( true ) ;
// if ( iFieldSeq = = 1)
// field = new RecordChangedField ( this , LAST _ CHANGED , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ;
/... |
public class Context { /** * Helper method used to work around logic errors related to the recursive
* nature of the JSONLD - API Context Processing Algorithm .
* @ param localContext
* The Local Context object .
* @ param remoteContexts
* The list of Strings denoting the remote Context URLs .
* @ param par... | if ( remoteContexts == null ) { remoteContexts = new ArrayList < String > ( ) ; } // 1 . Initialize result to the result of cloning active context .
Context result = this . clone ( ) ; // TODO : clone ?
if ( ! ( localContext instanceof List ) ) { final Object temp = localContext ; localContext = new ArrayList < Object ... |
public class ProviderManager { /** * Returns the IQ provider registered to the specified XML element name and namespace .
* For example , if a provider was registered to the element name " query " and the
* namespace " jabber : iq : time " , then the following stanza would trigger the provider :
* < pre >
* & l... | String key = getKey ( elementName , namespace ) ; return iqProviders . get ( key ) ; |
public class ScriptExecutor { /** * Execute a CQL script template located in the class path and
* inject provided values into the template to produce the actual script
* @ param scriptTemplateLocation the location of the script template in the class path
* @ param values template values */
public void executeScri... | final List < SimpleStatement > statements = buildStatements ( loadScriptAsLines ( scriptTemplateLocation , values ) ) ; for ( SimpleStatement statement : statements ) { if ( isDMLStatement ( statement ) ) { DML_LOGGER . debug ( "\tSCRIPT : {}\n" , statement . getQueryString ( ) ) ; } else { DDL_LOGGER . debug ( "\tSCRI... |
public class AbstractEndpointParser { /** * Subclasses can override this parsing method in order to provide proper endpoint configuration bean definition properties .
* @ param endpointConfigurationBuilder
* @ param element
* @ param parserContext
* @ return */
protected void parseEndpointConfiguration ( BeanDe... | BeanDefinitionParserUtils . setPropertyValue ( endpointConfigurationBuilder , element . getAttribute ( "timeout" ) , "timeout" ) ; |
public class ListLocalContext { /** * Gets an item to the left or right of the central item in this
* context . Negative offsets get an item on the left ( e . g . , - 2 gets
* the second item on the left ) and positive offsets get an item on
* the right . If { @ code relativeOffset } refers to a word off the end ... | int index = wordIndex + relativeOffset ; if ( index < 0 ) { return endFunction . apply ( index ) ; } else if ( index >= items . size ( ) ) { int endWordIndex = index - ( items . size ( ) - 1 ) ; return endFunction . apply ( endWordIndex ) ; } else { return items . get ( index ) ; } |
public class Md5Utils { /** * Computes the MD5 hash of the given data and returns it as an array of
* bytes . */
public static byte [ ] computeMD5Hash ( byte [ ] input ) { } } | try { MessageDigest md = MessageDigest . getInstance ( "MD5" ) ; return md . digest ( input ) ; } catch ( NoSuchAlgorithmException e ) { // should never get here
throw new IllegalStateException ( e ) ; } |
public class CirculantGraph { /** * Required configuration for each range of offsets in the graph .
* @ param offset first offset appointing the vertices ' position
* @ param length number of contiguous offsets in range
* @ return this */
public CirculantGraph addRange ( long offset , long length ) { } } | Preconditions . checkArgument ( offset >= MINIMUM_OFFSET , "Range offset must be at least " + MINIMUM_OFFSET ) ; Preconditions . checkArgument ( length <= vertexCount - offset , "Range length must not be greater than the vertex count minus the range offset." ) ; offsetRanges . add ( new OffsetRange ( offset , length ) ... |
public class Parser { /** * 11.12 Conditional Expression */
private ParseTree parseConditional ( Expression expressionIn ) { } } | SourcePosition start = getTreeStartLocation ( ) ; ParseTree condition = parseLogicalOR ( expressionIn ) ; if ( peek ( TokenType . QUESTION ) ) { eat ( TokenType . QUESTION ) ; ParseTree left = parseAssignment ( expressionIn ) ; eat ( TokenType . COLON ) ; ParseTree right = parseAssignment ( expressionIn ) ; return new ... |
public class Channel { /** * If the logo is local , you can provide a drawable instead of a URL
* Provide the id from R . drawable . { id } as a String
* @ param id resource name of your logo
* @ param yourPackageName Package name of your app ( should be a temporary thing )
* @ return Itself */
public Channel s... | String endpoint = "android.resource://" + id + "/drawable/" ; this . logoUrl = endpoint + id ; return this ; |
public class MediaPanel { /** * Performs the actual painting of the media panel . Derived methods can override this method if
* they wish to perform pre - and / or post - paint activities or if they wish to provide their own
* painting mechanism entirely . */
protected void paint ( Graphics2D gfx , Rectangle [ ] di... | int dcount = dirty . length ; for ( int ii = 0 ; ii < dcount ; ii ++ ) { Rectangle clip = dirty [ ii ] ; // sanity - check the dirty rectangle
if ( clip == null ) { log . warning ( "Found null dirty rect painting media panel?!" , new Exception ( ) ) ; continue ; } // constrain this dirty region to the bounds of the com... |
public class TruggerGenericTypeResolver { /** * Resolves the generic parameter name of a class .
* @ param parameterName the parameter name
* @ param target the target class
* @ return the parameter class . */
static Class < ? > resolveParameterName ( String parameterName , Class < ? > target ) { } } | Map < Type , Type > typeVariableMap = getTypeVariableMap ( target ) ; Set < Entry < Type , Type > > set = typeVariableMap . entrySet ( ) ; Type type = Object . class ; for ( Entry < Type , Type > entry : set ) { if ( entry . getKey ( ) . toString ( ) . equals ( parameterName ) ) { type = entry . getKey ( ) ; break ; } ... |
public class TokenSub { /** * Given a static config map , substitute occurrences of $ { HERON _ * } variables
* in the provided URL
* @ param config a static map config object of key value pairs
* @ param pathString string representing a path including $ { HERON _ * } variables
* @ return String string that rep... | Matcher m = URL_PATTERN . matcher ( pathString ) ; if ( m . matches ( ) ) { return String . format ( "%s://%s" , m . group ( 1 ) , substitute ( config , m . group ( 2 ) ) ) ; } return pathString ; |
public class CSSColorHelper { /** * Get the passed values as CSS HSLA color value
* @ param nHue
* Hue - is scaled to 0-359
* @ param nSaturation
* Saturation - is scaled to 0-100
* @ param nLightness
* Lightness - is scaled to 0-100
* @ param fOpacity
* Opacity - is scaled to 0-1
* @ return The CSS s... | return new StringBuilder ( 32 ) . append ( CCSSValue . PREFIX_HSLA_OPEN ) . append ( getHSLHueValue ( nHue ) ) . append ( ',' ) . append ( getHSLPercentageValue ( nSaturation ) ) . append ( "%," ) . append ( getHSLPercentageValue ( nLightness ) ) . append ( "%," ) . append ( getOpacityToUse ( fOpacity ) ) . append ( CC... |
public class DefaultImageFormatChecker { /** * Checks if imageHeaderBytes starts with SOI ( start of image ) marker , followed by 0xFF .
* If headerSize is lower than 3 false is returned .
* Description of jpeg format can be found here :
* < a href = " http : / / www . w3 . org / Graphics / JPEG / itu - t81 . pdf... | return headerSize >= JPEG_HEADER . length && ImageFormatCheckerUtils . startsWithPattern ( imageHeaderBytes , JPEG_HEADER ) ; |
public class RiakClient { /** * NB : IntelliJ will see the above @ see statement as invalid , but it ' s correct : https : / / bugs . openjdk . java . net / browse / JDK - 8031625 */
public static RiakClient newClient ( RiakNode . Builder nodeBuilder , List < String > addresses ) throws UnknownHostException { } } | final RiakCluster cluster = new RiakCluster . Builder ( nodeBuilder , addresses ) . build ( ) ; cluster . start ( ) ; return new RiakClient ( cluster ) ; |
public class DB { /** * Clears a single taxonomy term associated with a post .
* @ param postId The post id .
* @ param taxonomyTermId The taxonomy term id .
* @ throws SQLException on database error . */
public void clearPostTerm ( final long postId , final long taxonomyTermId ) throws SQLException { } } | Connection conn = null ; PreparedStatement stmt = null ; Timer . Context ctx = metrics . postTermsClearTimer . time ( ) ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . prepareStatement ( clearPostTermSQL ) ; stmt . setLong ( 1 , postId ) ; stmt . setLong ( 2 , taxonomyTermId ) ; stmt . executeUpda... |
public class GroovyDataReportConnector { /** * { @ inheritDoc } */
@ Override public void runReport ( Map < String , Object > extra ) { } } | try { rows = new ArrayList < Map < String , Object > > ( ) ; Script script = groovyShell . parse ( groovyScript ) ; script . setBinding ( new Binding ( ) ) ; script . getBinding ( ) . setVariable ( "rows" , rows ) ; script . getBinding ( ) . setVariable ( "columns" , getColumns ( ) ) ; script . getBinding ( ) . setVari... |
public class MultiDimensionalMap { /** * Thread safe sorted map implementation
* @ param < K >
* @ param < T >
* @ param < V >
* @ return */
public static < K , T , V > MultiDimensionalMap < K , T , V > newThreadSafeTreeBackedMap ( ) { } } | return new MultiDimensionalMap < > ( new ConcurrentSkipListMap < Pair < K , T > , V > ( ) ) ; |
public class FastaFormat { /** * method to convert all Peptides and RNAs into the natural analogue
* sequence and generates HELM2Notation
* @ param helm2Notation { @ link HELM2Notation }
* @ return analog helm2notation
* @ throws FastaFormatException if it can not be converted to analog sequence
* @ throws An... | initMapAminoAcid ( ) ; initMapNucleotides ( ) ; initMapNucleotidesNaturalAnalog ( ) ; initMapTransformNucleotides ( ) ; /* * transform / convert only the peptides + rnas into the analog sequence */
List < PolymerNotation > polymers = helm2Notation . getListOfPolymers ( ) ; for ( int i = 0 ; i < helm2Notation . getListO... |
public class Geometry { /** * Center the columns of a matrix ( in - place ) . */
public static FloatMatrix centerColumns ( FloatMatrix x ) { } } | FloatMatrix temp = new FloatMatrix ( x . rows ) ; for ( int c = 0 ; c < x . columns ; c ++ ) x . putColumn ( c , center ( x . getColumn ( c , temp ) ) ) ; return x ; |
public class PayRefundRequest { /** * 扩展信息 */
@ Override public void checkVaild ( ) { } } | super . checkVaild ( ) ; if ( this . refundmoney < 1 ) throw new RuntimeException ( "refundmoney is illegal" ) ; if ( this . paymoney < 1 ) throw new RuntimeException ( "paymoney is illegal" ) ; if ( this . refundno == null || this . refundno . isEmpty ( ) ) throw new RuntimeException ( "refundno is illegal" ) ; if ( t... |
public class log { /** * Sends an INFO log message .
* @ param message The message you would like logged .
* @ param throwable An exception to log */
public static int i ( String message , Throwable throwable ) { } } | return logger ( QuickUtils . INFO , message , throwable ) ; |
public class Table { /** * Returns a table with the same columns as this table , but no data */
public Table emptyCopy ( ) { } } | Table copy = new Table ( name ) ; for ( Column < ? > column : columnList ) { copy . addColumns ( column . emptyCopy ( ) ) ; } return copy ; |
public class InstanceResource { /** * A put request for renewing lease from a client instance .
* @ param isReplication
* a header parameter containing information whether this is
* replicated from other nodes .
* @ param overriddenStatus
* overridden status if any .
* @ param status
* the { @ link Instan... | boolean isFromReplicaNode = "true" . equals ( isReplication ) ; boolean isSuccess = registry . renew ( app . getName ( ) , id , isFromReplicaNode ) ; // Not found in the registry , immediately ask for a register
if ( ! isSuccess ) { logger . warn ( "Not Found (Renew): {} - {}" , app . getName ( ) , id ) ; return Respon... |
public class PutMailboxPermissionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( PutMailboxPermissionsRequest putMailboxPermissionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( putMailboxPermissionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putMailboxPermissionsRequest . getOrganizationId ( ) , ORGANIZATIONID_BINDING ) ; protocolMarshaller . marshall ( putMailboxPermissionsRequest . getEntityId... |
public class OQueryModel { /** * Get the size of the data
* @ return results size */
public long size ( ) { } } | if ( size == null ) { ODatabaseDocument db = OrientDbWebSession . get ( ) . getDatabase ( ) ; OSQLSynchQuery < ODocument > query = new OSQLSynchQuery < ODocument > ( queryManager . getCountSql ( ) ) ; List < ODocument > ret = db . query ( enhanceContextByVariables ( query ) , prepareParams ( ) ) ; if ( ret != null && r... |
public class PathResourceManager { /** * Apply security check for case insensitive file systems . */
protected PathResource getFileResource ( final Path file , final String path , final Path symlinkBase , String normalizedFile ) throws IOException { } } | if ( this . caseSensitive ) { if ( symlinkBase != null ) { String relative = symlinkBase . relativize ( file . normalize ( ) ) . toString ( ) ; String fileResolved = file . toRealPath ( ) . toString ( ) ; String symlinkBaseResolved = symlinkBase . toRealPath ( ) . toString ( ) ; if ( ! fileResolved . startsWith ( symli... |
public class CmsMenuListItem { /** * Disables the edit button with the given reason . < p >
* @ param reason the disable reason
* @ param locked < code > true < / code > if the resource is locked */
public void disableEdit ( String reason , boolean locked ) { } } | m_editButton . disable ( reason ) ; if ( locked ) { m_editButton . setImageClass ( "opencms-icon-lock-20" ) ; } |
public class ThreadPoolTaskScheduler { /** * { @ inheritDoc }
* @ see org . audit4j . core . schedule . TaskExecutor # execute ( java . lang . Runnable ) */
@ Override public void execute ( Runnable task ) { } } | Executor executor = getScheduledExecutor ( ) ; try { executor . execute ( errorHandlingTask ( task , false ) ) ; } catch ( RejectedExecutionException ex ) { throw new TaskRejectedException ( "Executor [" + executor + "] did not accept task: " + task , ex ) ; } |
public class CmsPatternPanelWeeklyController { /** * Set the weekdays at which the event should take place .
* @ param weekDays the weekdays at which the event should take place . */
public void setWeekDays ( SortedSet < WeekDay > weekDays ) { } } | final SortedSet < WeekDay > newWeekDays = null == weekDays ? new TreeSet < WeekDay > ( ) : weekDays ; SortedSet < WeekDay > currentWeekDays = m_model . getWeekDays ( ) ; if ( ! currentWeekDays . equals ( newWeekDays ) ) { conditionallyRemoveExceptionsOnChange ( new Command ( ) { public void execute ( ) { m_model . setW... |
public class UrlStringBuilder { /** * Adds the provided elements to the path
* @ param elements Path elements to add
* @ return this */
public UrlStringBuilder addPath ( String ... elements ) { } } | Validate . noNullElements ( elements , "elements cannot be null" ) ; for ( final String element : elements ) { this . path . add ( element ) ; } return this ; |
public class ConfluenceGreenPepper { /** * Verifies if the the selectedSystemUnderTestInfo matches the specified key
* @ param selectedSystemUnderTestInfo a { @ link java . lang . String } object .
* @ param key a { @ link java . lang . String } object .
* @ return true if the the selectedSystemUnderTestInfo matc... | return selectedSystemUnderTestInfo != null ? selectedSystemUnderTestInfo . equals ( key ) : false ; |
public class AWSKMSAsyncClient { /** * Simplified method form for invoking the CreateKey operation with an AsyncHandler .
* @ see # createKeyAsync ( CreateKeyRequest , com . amazonaws . handlers . AsyncHandler ) */
@ Override public java . util . concurrent . Future < CreateKeyResult > createKeyAsync ( com . amazonaw... | return createKeyAsync ( new CreateKeyRequest ( ) , asyncHandler ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getSECCOLSPCE ( ) { } } | if ( seccolspceEEnum == null ) { seccolspceEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 68 ) ; } return seccolspceEEnum ; |
public class PrintStreamOutput { /** * Escapes args ' string values according to format
* @ param format the Format used by the PrintStream
* @ param args the array of args to escape
* @ return The cloned and escaped array of args */
protected Object [ ] escape ( final Format format , Object ... args ) { } } | // Transformer that escapes HTML , XML , JSON strings
Transformer < Object , Object > escapingTransformer = new Transformer < Object , Object > ( ) { @ Override public Object transform ( Object object ) { return format . escapeValue ( object ) ; } } ; List < Object > list = Arrays . asList ( ArrayUtils . clone ( args )... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcFlowStorageDevice ( ) { } } | if ( ifcFlowStorageDeviceEClass == null ) { ifcFlowStorageDeviceEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 288 ) ; } return ifcFlowStorageDeviceEClass ; |
public class IPSettings { /** * puts all the children at the IPv4 or IPv6 nodes for fast insertion . this method does not look for
* a more accurate insertion point and is useful when adding many items at once , e . g . for Country
* Codes of all known IP ranges
* @ param children */
public void putAll ( List < I... | for ( IPRangeNode child : children ) { this . put ( child , false ) ; // pass false for optimized insertion performance
} |
public class AuditLoggerFactory { /** * Creates new instance of JMS audit logger based on given connection factory and queue .
* NOTE : this will build the logger but it is not registered directly on a session : once received ,
* it will need to be registered as an event listener
* @ param transacted determines i... | AsyncAuditLogProducer logger = new AsyncAuditLogProducer ( ) ; logger . setTransacted ( transacted ) ; logger . setConnectionFactory ( connFactory ) ; logger . setQueue ( queue ) ; return logger ; |
public class App { /** * Adds a user - defined data type to the types map .
* @ param pluralDatatype the plural form of the type
* @ param datatype a datatype , must not be null or empty */
public void addDatatype ( String pluralDatatype , String datatype ) { } } | pluralDatatype = Utils . noSpaces ( Utils . stripAndTrim ( pluralDatatype , " " ) , "-" ) ; datatype = Utils . noSpaces ( Utils . stripAndTrim ( datatype , " " ) , "-" ) ; if ( StringUtils . isBlank ( pluralDatatype ) || StringUtils . isBlank ( datatype ) ) { return ; } if ( getDatatypes ( ) . size ( ) >= Config . MAX_... |
public class JarArchiveRepository { /** * Translated a module id to an absolute path of the module jar */
protected Path getModuleJarPath ( ModuleId moduleId ) { } } | Path moduleJarPath = rootDir . resolve ( moduleId + ".jar" ) ; return moduleJarPath ; |
public class ServerRequest { /** * Update the additional metadata provided using { @ link Branch # setRequestMetadata ( String , String ) } to the requests . */
private void updateRequestMetadata ( ) { } } | // Take event level metadata , merge with top level metadata
// event level metadata takes precedence
try { JSONObject metadata = new JSONObject ( ) ; Iterator < String > i = prefHelper_ . getRequestMetadata ( ) . keys ( ) ; while ( i . hasNext ( ) ) { String k = i . next ( ) ; metadata . put ( k , prefHelper_ . getReq... |
public class DomainValidator { /** * Returns true if the specified < code > String < / code > matches any
* widely used " local " domains ( localhost or localdomain ) . Leading dots are
* ignored if present . The search is case - insensitive .
* @ param lTld the parameter to check for local TLD status , not null ... | final String key = chompLeadingDot ( unicodeToASCII ( lTld ) . toLowerCase ( Locale . ENGLISH ) ) ; return arrayContains ( LOCAL_TLDS , key ) ; |
public class WebACRolesProvider { /** * Given a path ( e . g . / a / b / c / d ) retrieve a list of all ancestor paths .
* In this case , that would be a list of " / a / b / c " , " / a / b " , " / a " and " / " . */
private static List < String > getAllPathAncestors ( final String path ) { } } | final List < String > segments = asList ( path . split ( "/" ) ) ; return range ( 1 , segments . size ( ) ) . mapToObj ( frameSize -> FEDORA_INTERNAL_PREFIX + "/" + String . join ( "/" , segments . subList ( 1 , frameSize ) ) ) . collect ( toList ( ) ) ; |
public class BreadCrumbPresenter { /** * Sets up the BreadcrumbBar depending on the displayed category . */
public void setupBreadCrumbBar ( ) { } } | String [ ] stringArr = model . getDisplayedCategory ( ) . getBreadcrumb ( ) . split ( BREADCRUMB_DELIMITER ) ; Category [ ] categories = new Category [ stringArr . length ] ; // Collecting all parent categories from the displayed category using the breadcrumb .
// There will always be at least one category which will b... |
public class Matrix { /** * multiplies this matrix by ' b ' and returns the result
* See http : / / en . wikipedia . org / wiki / Matrix _ multiplication
* @ param by The matrix to multiply by
* @ returnthe resulting matrix */
public Matrix multiply ( Matrix by ) { } } | Matrix rslt = new Matrix ( ) ; float [ ] a = vals ; float [ ] b = by . vals ; float [ ] c = rslt . vals ; c [ I11 ] = a [ I11 ] * b [ I11 ] + a [ I12 ] * b [ I21 ] + a [ I13 ] * b [ I31 ] ; c [ I12 ] = a [ I11 ] * b [ I12 ] + a [ I12 ] * b [ I22 ] + a [ I13 ] * b [ I32 ] ; c [ I13 ] = a [ I11 ] * b [ I13 ] + a [ I12 ] ... |
public class ControlBeanContext { /** * Resets the composite control ID for this context and all children beneath it . This
* can be used to invalidate cached values when necessary ( for example , when a context
* is reparented ) . */
private void resetControlID ( ) { } } | _controlID = null ; for ( Object child : this ) { if ( child instanceof ControlBeanContext ) ( ( ControlBeanContext ) child ) . resetControlID ( ) ; } |
public class WizardProjectsImportPageProxy { /** * utils */
private Button getMainPageButton ( String field ) throws NoSuchFieldException , SecurityException , IllegalArgumentException , IllegalAccessException { } } | Field f = mainPage . getClass ( ) . getDeclaredField ( field ) ; f . setAccessible ( true ) ; return ( Button ) f . get ( mainPage ) ; |
public class ACETernWriter { /** * initialize */
public void initialize ( ) throws ResourceInitializationException { } } | mDocNum = 0 ; convertTimex3To2 = ( Boolean ) getConfigParameterValue ( PARAM_CONVERTTIMEX3TO2 ) ; mOutputDir = new File ( ( String ) getConfigParameterValue ( PARAM_OUTPUTDIR ) ) ; if ( ! mOutputDir . exists ( ) ) { mOutputDir . mkdirs ( ) ; } |
public class WCOutputStream31 { /** * @ see javax . servlet . ServletOutputStream # println ( boolean ) */
public void println ( boolean b ) throws IOException { } } | if ( this . _listener != null && ! checkIfCalledFromWLonError ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "non blocking println boolean , WriteListener enabled: " + this . _listener ) ; this . println_NonBlocking ( Boolean . toString ( b ) ) ; } else { if ( Trace... |
public class MyActivity { /** * Called when the activity is first created . */
@ Override public void onCreate ( Bundle savedInstanceState ) { } } | super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . main ) ; final InfiniteViewPager viewPager = ( InfiniteViewPager ) findViewById ( R . id . infinite_viewpager ) ; viewPager . setAdapter ( new MyInfinitePagerAdapter ( 0 ) ) ; viewPager . setPageMargin ( 20 ) ; viewPager . setOnInfinitePageChangeLi... |
public class NotifyConfigurationTypeMarshaller { /** * Marshall the given parameter object . */
public void marshall ( NotifyConfigurationType notifyConfigurationType , ProtocolMarshaller protocolMarshaller ) { } } | if ( notifyConfigurationType == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( notifyConfigurationType . getFrom ( ) , FROM_BINDING ) ; protocolMarshaller . marshall ( notifyConfigurationType . getReplyTo ( ) , REPLYTO_BINDING ) ; protocolM... |
public class SerialVersionUIDAdder { /** * Computes and returns the value of SVUID .
* @ return Returns the serial version UID
* @ throws IOException
* if an I / O error occurs */
protected long computeSVUID ( ) throws IOException { } } | ByteArrayOutputStream bos ; DataOutputStream dos = null ; long svuid = 0 ; try { bos = new ByteArrayOutputStream ( ) ; dos = new DataOutputStream ( bos ) ; /* * 1 . The class name written using UTF encoding . */
dos . writeUTF ( name . replace ( '/' , '.' ) ) ; /* * 2 . The class modifiers written as a 32 - bit integer... |
public class PartialUniqueIndex { /** * Transfer all entries from src to dest tables */
private void transfer ( Entry [ ] src , Entry [ ] dest ) { } } | for ( int j = 0 ; j < src . length ; ++ j ) { Entry e = src [ j ] ; src [ j ] = null ; while ( e != null ) { Entry next = e . next ; Object key = e . get ( ) ; if ( key == null || ( timeToLive > 0 && ( ( TimedEntry ) e ) . isExpired ( timeToLive ) ) ) { e . next = null ; // Help GC
size -- ; } else { int i = indexFor (... |
public class Pareto { /** * Calculates the < em > non - domination < / em > rank of the given input { @ code set } ,
* using the given { @ code dominance } comparator .
* @ apiNote
* Calculating the rank has a time and space complexity of { @ code O ( n ^ 2 } ,
* where { @ code n } the { @ code set } size .
*... | // Pre - compute the dominance relations .
final int [ ] [ ] d = new int [ set . size ( ) ] [ set . size ( ) ] ; for ( int i = 0 ; i < set . size ( ) ; ++ i ) { for ( int j = i + 1 ; j < set . size ( ) ; ++ j ) { d [ i ] [ j ] = dominance . compare ( set . get ( i ) , set . get ( j ) ) ; d [ j ] [ i ] = - d [ i ] [ j ]... |
public class PdfReport { /** * cette méthode est utilisée dans l ' ihm Swing */
public void preInitGraphs ( Map < String , byte [ ] > newSmallGraphs , Map < String , byte [ ] > newSmallOtherGraphs , Map < String , byte [ ] > newLargeGraphs ) { } } | pdfCoreReport . preInitGraphs ( newSmallGraphs , newSmallOtherGraphs , newLargeGraphs ) ; |
public class ClassUtils { /** * Return the user - defined class for the given instance : usually simply
* the class of the given instance , but the original class in case of a
* CGLIB - generated subclass .
* @ param instance the instance to check
* @ return the user - defined class */
public static Class < ? >... | Assert . notNull ( instance , "Instance must not be null" ) ; return getUserClass ( instance . getClass ( ) ) ; |
public class JapanesePersonRecognition { /** * 插入日本人名
* @ param name
* @ param activeLine
* @ param wordNetOptimum
* @ param wordNetAll */
private static void insertName ( String name , int activeLine , WordNet wordNetOptimum , WordNet wordNetAll ) { } } | if ( isBadCase ( name ) ) return ; wordNetOptimum . insert ( activeLine , new Vertex ( Predefine . TAG_PEOPLE , name , new CoreDictionary . Attribute ( Nature . nrj ) , WORD_ID ) , wordNetAll ) ; |
public class Engine { /** * Removes the output variable of the given name .
* @ param name is the name of the output variable
* @ return the output variable of the given name
* @ throws RuntimeException if there is no variable with the given name */
public OutputVariable removeOutputVariable ( String name ) { } } | for ( Iterator < OutputVariable > it = this . outputVariables . iterator ( ) ; it . hasNext ( ) ; ) { OutputVariable outputVariable = it . next ( ) ; if ( outputVariable . getName ( ) . equals ( name ) ) { it . remove ( ) ; return outputVariable ; } } throw new RuntimeException ( String . format ( "[engine error] no ou... |
public class SandBoxMaker { /** * Generate command string */
public String sandboxPolicy ( String workerId , Map < String , String > replaceMap ) throws IOException { } } | if ( ! isEnable ) { return "" ; } replaceMap . putAll ( replaceBaseMap ) ; String tmpPolicy = generatePolicyFile ( replaceMap ) ; File file = new File ( tmpPolicy ) ; String policyPath = StormConfig . worker_root ( conf , workerId ) + File . separator + SANBOX_TEMPLATE_NAME ; File dest = new File ( policyPath ) ; file ... |
public class LongTupleIterators { /** * Returns an iterator that returns the { @ link MutableLongTuple } s from the
* given delegate , wrapped at the given bounds . < br >
* < br >
* NOTE : The iterator will store REFERENCES to the given bounds .
* They may NOT be modified while the iteration is in progress .
... | return new Iterator < MutableLongTuple > ( ) { @ Override public boolean hasNext ( ) { return delegate . hasNext ( ) ; } @ Override public MutableLongTuple next ( ) { return LongTupleUtils . wrap ( delegate . next ( ) , bounds ) ; } @ Override public void remove ( ) { delegate . remove ( ) ; } } ; |
public class NetUtils { /** * Get the socket factory corresponding to the given proxy URI . If the
* given proxy URI corresponds to an absence of configuration parameter ,
* returns null . If the URI is malformed raises an exception .
* @ param propValue the property which is the class name of the
* SocketFacto... | try { Class < ? > theClass = conf . getClassByName ( propValue ) ; return ( SocketFactory ) ReflectionUtils . newInstance ( theClass , conf ) ; } catch ( ClassNotFoundException cnfe ) { throw new RuntimeException ( "Socket Factory class not found: " + cnfe ) ; } |
public class AppServiceEnvironmentsInner { /** * Get all worker pools of an App Service Environment .
* Get all worker pools of an App Service Environment .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service Environment .
* @ throws Ille... | ServiceResponse < Page < WorkerPoolResourceInner > > response = listWorkerPoolsSinglePageAsync ( resourceGroupName , name ) . toBlocking ( ) . single ( ) ; return new PagedList < WorkerPoolResourceInner > ( response . body ( ) ) { @ Override public Page < WorkerPoolResourceInner > nextPage ( String nextPageLink ) { ret... |
public class FilePolicyIndex { /** * ( non - Javadoc )
* @ see
* org . fcrepo . server . security . xacml . pdp . data . PolicyDataManager # deletePolicy ( java . lang . String ) */
@ Override public boolean deletePolicy ( String name ) throws PolicyIndexException { } } | writeLock . lock ( ) ; try { logger . debug ( "Deleting policy named: " + name ) ; return doDelete ( name ) ; } finally { writeLock . unlock ( ) ; } |
public class AbstractBeanJsonSerializer { /** * { @ inheritDoc } */
@ Override public void doSerialize ( JsonWriter writer , T value , JsonSerializationContext ctx , JsonSerializerParameters params ) { } } | getSerializer ( writer , value , ctx ) . serializeInternally ( writer , value , ctx , params , defaultIdentityInfo , defaultTypeInfo ) ; |
public class ChatLinearLayoutManager { /** * Helper method to call appropriate recycle method depending on current layout direction
* @ param recycler Current recycler that is attached to RecyclerView
* @ param layoutState Current layout state . Right now , this object does not change but
* we may consider moving... | if ( ! layoutState . mRecycle ) { return ; } if ( layoutState . mLayoutDirection == LayoutState . LAYOUT_START ) { recycleViewsFromEnd ( recycler , layoutState . mScrollingOffset ) ; } else { recycleViewsFromStart ( recycler , layoutState . mScrollingOffset ) ; } |
public class JavaTypeUtil { /** * 处理泛型名称
* @ param fullName 泛型全名
* @ return 泛型的名称 */
private static String dealName ( String fullName ) { } } | Matcher matcher = SUPER_PATTERN . matcher ( fullName ) ; String name ; if ( matcher . find ( ) ) { name = matcher . group ( 1 ) ; } else { matcher = EXTENDS_PATTERN . matcher ( fullName ) ; if ( matcher . find ( ) ) { name = matcher . group ( 1 ) ; } else { name = fullName ; } } return name ; |
public class PrimitiveCases { /** * Matches a float . */
public static DecomposableMatchBuilder0 < Float > caseFloat ( float f ) { } } | List < Matcher < Object > > matchers = new ArrayList < > ( ) ; matchers . add ( eq ( f ) ) ; return new DecomposableMatchBuilder0 < > ( matchers , new PrimitiveFieldExtractor < > ( Float . class ) ) ; |
public class ListTagsForCertificateRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListTagsForCertificateRequest listTagsForCertificateRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listTagsForCertificateRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listTagsForCertificateRequest . getCertificateArn ( ) , CERTIFICATEARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to mars... |
public class CommerceAccountUtil { /** * Returns an ordered range of all the commerce accounts that the user has permissions to view where userId = & # 63 ; and type = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > ... | return getPersistence ( ) . filterFindByU_T ( userId , type , start , end , orderByComparator ) ; |
public class OpenAddressingHashMap { /** * If finish ( ) has already been called on this map , this method returns the
* value associated with the specified key . If the specified key is not in
* this map , returns null .
* If finish ( ) has not been called on this map , this method always returns
* null . */
@... | // Math . abs ( x % n ) is the same as ( x & n - 1 ) when n is a power of 2
int hashModMask = OpenAddressing . hashTableLength ( hashTable ) - 1 ; int hash = hashCode ( key ) ; int bucket = hash & hashModMask ; int hashEntry = OpenAddressing . getHashEntry ( hashTable , bucket ) * 2 ; // We found an entry at this hash ... |
public class TransactionLocalMap { /** * Version of getEntry method for use when key is not found in
* its direct hash slot .
* @ param key the thread local object
* @ param i the table index for key ' s hash code
* @ param e the entry at table [ i ]
* @ return the entry associated with key , or null if no su... | Entry [ ] tab = table ; int len = tab . length ; while ( e != null ) { if ( e . key == key ) return e . value ; i = nextIndex ( i , len ) ; e = tab [ i ] ; } return null ; |
public class Mappings { /** * ( convert to Double ) mapping
* @ param constraints constraints
* @ return new created mapping */
public static Mapping < Double > doublev ( Constraint ... constraints ) { } } | return new FieldMapping ( InputMode . SINGLE , mkSimpleConverter ( s -> isEmptyStr ( s ) ? 0.0d : Double . parseDouble ( s ) ) , new MappingMeta ( MAPPING_DOUBLE , Double . class ) ) . constraint ( checking ( Double :: parseDouble , "error.double" , true ) ) . constraint ( constraints ) ; |
public class ThriftServerConfig { /** * Sets a maximum frame size
* @ param maxFrameSize
* @ return */
@ Config ( "thrift.max-frame-size" ) public ThriftServerConfig setMaxFrameSize ( DataSize maxFrameSize ) { } } | checkArgument ( maxFrameSize . toBytes ( ) <= 0x3FFFFFFF ) ; this . maxFrameSize = maxFrameSize ; return this ; |
public class ClassCompiler { /** * Compile JavaScript source into one or more Java class files .
* The first compiled class will have name mainClassName .
* If the results of { @ link # getTargetExtends ( ) } or
* { @ link # getTargetImplements ( ) } are not null , then the first compiled
* class will extend th... | Parser p = new Parser ( compilerEnv ) ; AstRoot ast = p . parse ( source , sourceLocation , lineno ) ; IRFactory irf = new IRFactory ( compilerEnv ) ; ScriptNode tree = irf . transformTree ( ast ) ; // release reference to original parse tree & parser
irf = null ; ast = null ; p = null ; Class < ? > superClass = getTar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.