signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SetOperationBuilder { /** * Sets the Nominal Entries for this set operation . The minimum value is 16 and the maximum value
* is 67,108,864 , which is 2 ^ 26 . Be aware that Unions as large as this maximum value have not
* been thoroughly tested or characterized for performance .
* @ param nomEntries... | bLgNomLongs = Integer . numberOfTrailingZeros ( ceilingPowerOf2 ( nomEntries ) ) ; if ( ( bLgNomLongs > MAX_LG_NOM_LONGS ) || ( bLgNomLongs < MIN_LG_NOM_LONGS ) ) { throw new SketchesArgumentException ( "Nominal Entries must be >= 16 and <= 67108864: " + nomEntries ) ; } return this ; |
public class SibRaCommonEndpointActivation { /** * The messaging engine is stopping , drop the connection and , if necessary ,
* try to create a new connection */
@ Override void messagingEngineQuiescing ( SibRaMessagingEngineConnection connection ) { } } | final String methodName = "messagingEngineQuiescing" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , connection ) ; } SibTr . info ( TRACE , "ME_QUIESCING_CWSIV0785" , new Object [ ] { connection . getConnection ( ) . getMeName ( ) , _endpoin... |
public class AnnoConstruct { /** * This method is part of the javax . lang . model API , do not use this in javac code . */
@ DefinedBy ( Api . LANGUAGE_MODEL ) public < A extends Annotation > A [ ] getAnnotationsByType ( Class < A > annoType ) { } } | if ( ! annoType . isAnnotation ( ) ) throw new IllegalArgumentException ( "Not an annotation type: " + annoType ) ; // If annoType does not declare a container this is equivalent to wrapping
// getAnnotation ( . . . ) in an array .
Class < ? extends Annotation > containerType = getContainer ( annoType ) ; if ( containe... |
public class WebservicesMetaData { /** * Serialize as a String */
public String serialize ( ) { } } | // Construct the webservices . xml definitions
StringBuilder buffer = new StringBuilder ( ) ; // header : opening webservices tag
createHeader ( buffer ) ; // webservice - description subelements
for ( WebserviceDescriptionMetaData wm : webserviceDescriptions ) buffer . append ( wm . serialize ( ) ) ; // closing webser... |
public class GrafeasV1Beta1Client { /** * Gets the specified note .
* < p > Sample code :
* < pre > < code >
* try ( GrafeasV1Beta1Client grafeasV1Beta1Client = GrafeasV1Beta1Client . create ( ) ) {
* NoteName name = NoteName . of ( " [ PROJECT ] " , " [ NOTE ] " ) ;
* Note response = grafeasV1Beta1Client . g... | GetNoteRequest request = GetNoteRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return getNote ( request ) ; |
public class KafkaMsgConsumer { /** * Initializing method . */
public void init ( ) { } } | if ( executorService == null ) { int numThreads = Math . min ( Math . max ( Runtime . getRuntime ( ) . availableProcessors ( ) , 1 ) , 4 ) ; executorService = Executors . newFixedThreadPool ( numThreads ) ; myOwnExecutorService = true ; } else { myOwnExecutorService = false ; } |
public class SelectedValuesChoiceRenderer { /** * { @ inheritDoc } */
@ Override public Object getDisplayValue ( final String object ) { } } | final String splitString = "=>" ; final String [ ] splittedValue = object . split ( splitString ) ; final StringBuilder sb = new StringBuilder ( ) ; if ( splittedValue . length == 1 ) { final IModel < String > resourceModel = ResourceModelFactory . newResourceModel ( ResourceBundleKey . builder ( ) . key ( splittedValu... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < byte [ ] > } */
@ XmlElementDecl ( namespace = "http://www.ibm.com/websphere/wim" , name = "certificate" ) public JAXBElement < byte [ ] > createCertificate ( byte [ ] value ) { } } | return new JAXBElement < byte [ ] > ( _Certificate_QNAME , byte [ ] . class , null , ( value ) ) ; |
public class AddDynamicSearchAdsCampaign { /** * Creates the budget . */
private static Budget createBudget ( AdWordsServicesInterface adWordsServices , AdWordsSession session ) throws RemoteException , ApiException { } } | // Get the BudgetService .
BudgetServiceInterface budgetService = adWordsServices . get ( session , BudgetServiceInterface . class ) ; // Create a budget , which can be shared by multiple campaigns .
Budget sharedBudget = new Budget ( ) ; sharedBudget . setName ( "Interplanetary Cruise #" + System . currentTimeMillis (... |
public class SparseMatrixT { /** * long型索引转换为int [ ] 索引
* @ param idx
* @ return 索引 */
public int [ ] getIndices ( long idx ) { } } | int xIndices = ( int ) idx % this . size ( ) [ 0 ] ; int yIndices = ( int ) ( idx - xIndices ) / this . size ( ) [ 0 ] ; int [ ] Indices = { xIndices , yIndices } ; return Indices ; |
public class AsteriskQueueImpl { /** * Add a new member to this queue .
* @ param member to add */
void addMember ( AsteriskQueueMemberImpl member ) { } } | synchronized ( members ) { // Check if member already exists
if ( members . containsValue ( member ) ) { return ; } // If not , add the new member .
logger . info ( "Adding new member to the queue " + getName ( ) + ": " + member . toString ( ) ) ; members . put ( member . getLocation ( ) , member ) ; } fireMemberAdded ... |
public class ExpressionDecomposer { /** * Determines if there is any subexpression below { @ code tree } that would make it incorrect for
* some expression that follows { @ code tree } , { @ code E } , to be executed before { @ code tree } .
* @ param followingSideEffectsExist whether { @ code E } causes side - eff... | if ( tree . isSpread ( ) ) { // Spread expressions would cause recursive rewriting if not special cased here .
switch ( tree . getParent ( ) . getToken ( ) ) { case OBJECTLIT : // Spreading an object , rather than an iterable , is assumed to be pure . That assesment is
// based on the compiler assumption that getters a... |
public class PrioritizedSplitRunner { /** * Updates the ( potentially stale ) priority value cached in this object .
* This should be called when this object is outside the queue .
* @ return true if the level changed . */
public boolean updateLevelPriority ( ) { } } | Priority newPriority = taskHandle . getPriority ( ) ; Priority oldPriority = priority . getAndSet ( newPriority ) ; return newPriority . getLevel ( ) != oldPriority . getLevel ( ) ; |
public class ResourceInstanceHelper { /** * Returns the number of active instances of the given template name
* @ param service
* @ param templateName
* @ return */
public List < ResourceInstanceDTO > activeInstances ( ServiceManagerResourceRestService service , String templateName ) { } } | WebQuery wq = new WebQuery ( ) ; wq . eq ( "template.id" , templateName ) ; wq . eq ( "state" , ResourceInstanceState . TO_PROVISION , ResourceInstanceState . PROVISIONING , ResourceInstanceState . NOT_IN_SERVICE , ResourceInstanceState . IN_SERVICE ) ; List < ResourceInstanceDTO > instances = service . searchInstances... |
public class Version { /** * Compares two Versions with additionally considering the build meta data field if
* all other parts are equal . Note : This is < em > not < / em > part of the semantic version
* specification .
* Comparison of the build meta data parts happens exactly as for pre release
* identifiers... | // throw NPE to comply with Comparable specification
if ( v1 == null ) { throw new NullPointerException ( "v1 is null" ) ; } else if ( v2 == null ) { throw new NullPointerException ( "v2 is null" ) ; } return compare ( v1 , v2 , true ) ; |
public class SchemaHelper { /** * Builds a JCodeModel for classes that will be used as Request or Response
* bodies
* @ param basePackage
* The package we will be using for the domain objects
* @ param schemaLocation
* The location of this schema , will be used to create absolute
* URIs for $ ref tags eg " ... | JCodeModel codeModel = new JCodeModel ( ) ; SchemaStore schemaStore = new SchemaStore ( ) ; GenerationConfig config = Config . getPojoConfig ( ) ; if ( config == null ) { config = getDefaultGenerationConfig ( ) ; } if ( annotator == null ) { annotator = new Jackson2Annotator ( config ) ; } RuleFactory ruleFactory = new... |
public class DefaultVOMSProxyInfoBehaviour { /** * Proxy basic options */
private void checkProxyBasicOptions ( ProxyInfoParams params , List < VOMSAttribute > listVOMSAttributes , File proxyFilePath , X509Certificate [ ] proxyChain ) { } } | if ( params . containsOption ( PrintOption . TYPE ) && ! params . containsOption ( PrintOption . ALL_OPTIONS ) ) { logger . printMessage ( proxyTypeAsString ( proxyChain [ 0 ] ) ) ; } if ( params . containsOption ( PrintOption . SUBJECT ) && ! params . containsOption ( PrintOption . ALL_OPTIONS ) ) { logger . printMess... |
public class SyncManager { /** * This method manages the synchronizing - process between { @ link BucketContainer } and HDD . It is repeatedly called by
* < code > run ( ) < / code > , till shutdown is initiated . */
private void synchronizeBucketsWithHDD ( ) { } } | int synchronizedBuckets = 0 ; // run over all buckets
for ( int i = 0 ; i < numberOfBuckets ; i ++ ) { Bucket < Data > oldBucket = bucketContainer . getBucket ( i ) ; // if the bucket is empty , then do nothing
if ( oldBucket . elementsInBucket == 0 ) { synchronizedBuckets ++ ; continue ; } /* * * * * * TESTING PURPOSE... |
public class ConjunctionImpl { /** * if not matched . */
private static Selector substitute ( Identifier id , List [ ] equatedIds ) { } } | for ( int i = 0 ; i < equatedIds [ 0 ] . size ( ) ; i ++ ) if ( id . getName ( ) . equals ( equatedIds [ 0 ] . get ( i ) ) ) return new LiteralImpl ( equatedIds [ 1 ] . get ( i ) ) ; return id ; |
public class YoutubeSampleActivity { /** * Initialize and configure the DraggablePanel widget with two fragments and some attributes . */
private void initializeDraggablePanel ( ) { } } | draggablePanel . setFragmentManager ( getSupportFragmentManager ( ) ) ; draggablePanel . setTopFragment ( youtubeFragment ) ; MoviePosterFragment moviePosterFragment = new MoviePosterFragment ( ) ; moviePosterFragment . setPoster ( VIDEO_POSTER_THUMBNAIL ) ; moviePosterFragment . setPosterTitle ( VIDEO_POSTER_TITLE ) ;... |
public class responderpolicylabel { /** * Use this API to fetch all the responderpolicylabel resources that are configured on netscaler . */
public static responderpolicylabel [ ] get ( nitro_service service , options option ) throws Exception { } } | responderpolicylabel obj = new responderpolicylabel ( ) ; responderpolicylabel [ ] response = ( responderpolicylabel [ ] ) obj . get_resources ( service , option ) ; return response ; |
public class SelectorUtils { /** * " Flattens " a string by removing all whitespace ( space , tab , linefeed ,
* carriage return , and formfeed ) . This uses StringTokenizer and the
* default set of tokens as documented in the single arguement constructor .
* @ param input a String to remove all whitespace .
* ... | StringBuilder result = new StringBuilder ( ) ; if ( input != null ) { StringTokenizer st = new StringTokenizer ( input ) ; while ( st . hasMoreTokens ( ) ) { result . append ( st . nextToken ( ) ) ; } } return result . toString ( ) ; |
public class RemoteNeo4jSequenceGenerator { /** * Generate the next value in a sequence for a given { @ link IdSourceKey } .
* @ return the next value in a sequence */
@ Override public Long nextValue ( NextValueRequest request ) { } } | String sequenceName = sequenceName ( request . getKey ( ) ) ; // This method return 2 statements : the first one to acquire a lock and the second one to update the sequence node
RemoteStatements remoteStatements = updateNextValueQuery ( request ) ; Number nextValue = nextValue ( remoteStatements ) ; // sequence nodes a... |
public class ParseDateTimeZone { /** * { @ inheritDoc }
* @ throws SuperCsvCellProcessorException
* if value is null or is not a String */
public Object execute ( final Object value , final CsvContext context ) { } } | validateInputNotNull ( value , context ) ; if ( ! ( value instanceof String ) ) { throw new SuperCsvCellProcessorException ( String . class , value , context , this ) ; } final DateTimeZone result ; try { result = DateTimeZone . forID ( ( String ) value ) ; } catch ( IllegalArgumentException e ) { throw new SuperCsvCel... |
public class ByteBufJsonHelper { /** * Finds the position of the correct closing character , taking into account the fact that before the correct one ,
* other sub section with same opening and closing characters can be encountered .
* This implementation starts for the current { @ link ByteBuf # readerIndex ( ) re... | return buf . forEachByte ( new ClosingPositionBufProcessor ( openingChar , closingChar , true ) ) ; |
public class SqlUtils { /** * Converts string array to greenplum friendly string . From new
* String [ ] { " foo " , " jee " } we get " ' foo ' , jee ' " .
* @ param strings
* String array to explode
* @ return Comma delimited string with values encapsulated with
* apostropheres . ‘ ' */
public static String ... | StringBuilder locString = new StringBuilder ( ) ; for ( int i = 0 ; i < strings . length ; i ++ ) { String string = strings [ i ] ; locString . append ( "'" ) ; locString . append ( string ) ; locString . append ( "'" ) ; if ( i < strings . length - 1 ) { locString . append ( "," ) ; } } return locString . toString ( )... |
public class TarOutputStream { /** * Closes the current tar entry
* @ throws IOException */
protected void closeCurrentEntry ( ) throws IOException { } } | if ( currentEntry != null ) { if ( currentEntry . getSize ( ) > currentFileSize ) { throw new IOException ( "The current entry[" + currentEntry . getName ( ) + "] of size[" + currentEntry . getSize ( ) + "] has not been fully written." ) ; } currentEntry = null ; currentFileSize = 0 ; pad ( ) ; } |
public class RestUtils { /** * Batch read response as JSON .
* @ param app the current App object
* @ param ids list of ids
* @ return status code 200 or 400 */
public static Response getBatchReadResponse ( App app , List < String > ids ) { } } | try ( final Metrics . Context context = Metrics . time ( app == null ? null : app . getAppid ( ) , RestUtils . class , "batch" , "read" ) ) { if ( app != null && ids != null && ! ids . isEmpty ( ) ) { ArrayList < ParaObject > results = new ArrayList < > ( ids . size ( ) ) ; for ( ParaObject result : Para . getDAO ( ) .... |
public class SetVaultNotificationsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SetVaultNotificationsRequest setVaultNotificationsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( setVaultNotificationsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( setVaultNotificationsRequest . getAccountId ( ) , ACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( setVaultNotificationsRequest . getVaultName ( ) , VA... |
public class JpaRepository { /** * Finds an entity by a given attribute . Returns null if none was found .
* @ param attribute the attribute to search for
* @ param value the value
* @ return the entity or null if none was found */
public T findOneByAttribute ( String attribute , Object value ) { } } | CriteriaBuilder cb = getEntityManager ( ) . getCriteriaBuilder ( ) ; CriteriaQuery < T > query = cb . createQuery ( getEntityClass ( ) ) ; Root < T > from = query . from ( getEntityClass ( ) ) ; query . where ( cb . equal ( from . get ( attribute ) , value ) ) ; try { return getEntityManager ( ) . createQuery ( query )... |
public class StatisticsJDBCStorageConnection { /** * { @ inheritDoc } */
public boolean getChildNodesDataByPage ( NodeData parent , int fromOrderNum , int offset , int pageSize , List < NodeData > childs ) throws RepositoryException { } } | Statistics s = ALL_STATISTICS . get ( GET_CHILD_NODES_DATA_BY_PAGE_DESCR ) ; try { s . begin ( ) ; return wcs . getChildNodesDataByPage ( parent , fromOrderNum , offset , pageSize , childs ) ; } finally { s . end ( ) ; } |
public class SimpleText { /** * to check for exact match use method value . equals ( text ) instead . */
public boolean match ( List < String > valueTokens , List < String > queryTokens ) { } } | if ( valueTokens . size ( ) != queryTokens . size ( ) ) return false ; for ( int i = 0 ; i < valueTokens . size ( ) ; i ++ ) { if ( ! valueTokens . get ( i ) . equals ( queryTokens . get ( i ) ) ) return false ; } return true ; |
public class RPC { /** * Install it as The Answer packet and wake up anybody waiting on an answer . */
protected int response ( AutoBuffer ab ) { } } | assert _tasknum == ab . getTask ( ) ; if ( _done ) return ab . close ( ) ; // Ignore duplicate response packet
int flag = ab . getFlag ( ) ; // Must read flag also , to advance ab
if ( flag == SERVER_TCP_SEND ) return ab . close ( ) ; // Ignore UDP packet for a TCP reply
assert flag == SERVER_UDP_SEND ; synchronized ( ... |
public class HttpUtils { /** * Check for a conditional operation .
* @ param method the HTTP method
* @ param ifModifiedSince the If - Modified - Since header
* @ param modified the resource modification date */
public static void checkIfModifiedSince ( final String method , final String ifModifiedSince , final I... | if ( isGetOrHead ( method ) ) { final Instant time = parseDate ( ifModifiedSince ) ; if ( time != null && time . isAfter ( modified . truncatedTo ( SECONDS ) ) ) { throw new RedirectionException ( notModified ( ) . build ( ) ) ; } } |
public class PrimitiveArrays { /** * Returns the value of the element with the maximum value */
public static long max ( long [ ] array , int offset , int length ) { } } | long max = - Long . MAX_VALUE ; for ( int i = 0 ; i < length ; i ++ ) { long tmp = array [ offset + i ] ; if ( tmp > max ) { max = tmp ; } } return max ; |
public class TrustAllTrustManager { /** * Creates a new SSL socket factory that generates SSL sockets that trust all certificates unconditionally .
* @ return A new SSL socket factory that generates SSL sockets that trust all certificates unconditionally . */
public SSLSocketFactory createSslSocketFactory ( ) { } } | try { SSLContext sslContext = SSLContext . getInstance ( "TLS" ) ; sslContext . init ( null , new TrustManager [ ] { this } , null ) ; return sslContext . getSocketFactory ( ) ; } catch ( NoSuchAlgorithmException | KeyManagementException e ) { throw new AssertionError ( e ) ; } |
public class CmsCategoryTree { /** * Goes up the tree and opens the parents of the item . < p >
* @ param item the child item to start from */
public void openWithParents ( CmsTreeItem item ) { } } | if ( item != null ) { item . setOpen ( true ) ; openWithParents ( item . getParentItem ( ) ) ; } |
public class Internal { /** * Decode the histogram point from the given key value
* @ param kv the key value that contains a histogram
* @ return the decoded { @ code HistogramDataPoint } */
public static HistogramDataPoint decodeHistogramDataPoint ( final TSDB tsdb , final KeyValue kv ) { } } | long timestamp = Internal . baseTime ( kv . key ( ) ) ; return decodeHistogramDataPoint ( tsdb , timestamp , kv . qualifier ( ) , kv . value ( ) ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getIfcCooledBeamTypeEnum ( ) { } } | if ( ifcCooledBeamTypeEnumEEnum == null ) { ifcCooledBeamTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 801 ) ; } return ifcCooledBeamTypeEnumEEnum ; |
public class Anniversary { /** * 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 LauncherDelegateImpl { /** * { @ inheritDoc }
* @ throws InterruptedException */
@ Override public boolean shutdown ( ) throws InterruptedException { } } | // Prevent shutdown before the server has properly started
managerLatch . await ( ) ; if ( manager == null ) return false ; manager . shutdownFramework ( ) ; manager . waitForShutdown ( ) ; return true ; |
public class AmazonEC2Client { /** * Preview a reservation purchase with configurations that match those of your Dedicated Host . You must have active
* Dedicated Hosts in your account before you purchase a reservation .
* This is a preview of the < a > PurchaseHostReservation < / a > action and does not result in ... | request = beforeClientExecution ( request ) ; return executeGetHostReservationPurchasePreview ( request ) ; |
public class JvmTypesBuilder { /** * / * @ Nullable */
public JvmFormalParameter toParameter ( /* @ Nullable */
EObject sourceElement , /* @ Nullable */
String name , /* @ Nullable */
JvmTypeReference typeRef ) { } } | if ( sourceElement == null || name == null ) return null ; JvmFormalParameter result = typesFactory . createJvmFormalParameter ( ) ; result . setName ( name ) ; result . setParameterType ( cloneWithProxies ( typeRef ) ) ; return associate ( sourceElement , result ) ; |
public class ExpressionFactory { /** * Discover the name of class that implements ExpressionFactory .
* @ param tccl
* { @ code ClassLoader }
* @ return Class name . There is default , so it is never { @ code null } . */
private static String discoverClassName ( ClassLoader tccl ) { } } | String className = null ; // First services API
className = getClassNameServices ( tccl ) ; if ( className == null ) { if ( IS_SECURITY_ENABLED ) { className = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return getClassNameJreDir ( ) ; } } ) ; } else { // S... |
public class NamespaceSupport { /** * Process a raw XML qualified name , after all declarations in the
* current context have been handled by { @ link # declarePrefix
* declarePrefix ( ) } .
* < p > This method processes a raw XML qualified name in the
* current context by removing the prefix and looking it up ... | String myParts [ ] = currentContext . processName ( qName , isAttribute ) ; if ( myParts == null ) { return null ; } else { parts [ 0 ] = myParts [ 0 ] ; parts [ 1 ] = myParts [ 1 ] ; parts [ 2 ] = myParts [ 2 ] ; return parts ; } |
public class DataStore { /** * Convert this batch into a JSON representation .
* @ return JSONObject representing this batch . */
public JSONObject toJson ( ) { } } | JSONObject ret = new JSONObject ( ) ; JSONArray columns = new JSONArray ( Arrays . asList ( new String [ ] { "time" } ) ) ; for ( String f : this . columns ) { columns . put ( f ) ; } ret . put ( KEY_COLUMNS , columns ) ; JSONArray data = new JSONArray ( ) ; ret . put ( KEY_ROWS , data ) ; for ( Long ts : rows . keySet... |
public class AddStepsRequest { /** * Configure the step to be added .
* @ param step a StepConfig object to be added .
* @ return AddStepsRequest */
public AddStepsRequest withStep ( StepConfig step ) { } } | if ( this . steps == null ) { this . steps = new ArrayList < StepConfig > ( ) ; } this . steps . add ( step ) ; return this ; |
public class MysqlValidator { /** * Checks a set of characters , throws IOException if invalid */
public static void checkCharacters ( CharSequence str , int off , int end ) throws IOException { } } | while ( off < end ) checkCharacter ( str . charAt ( off ++ ) ) ; |
public class PropertyBuilder { /** * Return a new PropertyBuilder of type { @ link Property . Type # Select }
* @ param name name
* @ return this builder */
public PropertyBuilder select ( final String name ) { } } | name ( name ) ; type ( Property . Type . Select ) ; return this ; |
public class Consumers { /** * Yields the last element if present , nothing otherwise .
* @ param < E > the iterator element type
* @ param iterator the iterator that will be consumed
* @ return the last element or nothing */
public static < E > Optional < E > maybeLast ( Iterator < E > iterator ) { } } | return new MaybeLastElement < E > ( ) . apply ( iterator ) ; |
public class Entry { /** * A property used to store a time zone for the entry . The time zone is
* needed for properly interpreting the dates and times of the entry .
* @ return the time zone property */
public final ReadOnlyObjectProperty < ZoneId > zoneIdProperty ( ) { } } | if ( zoneId == null ) { zoneId = new ReadOnlyObjectWrapper < > ( this , "zoneId" , getInterval ( ) . getZoneId ( ) ) ; // $ NON - NLS - 1 $
} return zoneId . getReadOnlyProperty ( ) ; |
public class ByteBufferUtil { /** * changes bb position */
public static ByteBuffer readBytes ( ByteBuffer bb , int length ) { } } | ByteBuffer copy = bb . duplicate ( ) ; copy . limit ( copy . position ( ) + length ) ; bb . position ( bb . position ( ) + length ) ; return copy ; |
public class NettyMessagingTransport { /** * Registers the exception event handler .
* @ param handler the exception event handler */
@ Override public void registerErrorHandler ( final EventHandler < Exception > handler ) { } } | this . clientEventListener . registerErrorHandler ( handler ) ; this . serverEventListener . registerErrorHandler ( handler ) ; |
public class BlockingCommandManager { /** * Unblock all .
* @ throws NoResponseException
* @ throws XMPPErrorException
* @ throws NotConnectedException
* @ throws InterruptedException */
public void unblockAll ( ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { }... | UnblockContactsIQ unblockContactIQ = new UnblockContactsIQ ( ) ; connection ( ) . createStanzaCollectorAndSend ( unblockContactIQ ) . nextResultOrThrow ( ) ; |
public class DoubleParser { /** * Static utility to parse a field of type double from a byte sequence that represents text characters
* ( such as when read from a file stream ) .
* @ param bytes The bytes containing the text data that should be parsed .
* @ param startPos The offset to start the parsing .
* @ p... | if ( length <= 0 ) { throw new NumberFormatException ( "Invalid input: Empty string" ) ; } int i = 0 ; final byte delByte = ( byte ) delimiter ; while ( i < length && bytes [ i ] != delByte ) { i ++ ; } String str = new String ( bytes , startPos , i ) ; return Double . parseDouble ( str ) ; |
public class ServersInner { /** * Creates a new server or updates an existing server . The update action will overwrite the existing server .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ para... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) , serviceCallback ) ; |
public class GlobalLibraryV2_0Generator { /** * Create a HumanNameDataType from Rolodex object
* @ param rolodex
* Rolodex object
* @ return HumanNameDataType corresponding to the rolodex object . */
public HumanNameDataType getHumanNameDataType ( RolodexContract rolodex ) { } } | HumanNameDataType humanName = HumanNameDataType . Factory . newInstance ( ) ; if ( rolodex != null ) { humanName . setFirstName ( rolodex . getFirstName ( ) ) ; humanName . setLastName ( rolodex . getLastName ( ) ) ; String middleName = rolodex . getMiddleName ( ) ; if ( middleName != null && ! middleName . equals ( ""... |
public class DSLMapParser { /** * src / main / resources / org / drools / compiler / lang / dsl / DSLMap . g : 130:1 : scope _ section : LEFT _ SQUARE ( value1 = condition _ key | value2 = consequence _ key | value3 = keyword _ key | value4 = any _ key ) RIGHT _ SQUARE - > ^ ( VT _ SCOPE [ $ LEFT _ SQUARE , \ " SCOPE S... | DSLMapParser . scope_section_return retval = new DSLMapParser . scope_section_return ( ) ; retval . start = input . LT ( 1 ) ; Object root_0 = null ; Token LEFT_SQUARE11 = null ; Token RIGHT_SQUARE12 = null ; ParserRuleReturnScope value1 = null ; ParserRuleReturnScope value2 = null ; ParserRuleReturnScope value3 = null... |
public class ClassReader { /** * Enter type variables of this classtype and all enclosing ones in
* ` typevars ' . */
protected void enterTypevars ( Type t ) { } } | if ( t . getEnclosingType ( ) != null && t . getEnclosingType ( ) . hasTag ( CLASS ) ) enterTypevars ( t . getEnclosingType ( ) ) ; for ( List < Type > xs = t . getTypeArguments ( ) ; xs . nonEmpty ( ) ; xs = xs . tail ) typevars . enter ( xs . head . tsym ) ; |
public class MDBRuntimeImpl { /** * Method to get the XAResource corresponding to an ActivationSpec from the RRSXAResourceFactory
* @ param activationSpecId The id of the ActivationSpec
* @ param xid Transaction branch qualifier
* @ return the XAResource */
@ Override public XAResource getRRSXAResource ( String a... | RRSXAResourceFactory factory = rrsXAResFactorySvcRef . getService ( ) ; if ( factory == null ) { return null ; } else { return factory . getTwoPhaseXAResource ( xid ) ; } |
public class HttpContext { /** * Execute a PATCH call against the partial URL .
* @ param partialUrl The partial URL to build
* @ param payload The object to use for the PATCH */
public void PATCH ( String partialUrl , Object payload ) { } } | URI uri = buildUri ( partialUrl ) ; executePatchRequest ( uri , payload ) ; |
public class Analyser { /** * / * setup _ tree does the following work .
* 1 . check empty loop . ( set qn - > target _ empty _ info )
* 2 . expand ignore - case in char class .
* 3 . set memory status bit flags . ( reg - > mem _ stats )
* 4 . set qn - > head _ exact for [ push , exact ] - > [ push _ or _ jump ... | restart : while ( true ) { switch ( node . getType ( ) ) { case NodeType . LIST : ListNode lin = ( ListNode ) node ; Node prev = null ; do { setupTree ( lin . value , state ) ; if ( prev != null ) { nextSetup ( prev , lin . value ) ; } prev = lin . value ; } while ( ( lin = lin . tail ) != null ) ; break ; case NodeTyp... |
public class BodyDumper { /** * impl of dumping response body to result
* @ param result A map you want to put dump information to */
@ Override public void dumpResponse ( Map < String , Object > result ) { } } | byte [ ] responseBodyAttachment = exchange . getAttachment ( StoreResponseStreamSinkConduit . RESPONSE ) ; if ( responseBodyAttachment != null ) { this . bodyContent = config . isMaskEnabled ( ) ? Mask . maskJson ( new ByteArrayInputStream ( responseBodyAttachment ) , "responseBody" ) : new String ( responseBodyAttachm... |
public class PodsManagerConfigImpl { /** * Updates the deployed list for bfs configuration of the pods .
* Any file in / config / pods named * . cf is a pod config file . */
private void updateBfsPath ( String [ ] list ) { } } | if ( list == null ) { list = new String [ 0 ] ; } PodsConfig podsConfig = parseConfig ( list ) ; if ( podsConfig != null ) { updatePodConfig ( podsConfig ) ; } updatePods ( ) ; if ( podsConfig != null && podsConfig . isBaseModified ( ) ) { _podsServiceImpl . updateConfig ( ) ; } |
public class Slices { /** * Creates a slice over the specified array range .
* @ param offset the array position at which the slice begins
* @ param length the number of array positions to include in the slice */
public static Slice wrappedBooleanArray ( boolean [ ] array , int offset , int length ) { } } | if ( length == 0 ) { return EMPTY_SLICE ; } return new Slice ( array , offset , length ) ; |
public class Iterables2 { /** * If we can assume the iterable is sorted , return the distinct elements . This only works
* if the data provided is sorted . */
public static < T > Iterable < T > distinct ( final Iterable < T > iterable ) { } } | requireNonNull ( iterable ) ; return ( ) -> Iterators2 . distinct ( iterable . iterator ( ) ) ; |
public class FineUploaderBasic { /** * Maximum allowable size , in bytes , for a file .
* @ param nSizeLimit
* Size limit . 0 = = unlimited
* @ return this */
@ Nonnull public FineUploaderBasic setSizeLimit ( @ Nonnegative final int nSizeLimit ) { } } | ValueEnforcer . isGE0 ( nSizeLimit , "SizeLimit" ) ; m_nValidationSizeLimit = nSizeLimit ; return this ; |
public class BatchUnit { /** * 执行shutdownHook */
public boolean shutdown ( ) { } } | LOG . debug ( "shutdownHook列表与unit列表是分开维护的,当前shutdownHook对象与目标unit对象不是同一个对象!" ) ; Unit batchUnitProxy = LocalUnitsManager . getLocalUnit ( getGroup ( ) . getName ( ) , getName ( ) ) ; BatchUnit batchUnit ; // in case the unit is proxied , which means if you want to flush the non - flushed cache list , you must get the ... |
public class TranspositionDetector { /** * in case of an a , b / b , a transposition we have to determine whether a or b
* stays put . the phrase with the most character stays still if the tokens are
* not simple tokens the phrase with the most tokens stays put */
private int determineSize ( List < Match > t ) { } ... | Match firstMatch = t . get ( 0 ) ; if ( ! ( firstMatch . token instanceof SimpleToken ) ) { return t . size ( ) ; } int charLength = 0 ; for ( Match m : t ) { SimpleToken token = ( SimpleToken ) m . token ; charLength += token . getNormalized ( ) . length ( ) ; } return charLength ; |
public class DefaultJerseyOptions { /** * List of components to be registered ( features etc . )
* @ return */
@ Override public Set < Class < ? > > getComponents ( ) { } } | Set < Class < ? > > set = new HashSet < > ( ) ; ClassLoader cl = Thread . currentThread ( ) . getContextClassLoader ( ) ; Consumer < JsonArray > reader = array -> { if ( array != null && array . size ( ) > 0 ) { for ( int i = 0 ; i < array . size ( ) ; i ++ ) { try { set . add ( cl . loadClass ( array . getString ( i )... |
public class CreateApplicationBundleMojo { /** * Bundle project as a Mac OS X application bundle .
* @ throws MojoExecutionException If an unexpected error occurs during
* packaging of the bundle . */
public void execute ( ) throws MojoExecutionException { } } | // 1 . Create and set up directories
getLog ( ) . info ( "Creating and setting up the bundle directories" ) ; buildDirectory . mkdirs ( ) ; File bundleDir = new File ( buildDirectory , bundleName + ".app" ) ; bundleDir . mkdirs ( ) ; File contentsDir = new File ( bundleDir , "Contents" ) ; contentsDir . mkdirs ( ) ; Fi... |
public class Log { public void debug ( final Throwable t , final String message , final Object ... args ) { } } | if ( wrappedLogger . isDebugEnabled ( ) ) { wrappedLogger . debug ( String . format ( message , args ) , t ) ; } |
public class JournalNodeHttpServer { /** * Send string output when serving http request .
* @ param output data to be sent
* @ param response http response
* @ throws IOException */
static void sendResponse ( String output , HttpServletResponse response ) throws IOException { } } | PrintWriter out = null ; try { out = response . getWriter ( ) ; out . write ( output ) ; } finally { if ( out != null ) { out . close ( ) ; } } |
public class CachingBpSchedule { /** * Filters edges from a leaf node . */
@ SuppressWarnings ( "unchecked" ) private static List < Object > filterConstantMsgs ( List < Object > order , FactorGraph fg ) { } } | ArrayList < Object > filt = new ArrayList < Object > ( ) ; for ( Object item : order ) { if ( item instanceof List ) { List < Object > items = filterConstantMsgs ( ( List < Object > ) item , fg ) ; if ( items . size ( ) > 0 ) { filt . add ( items ) ; } } else if ( item instanceof Integer ) { // If the parent node is no... |
public class AmazonWorkLinkClient { /** * Retrieves a list of certificate authorities added for the current account and Region .
* @ param listWebsiteCertificateAuthoritiesRequest
* @ return Result of the ListWebsiteCertificateAuthorities operation returned by the service .
* @ throws UnauthorizedException
* Yo... | request = beforeClientExecution ( request ) ; return executeListWebsiteCertificateAuthorities ( request ) ; |
public class MiniTemplator { /** * Sets an optional template variable to an integer value .
* Convenience method for : < code > setVariableOpt ( variableName , Integer . toString ( variableValue ) ) < / code >
* @ param variableName the name of the variable to be set . Case - insensitive .
* @ param variableValue... | // We want to avoid the integer to string conversion if the template variable does not exist .
int varNo = mtp . lookupVariableName ( variableName ) ; if ( varNo == - 1 ) { return ; } varValuesTab [ varNo ] = Integer . toString ( variableValue ) ; |
public class DefaultRewriteContentHandler { /** * Extracts media metadata from the DOM element attributes and resolves them to a { @ link Media } object .
* @ param element DOM element
* @ return Media metadata */
private Media getImageMedia ( Element element ) { } } | String ref = element . getAttributeValue ( "src" ) ; if ( StringUtils . isNotEmpty ( ref ) ) { ref = unexternalizeImageRef ( ref ) ; } return mediaHandler . get ( ref ) . build ( ) ; |
public class CmsContainerConfigurationGroup { /** * Gets the configuration for a given name and locale . < p >
* @ param name the configuration name
* @ return the configuration for the name and locale */
public CmsContainerConfiguration getConfiguration ( String name ) { } } | Map < String , CmsContainerConfiguration > configurationsForLocale = null ; if ( m_configurations . containsKey ( CmsLocaleManager . MASTER_LOCALE ) ) { configurationsForLocale = m_configurations . get ( CmsLocaleManager . MASTER_LOCALE ) ; } else if ( ! m_configurations . isEmpty ( ) ) { configurationsForLocale = m_co... |
public class AbstractBaseLocalServerComponent { /** * Checks component has come up every 3 seconds . Waits for the component for a maximum of 60 seconds . Throws an
* { @ link IllegalStateException } if the component can not be contacted */
private void waitForComponentToComeUp ( ) { } } | LOGGER . entering ( ) ; for ( int i = 0 ; i < 60 ; i ++ ) { try { // Sleep for 3 seconds .
Thread . sleep ( 1000 ) ; } catch ( InterruptedException e ) { throw new IllegalStateException ( e . getMessage ( ) , e ) ; } if ( getLauncher ( ) . isRunning ( ) ) { LOGGER . exiting ( ) ; return ; } } throw new IllegalStateExce... |
public class SanitizePackage { /** * The NPM Audit API only accepts a modified version of package - lock . json .
* This method will make the necessary modifications in - memory , sanitizing
* non - public dependencies by omitting them , and returns a new ' sanitized '
* version .
* @ param packageJson a raw pa... | final JsonObjectBuilder payloadBuilder = Json . createObjectBuilder ( ) ; final String projectName = packageJson . getString ( "name" , "" ) ; final String projectVersion = packageJson . getString ( "version" , "" ) ; if ( ! projectName . isEmpty ( ) ) { payloadBuilder . add ( "name" , projectName ) ; } if ( ! projectV... |
public class GenMapAndTopicListModule { /** * Prefix path .
* @ param relativeRootFile relative path for root temporary file
* @ return either an empty string or a path which ends in { @ link java . io . File # separator File . separator } */
private String getPrefix ( final File relativeRootFile ) { } } | String res ; final File p = relativeRootFile . getParentFile ( ) ; if ( p != null ) { res = p . toString ( ) + File . separator ; } else { res = "" ; } return res ; |
public class CodeLocations { /** * Get absolute path from URL objects starting with file :
* This method takes care of decoding % - encoded chars , e . g . % 20 - > space etc
* Since we do not use a File object , the system specific path encoding
* is not used ( e . g . C : \ on Windows ) . This is necessary to f... | URI uri ; try { uri = url . toURI ( ) ; } catch ( URISyntaxException e ) { // this will probably not happen since the url was created
// from a filename beforehand
throw new InvalidCodeLocation ( e . toString ( ) ) ; } if ( uri . toString ( ) . startsWith ( "file:" ) || uri . toString ( ) . startsWith ( "jar:" ) ) { re... |
public class DigestUtils { /** * Append a hexadecimal string representation of the MD5 digest of the given inputStream to the given { @ link
* StringBuilder } .
* @ param inputStream the inputStream to calculate the digest over .
* @ param builder the string builder to append the digest to .
* @ return the give... | return appendDigestAsHex ( MD5_ALGORITHM_NAME , inputStream , builder ) ; |
public class StatsApi { /** * Get the number of views on a photoset for a given date .
* This method requires authentication with ' read ' permission .
* @ param date stats will be returned for this date . Required .
* @ param photosetId id of the photoset to get stats for . Required .
* @ return number of view... | JinxUtils . validateParams ( date , photosetId ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.stats.getPhotosetStats" ) ; params . put ( "date" , JinxUtils . formatDateAsYMD ( date ) ) ; params . put ( "photoset_id" , photosetId ) ; return jinx . flickrGet ( params , Stats ... |
public class CastedExpressionTypeComputationState { /** * Compute the best candidates for the feature behind the cast operator .
* @ param cast the cast operator .
* @ return the candidates . */
public List < ? extends ILinkingCandidate > getLinkingCandidates ( SarlCastedExpression cast ) { } } | // Prepare the type resolver .
final StackedResolvedTypes demandComputedTypes = pushTypes ( ) ; final AbstractTypeComputationState forked = withNonVoidExpectation ( demandComputedTypes ) ; final ForwardingResolvedTypes demandResolvedTypes = new ForwardingResolvedTypes ( ) { @ Override protected IResolvedTypes delegate ... |
public class ToolbarLarge { /** * Sets the width of the navigation .
* @ param width
* The width , which should be set , in pixels as an { @ link Integer } value . The width must
* be greater than 0 */
public final void setNavigationWidth ( @ Px final int width ) { } } | Condition . INSTANCE . ensureGreater ( width , 0 , "The width must be greater than 0" ) ; this . navigationWidth = width ; if ( ! isNavigationHidden ( ) ) { RelativeLayout . LayoutParams layoutParams = ( RelativeLayout . LayoutParams ) toolbar . getLayoutParams ( ) ; layoutParams . width = width ; toolbar . requestLayo... |
public class HTODInvalidationBuffer { /** * Call this method to filter out the specified collection of cache ids based on invalidation buffers .
* @ param filterValueSet
* - a collection of cache ids , */
protected synchronized void filter ( ValueSet filterValueSet ) { } } | boolean explicitBufferEmpty = this . explicitBuffer . isEmpty ( ) ; boolean scanBufferEmpty = this . scanBuffer . isEmpty ( ) ; if ( filterValueSet != null && ! filterValueSet . isEmpty ( ) && ( ! explicitBufferEmpty || ! scanBufferEmpty ) ) { Iterator it = filterValueSet . iterator ( ) ; while ( it . hasNext ( ) ) { O... |
public class ContainerClassLoader { /** * Add all the artifact containers to the class path */
protected void addToClassPath ( Iterable < ArtifactContainer > artifacts ) { } } | for ( ArtifactContainer art : artifacts ) { smartClassPath . addArtifactContainer ( art ) ; } |
public class Callstacks { /** * Prints call stack with the specified logging level .
* @ param logLevel the specified logging level
* @ param carePackages the specified packages to print , for example , [ " org . b3log . latke " , " org . b3log . solo " ] , { @ code null } to care
* nothing
* @ param exceptable... | if ( null == logLevel ) { LOGGER . log ( Level . WARN , "Requires parameter [logLevel]" ) ; return ; } final Throwable throwable = new Throwable ( ) ; final StackTraceElement [ ] stackElements = throwable . getStackTrace ( ) ; if ( null == stackElements ) { LOGGER . log ( Level . WARN , "Empty call stack" ) ; return ; ... |
public class ObjectsShouldInternal { /** * A ClassesTransformer < ? extends T > is in particular a ClassesTransformer < T > ( covariance ) */
@ SuppressWarnings ( "unchecked" ) private ClassesTransformer < T > getTyped ( ClassesTransformer < ? extends T > classesTransformer ) { } } | return ( ClassesTransformer < T > ) classesTransformer ; |
public class MainFrame { /** * This is overridden for changing the font size */
@ Override public void addNotify ( ) { } } | super . addNotify ( ) ; float size = Driver . getFontSize ( ) ; JMenuBar menubar = getJMenuBar ( ) ; if ( menubar != null ) { menubar . setFont ( menubar . getFont ( ) . deriveFont ( size ) ) ; for ( int i = 0 ; i < menubar . getMenuCount ( ) ; i ++ ) { for ( int j = 0 ; j < menubar . getMenu ( i ) . getMenuComponentCo... |
public class HtmlDoclet { /** * Start the generation of files . Call generate methods in the individual
* writers , which will in turn genrate the documentation files . Call the
* TreeWriter generation first to ensure the Class Hierarchy is built
* first and then can be used in the later generation .
* For new ... | super . generateOtherFiles ( root , classtree ) ; if ( configuration . linksource ) { SourceToHTMLConverter . convertRoot ( configuration , root , DocPaths . SOURCE_OUTPUT ) ; } if ( configuration . topFile . isEmpty ( ) ) { configuration . standardmessage . error ( "doclet.No_Non_Deprecated_Classes_To_Document" ) ; re... |
public class ConfigService { /** * Method to modify the Postgres config postgresql . conf based on key - value pairs
* @ param filename The filename of the config to be updated .
* @ param keyValuePairs A map of key - value pairs . */
public static void changeProperty ( String filename , Map < String , Object > key... | if ( keyValuePairs . size ( ) == 0 ) { return ; } final File file = new File ( filename ) ; final File tmpFile = new File ( file + ".tmp" ) ; PrintWriter pw = new PrintWriter ( tmpFile ) ; BufferedReader br = new BufferedReader ( new FileReader ( file ) ) ; Set < String > keys = keyValuePairs . keySet ( ) ; List < Stri... |
public class AbstractCompiler { /** * httl . properties : code . directory = / tmp / javacode */
public void setCodeDirectory ( String codeDirectory ) { } } | if ( codeDirectory != null && codeDirectory . trim ( ) . length ( ) > 0 ) { File file = new File ( codeDirectory ) ; if ( file . exists ( ) || file . mkdirs ( ) ) { this . codeDirectory = file ; } } |
public class JobUtils { /** * Waits for a job V3 to complete
* @ param cloudFoundryClient the client to use to request job status
* @ param completionTimeout the amount of time to wait for the job to complete .
* @ param jobId the id of the job
* @ return { @ code onComplete } once job has completed */
public s... | return requestJobV3 ( cloudFoundryClient , jobId ) . filter ( job -> JobState . PROCESSING != job . getState ( ) ) . repeatWhenEmpty ( exponentialBackOff ( Duration . ofSeconds ( 1 ) , Duration . ofSeconds ( 15 ) , completionTimeout ) ) . filter ( job -> JobState . FAILED == job . getState ( ) ) . flatMap ( JobUtils ::... |
public class DACLAssertor { /** * Fetches the DACL of the object which is evaluated by { @ linkplain doAssert }
* @ throws CommunicationException
* @ throws NameNotFoundException
* @ throws NamingException */
private void getDACL ( ) throws NamingException { } } | final SearchControls controls = new SearchControls ( ) ; controls . setSearchScope ( SearchControls . SUBTREE_SCOPE ) ; controls . setReturningAttributes ( new String [ ] { "name" , "nTSecurityDescriptor" } ) ; if ( ldapContext == null ) { LOG . warn ( "getDACL, cannot search for DACL with null ldapContext" ) ; throw n... |
public class SpringQueryInputProcessor { /** * Parse the SQL statement and locate any placeholders or named parameters .
* Named parameters are substituted for a JDBC placeholder and any select list
* is expanded to the required number of placeholders . Select lists may contain
* an array of objects and in that c... | String originalSql = processedInput . getOriginalSql ( ) ; StringBuilder actualSql = new StringBuilder ( ) ; List paramNames = processedInput . getSqlParameterNames ( ) ; int lastIndex = 0 ; for ( int i = 0 ; i < paramNames . size ( ) ; i ++ ) { int [ ] indexes = processedInput . getSqlParameterBoundaries ( ) . get ( i... |
public class ListT { /** * / * ( non - Javadoc )
* @ see cyclops2 . monads . transformers . values . ListT # distinct ( ) */
@ Override public ListT < W , T > distinct ( ) { } } | return ( ListT < W , T > ) FoldableTransformerSeq . super . distinct ( ) ; |
public class JingleS5BTransportSession { /** * Determine , which candidate ( ours / theirs ) is the nominated one .
* Connect to this candidate . If it is a proxy and it is ours , activate it and connect .
* If its a proxy and it is theirs , wait for activation .
* If it is not a proxy , just connect . */
private... | JingleContent content = jingleSession . getContents ( ) . get ( 0 ) ; if ( ourChoice == null || theirChoice == null ) { // Not yet ready .
LOGGER . log ( Level . INFO , "Not ready." ) ; return ; } if ( ourChoice == CANDIDATE_FAILURE && theirChoice == CANDIDATE_FAILURE ) { LOGGER . log ( Level . INFO , "Failure." ) ; ji... |
public class BNFHeadersImpl { /** * Method to flush whatever is in the cache into the input buffers . These
* buffers are then returned to the caller as the flush may have needed to
* expand the list .
* @ param buffers
* @ return WsByteBuffer [ ] */
protected WsByteBuffer [ ] flushCache ( WsByteBuffer [ ] buff... | // PK13351 - use the offset / length version to write only what we need
// to and avoid the extra memory allocation
int pos = this . bytePosition ; if ( 0 == pos ) { // nothing to write
return buffers ; } this . bytePosition = 0 ; return GenericUtils . putByteArray ( buffers , this . byteCache , 0 , pos , this ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.