signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Postcard { /** * Navigation to the route with path in postcard .
* @ param context Activity and so on . */
public Object navigation ( Context context , NavigationCallback callback ) { } } | return ARouter . getInstance ( ) . navigation ( context , this , - 1 , callback ) ; |
public class GcsExampleServlet { /** * Transfer the data from the inputStream to the outputStream . Then close both streams . */
private void copy ( InputStream input , OutputStream output ) throws IOException { } } | try { byte [ ] buffer = new byte [ BUFFER_SIZE ] ; int bytesRead = input . read ( buffer ) ; while ( bytesRead != - 1 ) { output . write ( buffer , 0 , bytesRead ) ; bytesRead = input . read ( buffer ) ; } } finally { input . close ( ) ; output . close ( ) ; } |
public class DependencyIdentifier { /** * TODO
* @ param clazz
* @ param qualifiers
* @ return */
public static DependencyIdentifier getDependencyIdentifierForClass ( Class clazz , SortedSet < String > qualifiers ) { } } | List < Type > typeList = new ArrayList < Type > ( ) ; addTypeToList ( clazz , typeList ) ; return new DependencyIdentifier ( typeList , qualifiers ) ; |
public class CaffeinatedGuava { /** * Returns a Caffeine cache wrapped in a Guava { @ link LoadingCache } facade .
* @ param builder the configured cache builder
* @ param loader the cache loader used to obtain new values
* @ return a cache exposed under the Guava APIs */
@ NonNull public static < K , V , K1 exte... | @ SuppressWarnings ( "unchecked" ) CacheLoader < K1 , V1 > castedLoader = ( CacheLoader < K1 , V1 > ) loader ; return build ( builder , hasLoadAll ( castedLoader ) ? new BulkLoader < > ( castedLoader ) : new SingleLoader < > ( castedLoader ) ) ; |
public class IfcAddressImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) public EList < IfcPerson > getOfPerson ( ) { } } | return ( EList < IfcPerson > ) eGet ( Ifc2x3tc1Package . Literals . IFC_ADDRESS__OF_PERSON , true ) ; |
public class ValidatorClassLoader { /** * cleanup jar file factory cache */
public boolean cleanupJarFileFactory ( ) throws ValidatorManagerException { } } | boolean res = false ; final Class classJarURLConnection = JarURLConnection . class ; Field f ; try { f = classJarURLConnection . getDeclaredField ( "factory" ) ; } catch ( final NoSuchFieldException e ) { throw new ValidatorManagerException ( e ) ; } if ( f == null ) { return false ; } f . setAccessible ( true ) ; Obje... |
public class DiagnosticRenderUtil { /** * Render the diagnostics .
* @ param renderContext the current renderContext
* @ param component the component being rendered
* @ param diags the list of Diagnostic objects
* @ param severity the severity we are rendering */
private static void renderHelper ( final WebXml... | if ( diags . isEmpty ( ) ) { return ; } XmlStringBuilder xml = renderContext . getWriter ( ) ; xml . appendTagOpen ( TAG_NAME ) ; xml . appendAttribute ( "id" , "_wc_" . concat ( UUID . randomUUID ( ) . toString ( ) ) ) ; xml . appendAttribute ( "type" , getLevel ( severity ) ) ; xml . appendAttribute ( "for" , compone... |
public class FluentCloseableIterable { /** * Returns an { @ code ImmutableList } containing all of the elements from this { @ code
* FluentIterable } in the order specified by { @ code comparator } . To produce an { @ code
* ImmutableList } sorted by its natural ordering , use { @ code toSortedList ( Ordering . nat... | return Ordering . from ( comparator ) . immutableSortedCopy ( this ) ; |
public class DTMDocumentImpl { /** * Append a comment child at the current insertion point . Assumes that the
* actual content of the comment has previously been appended to the m _ char
* buffer ( shared with the builder ) .
* @ param m _ char _ current _ start int Starting offset of node ' s content in m _ char... | // create a Comment Node
// % TBD % may be possible to combine with appendNode ( ) to replace the next chunk of code
int w0 = COMMENT_NODE ; // W1 : Parent
int w1 = currentParent ; // W2 : Start position within m _ char
int w2 = m_char_current_start ; // W3 : Length of the full string
int w3 = contentLength ; int oursl... |
public class DRL6StrictParser { /** * lhsNot : = NOT
* ( ( LEFT _ PAREN ( or _ key | and _ key ) ) = > lhsOr / / prevents ' ( ( ' for prefixed and / or
* | LEFT _ PAREN lhsOr RIGHT _ PAREN
* | lhsPatternBind
* @ param ce
* @ return
* @ throws org . antlr . runtime . RecognitionException */
protected BaseDes... | CEDescrBuilder < ? , NotDescr > not = null ; if ( state . backtracking == 0 ) { not = ce . not ( ) ; helper . start ( not , CEDescrBuilder . class , null ) ; } try { match ( input , DRL6Lexer . ID , DroolsSoftKeywords . NOT , null , DroolsEditorType . KEYWORD ) ; if ( state . failed ) return null ; if ( state . backtra... |
public class ObjectCellFormatter { /** * ロケールを指定して 、 文字列型をフォーマットし 、 結果を直接文字列として取得する 。
* @ param formatPattern フォーマットの書式 。
* @ param value フォーマット対象の値 。
* @ param locale ロケール 。 書式にロケール条件の記述 ( 例 . { @ code [ $ - 403 ] } ) が含まれている場合は 、 書式のロケールが優先されます 。
* @ return フォーマットした結果の文字列 。 */
public String formatAsString (... | return format ( formatPattern , value , locale ) . getText ( ) ; |
public class ClientInterfaceHandleManager { /** * Create a new handle for a transaction and store the client information
* for that transaction in the internal structures .
* ClientInterface handles have the partition ID encoded in them as the 10
* high - order non - sign bits ( where the SHORT _ CIRCUIT _ PART _... | assert ( ! shouldCheckThreadIdAssertion ( ) || m_expectedThreadId == Thread . currentThread ( ) . getId ( ) ) ; if ( isShortCircuitRead ) { partitionId = SHORT_CIRCUIT_PART_ID ; } else if ( ! isSinglePartition ) { partitionId = MP_PART_ID ; } else if ( initiatorHSId == ClientInterface . NTPROC_JUNK_ID ) { partitionId =... |
public class LogPane { /** * Print a message as if it were logged , without going through the full
* logger .
* @ param message
* Message text
* @ param level
* Message level */
public void publish ( String message , Level level ) { } } | try { publish ( new LogRecord ( level , message ) ) ; } catch ( BadLocationException e ) { throw new RuntimeException ( "Error writing a log-like message." , e ) ; } |
public class Term { /** * 进行term合并
* @ param term
* @ param maxNature */
public Term merage ( Term to ) { } } | this . name = this . name + to . getName ( ) ; if ( StringUtil . isNotBlank ( this . realName ) && StringUtil . isNotBlank ( to . getRealName ( ) ) ) { this . realName = this . realName + to . getRealName ( ) ; } this . setTo ( to . to ) ; return this ; |
public class FastAdapter { /** * is called when the ViewHolder is in a transient state . return true if you want to reuse
* that view anyways
* @ param holder the viewHolder for the view which failed to recycle
* @ return true if we want to recycle anyways ( false - it get ' s destroyed ) */
@ Override public boo... | if ( mVerbose ) Log . v ( TAG , "onFailedToRecycleView: " + holder . getItemViewType ( ) ) ; return mOnBindViewHolderListener . onFailedToRecycleView ( holder , holder . getAdapterPosition ( ) ) || super . onFailedToRecycleView ( holder ) ; |
public class ExceptionWrapper { /** * Returns the given throwable as a < code > RuntimeException < / code > wrapping it in a new
* < code > RuntimeException < / code > if necessary .
* @ param throwable The throwable to wrap
* @ return The wrapped throwable */
public static RuntimeException wrap ( Throwable throw... | RuntimeException result ; if ( throwable instanceof RuntimeException ) { result = ( RuntimeException ) throwable ; } else { result = new RuntimeException ( throwable . getClass ( ) . getSimpleName ( ) , throwable ) ; } return result ; |
public class ClusterExpirationManager { /** * holds the lock until this CompletableFuture completes . Without lock skipping this would deadlock . */
CompletableFuture < Void > handleLifespanExpireEntry ( K key , V value , long lifespan , boolean skipLocking ) { } } | // The most used case will be a miss so no extra read before
if ( expiring . putIfAbsent ( key , key ) == null ) { if ( trace ) { log . tracef ( "Submitting expiration removal for key %s which had lifespan of %s" , toStr ( key ) , lifespan ) ; } AdvancedCache < K , V > cacheToUse = skipLocking ? cache . withFlags ( Fla... |
public class CognitiveServicesAccountsInner { /** * Regenerates the specified account key for the specified Cognitive Services account .
* @ param resourceGroupName The name of the resource group within the user ' s subscription .
* @ param accountName The name of the cognitive services account within the specified... | return ServiceFuture . fromResponse ( regenerateKeyWithServiceResponseAsync ( resourceGroupName , accountName ) , serviceCallback ) ; |
public class TransitionsExtractorImpl { /** * Get the tiles for the transition . Create empty list if new transition .
* @ param transitions The transitions data .
* @ param transition The transition type .
* @ return The associated tiles . */
private static Collection < TileRef > getTiles ( Map < Transition , Co... | if ( ! transitions . containsKey ( transition ) ) { transitions . put ( transition , new HashSet < TileRef > ( ) ) ; } return transitions . get ( transition ) ; |
public class ApiOvhIpLoadbalancing { /** * Add a new UDP frontend on your IP Load Balancing
* REST : POST / ipLoadbalancing / { serviceName } / udp / frontend
* @ param zone [ required ] Zone of your frontend . Use " all " for all owned zone .
* @ param dedicatedIpfo [ required ] Only attach frontend on these ip ... | String qPath = "/ipLoadbalancing/{serviceName}/udp/frontend" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "dedicatedIpfo" , dedicatedIpfo ) ; addBody ( o , "defaultFarmId" , defaultFarmId ) ; addBody ( o , "disabled" , disabled )... |
public class Smb2ChangeNotifyRequest { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2Request # createResponse ( jcifs . CIFSContext ,
* jcifs . internal . smb2 . ServerMessageBlock2Request ) */
@ Override protected Smb2ChangeNotifyResponse createResponse ( CIFSContext tc , ServerMessag... | return new Smb2ChangeNotifyResponse ( tc . getConfig ( ) ) ; |
public class CmsUgcSession { /** * Adds the given value to the content document . < p >
* @ param content the content document
* @ param locale the content locale
* @ param path the value XPath
* @ param value the value */
protected void addContentValue ( CmsXmlContent content , Locale locale , String path , St... | boolean hasValue = content . hasValue ( path , locale ) ; if ( ! hasValue ) { String [ ] pathElements = path . split ( "/" ) ; String currentPath = pathElements [ 0 ] ; for ( int i = 0 ; i < pathElements . length ; i ++ ) { if ( i > 0 ) { currentPath = CmsStringUtil . joinPaths ( currentPath , pathElements [ i ] ) ; } ... |
public class BindTypeBuilder { /** * Parse entity properties and write code to read only CData Text fields .
* @ param context
* the context
* @ param methodBuilder
* the method builder
* @ param instanceName
* the instance name
* @ param parserName
* the parser name
* @ param entity
* the entity */... | BindTransform bindTransform ; int count = 0 ; for ( BindProperty property : entity . getCollection ( ) ) { if ( property . xmlInfo . xmlType != XmlType . VALUE && property . xmlInfo . xmlType != XmlType . VALUE_CDATA ) continue ; count ++ ; methodBuilder . beginControlFlow ( "if (elementName!=null && $L.hasText())" , p... |
public class AipImageSearch { /** * 相同图检索 — 检索接口
* 完成入库后 , 可使用该接口实现相同图检索 。 * * 支持传入指定分类维度 ( 具体变量tags ) 进行检索 , 返回结果支持翻页 ( 具体变量pn 、 rn ) 。 * * * * 请注意 , 检索接口不返回原图 , 仅反馈当前填写的brief信息 , 请调用入库接口时尽量填写可关联至本地图库的图片id或者图片url等信息 。 * *
* @ param url - 图片完整URL , URL长度不超过1024字节 , URL对应的图片base64编码后大小不超过4M , 最短边至少15px , 最长边最大4096px... | AipRequest request = new AipRequest ( ) ; preOperation ( request ) ; request . addBody ( "url" , url ) ; if ( options != null ) { request . addBody ( options ) ; } request . setUri ( ImageSearchConsts . SAME_HQ_SEARCH ) ; postOperation ( request ) ; return requestServer ( request ) ; |
public class UnsupportedDateTimeField { /** * Gets an instance of UnsupportedDateTimeField for a specific named field .
* Names should be of standard format , such as ' monthOfYear ' or ' hourOfDay ' .
* The returned instance is cached .
* @ param type the type to obtain
* @ return the instance
* @ throws Ill... | UnsupportedDateTimeField field ; if ( cCache == null ) { cCache = new HashMap < DateTimeFieldType , UnsupportedDateTimeField > ( 7 ) ; field = null ; } else { field = cCache . get ( type ) ; if ( field != null && field . getDurationField ( ) != durationField ) { field = null ; } } if ( field == null ) { field = new Uns... |
public class PipelineScheduleQueue { /** * TODO : # 5163 - this is a concurrency issue - talk to Rajesh or JJ */
public boolean hasBuildCause ( CaseInsensitiveString pipelineName ) { } } | BuildCause buildCause = toBeScheduled . get ( pipelineName ) ; return buildCause != null && buildCause . getMaterialRevisions ( ) . totalNumberOfModifications ( ) > 0 ; |
public class SqlInfoBuilder { /** * 构建 " IN " 范围查询的SqlInfo信息 .
* @ param fieldText 数据库字段文本
* @ param values 对象数组的值
* @ return 返回SqlInfo信息 */
public SqlInfo buildInSql ( String fieldText , Object [ ] values ) { } } | if ( values == null || values . length == 0 ) { return sqlInfo ; } // 遍历数组 , 并遍历添加in查询的替换符和参数
this . suffix = StringHelper . isBlank ( this . suffix ) ? ZealotConst . IN_SUFFIX : this . suffix ; join . append ( prefix ) . append ( fieldText ) . append ( this . suffix ) . append ( "(" ) ; int len = values . length ; for... |
public class HttpClientHelper { /** * for bad response , whose responseCode is not 200 level
* @ param responseCode
* @ param errorCode
* @ param errorMsg
* @ return
* @ throws JSONException */
public static JSONObject processGoodRespStr ( int responseCode , String goodRespStr ) throws JSONException { } } | JSONObject response = new JSONObject ( ) ; response . put ( "responseCode" , responseCode ) ; if ( goodRespStr . equalsIgnoreCase ( "" ) ) { response . put ( "responseMsg" , "" ) ; } else { response . put ( "responseMsg" , new JSONObject ( goodRespStr ) ) ; } return response ; |
public class HamcrestMatchers { /** * < p > Creates an order agnostic matcher for { @ linkplain Iterable } s that matches when a single pass over the examined
* { @ linkplain Iterable } yields a series of items , each logically equal to one item anywhere in the specified items .
* For a positive match , the examine... | return IsIterableContainingInAnyOrder . containsInAnyOrder ( items ) ; |
public class TimeUtils { /** * Checks that a date falls in the interval allowing for a certain clock skew
* expressed in minutes . The interval defined by ( startDate , endDate ) is
* modified to be ( startDate - skewInMinutes , endDate + skewInMinutes ) .
* @ param timeToCheck
* the time to be checked
* @ pa... | if ( startDate . after ( endDate ) || startDate . equals ( endDate ) ) { String msg = String . format ( "Illegal time interval: start date must be before end date. [start date: %s, end date: %s]" , startDate , endDate ) ; throw new IllegalArgumentException ( msg ) ; } Calendar cal = Calendar . getInstance ( ) ; cal . s... |
public class Security { /** * Implementation detail : If the property we just set in
* setProperty ( ) was either " package . access " or
* " package . definition " , we need to signal to the SecurityManager
* class that the value has just changed , and that it should
* invalidate it ' s local cache values .
... | final boolean pa = key . equals ( "package.access" ) ; final boolean pd = key . equals ( "package.definition" ) ; if ( pa || pd ) { AccessController . doPrivileged ( new PrivilegedAction < Void > ( ) { public Void run ( ) { try { /* Get the class via the bootstrap class loader . */
Class cl = Class . forName ( "java.la... |
public class Stream { /** * Zip together the " a " , " b " and " c " arrays until one of them runs out of values .
* Each triple of values is combined into a single value using the supplied zipFunction function .
* @ param a
* @ param b
* @ return */
public static < R > Stream < R > zip ( final double [ ] a , f... | return zip ( DoubleIteratorEx . of ( a ) , DoubleIteratorEx . of ( b ) , DoubleIteratorEx . of ( c ) , zipFunction ) ; |
public class VListIterator { /** * helper function to be called after set ( ) and setValue ( ) */
private void afterSet ( E element ) { } } | switch ( _lastCall ) { case NEXT : _previousNode = _stack . getListNode ( _lastId ) ; break ; case PREVIOUS : _nextNode = _stack . getListNode ( _lastId ) ; break ; default : throw new IllegalStateException ( ) ; } |
public class ServerGroup { /** * If the server group has a sequence number , then return it . Otherwise return null . */
public String sequence ( ) { } } | return dN == asg . length ( ) ? null : substr ( asg , dN + 1 , asg . length ( ) ) ; |
public class BaseClassFinderService { /** * Get the configuration properties for this Pid .
* @ param servicePid The service Pid
* @ return The properties or null if they don ' t exist . */
@ SuppressWarnings ( "unchecked" ) @ Override public Dictionary < String , String > getProperties ( String servicePid ) { } } | Dictionary < String , String > properties = null ; try { if ( servicePid != null ) { ServiceReference caRef = bundleContext . getServiceReference ( ConfigurationAdmin . class . getName ( ) ) ; if ( caRef != null ) { ConfigurationAdmin configAdmin = ( ConfigurationAdmin ) bundleContext . getService ( caRef ) ; Configura... |
public class SpecificationMethodAdapter { /** * Injects the specified contract method code into the current
* class , and returns a new Method object representing the injected
* method . This is done by bypassing the SpecificationClassAdapter
* and talking directly to its parent ( usually , a class writer ) .
*... | MethodNode methodNode = handle . getContractMethod ( ) ; if ( ! handle . isInjected ( ) ) { DebugUtils . info ( "instrument" , "contract method " + className + "." + methodNode . name + methodNode . desc ) ; ClassVisitor cv = classAdapter . getParent ( ) ; List < Long > lineNumbers = handle . getLineNumbers ( ) ; if ( ... |
public class Lookahead { /** * Consumes ( removes ) < tt > numberOfItems < / tt > at once .
* Removes the given number of items from the stream .
* @ param numberOfItems the number of items to remove */
public void consume ( int numberOfItems ) { } } | if ( numberOfItems < 0 ) { throw new IllegalArgumentException ( "numberOfItems < 0" ) ; } while ( numberOfItems -- > 0 ) { if ( ! itemBuffer . isEmpty ( ) ) { itemBuffer . remove ( 0 ) ; } else { if ( endReached ) { return ; } T item = fetch ( ) ; if ( item == null ) { endReached = true ; } } } |
public class LazyUserTransaction { protected static String buildLazyTxExp ( ) { } } | final int status ; try { final TransactionManager manager = ContainerUtil . getComponent ( TransactionManager . class ) ; // for static use
status = manager . getStatus ( ) ; } catch ( SystemException e ) { throw new IllegalStateException ( "Failed to get status from transaction manager." , e ) ; } final String statusE... |
public class Scheduler { /** * Submit a task to the ActiveContext . */
public synchronized void submitTask ( final ActiveContext context ) { } } | final TaskEntity task = taskQueue . poll ( ) ; final Integer taskId = task . getId ( ) ; final String command = task . getCommand ( ) ; final Configuration taskConf = TaskConfiguration . CONF . set ( TaskConfiguration . TASK , ShellTask . class ) . set ( TaskConfiguration . IDENTIFIER , taskId . toString ( ) ) . build ... |
public class XMemberFeatureCallImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setTypeLiteral ( boolean newTypeLiteral ) { } } | boolean oldTypeLiteral = typeLiteral ; typeLiteral = newTypeLiteral ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , XbasePackage . XMEMBER_FEATURE_CALL__TYPE_LITERAL , oldTypeLiteral , typeLiteral ) ) ; |
public class ControllerLinkRelationProvider { /** * ( non - Javadoc )
* @ see org . springframework . hateoas . server . LinkRelationProvider # getItemResourceRelFor ( java . lang . Class ) */
@ Override public LinkRelation getItemResourceRelFor ( Class < ? > resource ) { } } | LookupContext context = LookupContext . forItemResourceRelLookup ( entityType ) ; return providers . getRequiredPluginFor ( context ) . getItemResourceRelFor ( resource ) ; |
public class ComponentList { /** * Returns a list containing all components with specified name .
* @ param name name of components to return
* @ return a list of components with the matching name */
@ SuppressWarnings ( "unchecked" ) public final < C extends T > ComponentList < C > getComponents ( final String nam... | final ComponentList < C > components = new ComponentList < C > ( ) ; for ( final T c : this ) { if ( c . getName ( ) . equals ( name ) ) { components . add ( ( C ) c ) ; } } return components ; |
public class HBaseClient { /** * ( non - Javadoc )
* @ see com . impetus . kundera . persistence . api . Batcher # executeBatch ( ) */
@ Override public int executeBatch ( ) { } } | Map < String , List < Row > > batchData = new HashMap < String , List < Row > > ( ) ; try { for ( Node node : nodes ) { if ( node . isDirty ( ) ) { Row action = null ; node . handlePreEvent ( ) ; Object rowKey = node . getEntityId ( ) ; Object entity = node . getData ( ) ; EntityMetadata m = KunderaMetadataManager . ge... |
public class VMath { /** * Computes component - wise v1 = v1 + v2,
* overwriting the vector v1.
* @ param v1 first vector ( overwritten )
* @ param v2 second vector
* @ return v1 = v1 + v2 */
public static double [ ] plusEquals ( final double [ ] v1 , final double [ ] v2 ) { } } | assert v1 . length == v2 . length : ERR_VEC_DIMENSIONS ; for ( int i = 0 ; i < v1 . length ; i ++ ) { v1 [ i ] += v2 [ i ] ; } return v1 ; |
public class GenericWordSpace { /** * Returns the current semantic vector for the provided word , or if the word
* is not currently in the semantic space , a vector is added for it and
* returned .
* @ param word a word
* @ return the { @ code SemanticVector } for the provide word . */
private SparseIntegerVect... | SparseIntegerVector v = wordToSemantics . get ( word ) ; if ( v == null ) { // lock on the word in case multiple threads attempt to add it at
// once
synchronized ( this ) { // recheck in case another thread added it while we were waiting
// for the lock
v = wordToSemantics . get ( word ) ; if ( v == null ) { v = new C... |
public class ClosableCharArrayWriter { /** * Writes the designated portion of the designated character array < p > .
* @ param c the source character sequence .
* @ param off the start offset in the source character sequence .
* @ param len the number of characters to write .
* @ throws java . io . IOException ... | checkClosed ( ) ; if ( ( off < 0 ) || ( off > c . length ) || ( len < 0 ) || ( ( off + len ) > c . length ) || ( ( off + len ) < 0 ) ) { throw new IndexOutOfBoundsException ( ) ; } else if ( len == 0 ) { return ; } int newcount = count + len ; if ( newcount > buf . length ) { buf = copyOf ( buf , Math . max ( buf . len... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link VendorType } { @ code > } } */
@ XmlElementDecl ( namespace = "http://schema.intuit.com/finance/v3" , name = "VendorType" , substitutionHeadNamespace = "http://schema.intuit.com/finance/v3" , substitutionHeadName = "In... | return new JAXBElement < VendorType > ( _VendorType_QNAME , VendorType . class , null , value ) ; |
public class Builder { /** * - - create methods */
public static void add ( Element parent , NodeList list ) { } } | int size ; int i ; size = list . getLength ( ) ; for ( i = 0 ; i < size ; i ++ ) { addNode ( parent , list . item ( i ) ) ; } |
public class Score { /** * scoring chunks are those chunks that make the input to one of the scoring functions */
private Chunk [ ] getScoringChunks ( Chunk [ ] allChunks ) { } } | if ( _preds == null ) return allChunks ; Chunk [ ] chks = new Chunk [ allChunks . length - _preds . numCols ( ) ] ; System . arraycopy ( allChunks , 0 , chks , 0 , chks . length ) ; return chks ; |
public class NotificationBoard { /** * Set the y translation of this board .
* @ param y */
public void setBoardTranslationY ( float y ) { } } | if ( mListeners != null ) { for ( StateListener l : mListeners ) { l . onBoardTranslationY ( this , y ) ; } } mContentView . setTranslationY ( y ) ; |
public class DescribeAgentVersionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeAgentVersionsRequest describeAgentVersionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeAgentVersionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeAgentVersionsRequest . getStackId ( ) , STACKID_BINDING ) ; protocolMarshaller . marshall ( describeAgentVersionsRequest . getConfigurationManager (... |
public class IntHashMap { /** * Reconstitute the < tt > IntHashMap < / tt > instance from a stream ( i . e . ,
* deserialize it ) . */
private void readObject ( java . io . ObjectInputStream s ) throws IOException , ClassNotFoundException { } } | // Read in the threshold , loadfactor , and any hidden stuff
s . defaultReadObject ( ) ; // Read in number of buckets and allocate the bucket array ;
int numBuckets = s . readInt ( ) ; table = new Entry [ numBuckets ] ; // Read in size ( number of Mappings )
int size = s . readInt ( ) ; // Read the keys and values , an... |
public class ActionPathResolver { protected void buildUrlParts ( StringBuilder sb , UrlChain chain ) { } } | // also contains path variables
final Object [ ] urlParts = chain != null ? chain . getUrlParts ( ) : null ; boolean existsParts = false ; if ( urlParts != null ) { for ( Object param : urlParts ) { if ( param != null ) { sb . append ( param ) . append ( URL_DELIMITER ) ; existsParts = true ; } } } if ( existsParts ) {... |
public class SynchronizedIO { /** * Write binary file data
* @ param filePath the file path to write
* @ param data the write
* @ throws IOException when IO error occurs */
public void writeFile ( String filePath , byte [ ] data ) throws IOException { } } | Object lock = retrieveLock ( filePath ) ; synchronized ( lock ) { IO . writeFile ( filePath , data ) ; } |
public class SpringApplicationBuilder { /** * Create an application context ( and its parent if specified ) with the command line
* args provided . The parent is run first with the same arguments if has not yet been
* started .
* @ param args the command line arguments
* @ return an application context created ... | if ( this . running . get ( ) ) { // If already created we just return the existing context
return this . context ; } configureAsChildIfNecessary ( args ) ; if ( this . running . compareAndSet ( false , true ) ) { synchronized ( this . running ) { // If not already running copy the sources over and then run .
this . co... |
public class Matth { /** * Returns the base - 2 logarithm of { @ code x } , rounded according to the specified rounding mode .
* @ throws IllegalArgumentException if { @ code x < = 0}
* @ throws ArithmeticException if { @ code mode } is { @ link RoundingMode # UNNECESSARY } and { @ code x }
* is not a power of tw... | checkPositive ( "x" , N . checkArgNotNull ( x ) ) ; int logFloor = x . bitLength ( ) - 1 ; switch ( mode ) { case UNNECESSARY : checkRoundingUnnecessary ( isPowerOfTwo ( x ) ) ; // fall through
case DOWN : case FLOOR : return logFloor ; case UP : case CEILING : return isPowerOfTwo ( x ) ? logFloor : logFloor + 1 ; case... |
public class SAMLConfigurerBean { /** * Returns The { @ link ServiceProviderBuilder } for customization of the SAML Service Provider
* @ param serviceProviderConfigurers A list { @ link ServiceProviderConfigurer } to apply to the { @ link
* ServiceProviderBuilder }
* before it is returned .
* @ return The { @ l... | serviceProviderConfigurers . forEach ( unchecked ( spc -> spc . configure ( serviceProvider ( ) ) ) ) ; return serviceProviderBuilder ; |
public class Status { /** * Create a derived instance of { @ link Status } with the given cause .
* However , the cause is not transmitted from server to client . */
public Status withCause ( Throwable cause ) { } } | if ( Objects . equal ( this . cause , cause ) ) { return this ; } return new Status ( this . code , this . description , cause ) ; |
public class Layer { /** * The layer attributes .
* For the < code > HaproxyStatsPassword < / code > , < code > MysqlRootPassword < / code > , and < code > GangliaPassword < / code >
* attributes , AWS OpsWorks Stacks returns < code > * * * * * FILTERED * * * * * < / code > instead of the actual value
* For an EC... | setAttributes ( attributes ) ; return this ; |
public class JPAEMPool { /** * Prohibit access to the criteria builder via the pool .
* @ throws UnsupportedOperationException */
@ Override public CriteriaBuilder getCriteriaBuilder ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getCriteriaBuilder : " + this ) ; throw new UnsupportedOperationException ( "This operation is not supported on a pooling EntityManagerFactory." ) ; |
public class DbHelperBase { /** * List of references with multiplicity = 1 */
private List < Reference > getAllOneReferences ( DomainObject domainObject ) { } } | List < Reference > allReferences = domainObject . getReferences ( ) ; List < Reference > allOneReferences = new ArrayList < Reference > ( ) ; for ( Reference ref : allReferences ) { if ( ! ref . isMany ( ) ) { allOneReferences . add ( ref ) ; } } return allOneReferences ; |
public class CmsXmlContentEditor { /** * Performs the copy locale action . < p >
* @ throws JspException if something goes wrong */
public void actionCopyElementLocale ( ) throws JspException { } } | try { setEditorValues ( getElementLocale ( ) ) ; if ( ! hasValidationErrors ( ) ) { // save content of the editor only to the temporary file
writeContent ( ) ; CmsObject cloneCms = getCloneCms ( ) ; CmsUUID tempProjectId = OpenCms . getWorkplaceManager ( ) . getTempFileProjectId ( ) ; cloneCms . getRequestContext ( ) .... |
public class JodaBeanSer { /** * Returns a copy of this serializer with the specified include derived flag .
* The default deserializers can be modified .
* This is used to set the output to include derived properties .
* @ param includeDerived whether to include derived properties on output
* @ return a copy o... | return new JodaBeanSer ( indent , newLine , converter , iteratorFactory , shortTypes , deserializers , includeDerived ) ; |
public class JmxUtilities { /** * Attempt to find a locally running < code > MBeanServer < / code > . Fails if no
* < code > MBeanServer < / code > can be found . If multiple servers are found ,
* simply returns the first one from the list .
* @ param agent the agent identifier of the MBeanServer to retrieve .
... | List servers = MBeanServerFactory . findMBeanServer ( agent ) ; MBeanServer server = null ; if ( servers != null && servers . size ( ) > 0 ) { server = ( MBeanServer ) servers . get ( 0 ) ; } if ( server == null && agent == null ) { // Attempt to load the PlatformMBeanServer .
try { server = ManagementFactory . getPlat... |
public class GBSIterator { /** * Find the left - most child of the tree by following all of the
* left children down to the bottom of the tree .
* @ param stack The DeleteStack that is used to record the traversal .
* @ return The left most child at the bottom of the tree or null
* if the tree is empty .
* @ ... | GBSNode p ; p = _index . root ( ) ; /* Root of tree */
GBSNode lastl = null ; /* Will point to left - most child */
if ( p != null ) /* Root is not null , we have a tree */
{ /* Remember father of root */
stack . start ( _index . dummyTopNode ( ) , "GBSIterator.leftMostChild" ) ; lastl = leftMostChild ( stack , p ) ; }... |
public class GZipUtils { /** * 文件解压缩
* @ param path
* @ param delete 是否删除原始文件
* @ throws Exception */
public static void decompress ( String path , boolean delete ) throws Exception { } } | File file = new File ( path ) ; decompress ( file , delete ) ; |
public class WValidationErrorsRenderer { /** * Paints the given { @ link WValidationErrors } component .
* @ param component The { @ link WValidationErrors } component to paint .
* @ param renderContext the RenderContext to paint to . */
@ Override public void doRender ( final WComponent component , final WebXmlRen... | WValidationErrors errors = ( WValidationErrors ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; if ( errors . hasErrors ( ) ) { xml . appendTagOpen ( "ui:validationerrors" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xml . appendOptionalAttribute ( "class" , component . getHtmlClass ... |
public class CmsPublishScheduledDialog { /** * Submits the dialog action . < p > */
void submit ( ) { } } | // if ( ! m _ dateField . isValid ( ) ) {
// return ;
long current = System . currentTimeMillis ( ) ; Date dateValue = m_dateField . getDate ( ) ; long publishTime = dateValue . getTime ( ) ; if ( current > publishTime ) { m_context . error ( new CmsException ( Messages . get ( ) . container ( Messages . ERR_PUBLISH_SC... |
public class FaultTolerantBlockPlacementPolicy { /** * A function to be used by unit tests only */
public static void setBadHostsAndRacks ( Set < String > racks , Set < String > hosts ) { } } | badRacks = racks ; badHosts = hosts ; |
public class DnDManager { /** * Add the appropriate target listeners to this component
* and all its children . */
protected void addTargetListeners ( Component comp ) { } } | comp . addMouseListener ( _targetListener ) ; comp . addMouseMotionListener ( _targetListener ) ; if ( comp instanceof Container ) { // hm , always true for JComp . .
Container cont = ( Container ) comp ; cont . addContainerListener ( _childListener ) ; for ( int ii = 0 , nn = cont . getComponentCount ( ) ; ii < nn ; i... |
public class ClassPropertyUsageAnalyzer { /** * Prints a list of classes to the given output . The list is encoded as a
* single CSV value , using " @ " as a separator . Miga can decode this .
* Standard CSV processors do not support lists of entries as values ,
* however .
* @ param out
* the output to write... | out . print ( ",\"" ) ; boolean first = true ; for ( EntityIdValue superClass : classes ) { if ( first ) { first = false ; } else { out . print ( "@" ) ; } // makeshift escaping for Miga :
out . print ( getClassLabel ( superClass ) . replace ( "@" , "@" ) ) ; } out . print ( "\"" ) ; |
public class Calendrical { /** * < p > Definiert eine rein zeitliche Ordnung . < / p >
* < p > Diese Implementierung wertet die zeitliche Position auf dem
* gemeinsamen Zeitstrahl aus , also die Epochentage . < / p >
* @ param date another date to be compared with
* @ return negative , zero or positive integer ... | long d1 = this . getDaysSinceEpochUTC ( ) ; long d2 = date . getDaysSinceEpochUTC ( ) ; return ( ( d1 < d2 ) ? - 1 : ( ( d1 == d2 ) ? 0 : 1 ) ) ; |
public class NfsRequestBase { /** * ( non - Javadoc )
* @ see com . emc . ecs . nfsclient . rpc . RpcRequest # startToString ( java . lang . String ) */
protected final StringBuilder startToString ( String requestlabel ) { } } | return super . startToString ( requestlabel ) . append ( " fileHandle:" ) . append ( Arrays . toString ( _fileHandle ) ) ; |
public class ModifyRawHelper { /** * Checks if is in .
* @ param value
* the value
* @ param classes
* the classes
* @ return true , if is in */
static boolean isIn ( TypeName value , Class < ? > ... classes ) { } } | for ( Class < ? > item : classes ) { if ( value . toString ( ) . equals ( TypeName . get ( item ) . toString ( ) ) ) { return true ; } } return false ; |
public class JsonStreamWriter { /** * Write an int attribute .
* @ param name attribute name
* @ param value attribute value */
public void writeNameValuePair ( String name , int value ) throws IOException { } } | internalWriteNameValuePair ( name , Integer . toString ( value ) ) ; |
public class Span { /** * Finds the index of the row in which the given timestamp should be .
* @ param timestamp A strictly positive 32 - bit integer .
* @ return A strictly positive index in the { @ code rows } array . */
private int seekRow ( final long timestamp ) { } } | checkRowOrder ( ) ; int row_index = 0 ; iRowSeq row = null ; final int nrows = rows . size ( ) ; for ( int i = 0 ; i < nrows ; i ++ ) { row = rows . get ( i ) ; final int sz = row . size ( ) ; if ( sz < 1 ) { row_index ++ ; } else if ( row . timestamp ( sz - 1 ) < timestamp ) { row_index ++ ; // The last DP in this row... |
public class JobConf { /** * Use MRAsyncDiskService . moveAndDeleteAllVolumes instead .
* @ see org . apache . hadoop . util . MRAsyncDiskService # cleanupAllVolumes ( ) */
@ Deprecated public void deleteLocalFiles ( ) throws IOException { } } | String [ ] localDirs = getLocalDirs ( ) ; for ( int i = 0 ; i < localDirs . length ; i ++ ) { FileSystem . getLocal ( this ) . delete ( new Path ( localDirs [ i ] ) ) ; } |
public class Tracer { /** * Get the ThreadTrace for the current thread , creating one if necessary . */
static ThreadTrace getThreadTrace ( ) { } } | ThreadTrace t = traces . get ( ) ; if ( t == null ) { t = new ThreadTrace ( ) ; t . prettyPrint = defaultPrettyPrint ; traces . set ( t ) ; } return t ; |
public class ProductSegmentation { /** * Gets the geoSegment value for this ProductSegmentation .
* @ return geoSegment * The geographic segmentation . Segments should be set on the
* { @ link GeoTargeting # targetedLocations } field .
* < p > This attribute is optional . */
public com . google . api . ads . adma... | return geoSegment ; |
public class DoublesSketch { /** * This is a more efficient multiple - query version of getQuantile ( ) .
* < p > This returns an array that could have been generated by using getQuantile ( ) with many
* different fractional ranks , but would be very inefficient .
* This method incurs the internal set - up overhe... | if ( isEmpty ( ) ) { return null ; } DoublesAuxiliary aux = null ; final double [ ] quantiles = new double [ fRanks . length ] ; for ( int i = 0 ; i < fRanks . length ; i ++ ) { final double fRank = fRanks [ i ] ; if ( fRank == 0.0 ) { quantiles [ i ] = getMinValue ( ) ; } else if ( fRank == 1.0 ) { quantiles [ i ] = g... |
public class MsgChecker { /** * Replace callback msg checker .
* @ param type the type
* @ param cb the cb
* @ return the msg checker */
public MsgChecker replaceCallback ( BasicCheckRule type , ValidationInvalidCallback cb ) { } } | this . callbackMap . put ( type . name ( ) , cb ) ; return this ; |
public class InterceptedStreamMap { /** * Closes the given stream , logging any errors that occur during closure .
* The monitor of the stream is notified via a single call to notify ( ) once
* the attempt to close has been made .
* @ param stream
* The stream to close and notify . */
private void close ( T str... | // Attempt to close stream
try { stream . close ( ) ; } catch ( IOException e ) { logger . warn ( "Unable to close intercepted stream: {}" , e . getMessage ( ) ) ; logger . debug ( "I/O error prevented closure of intercepted stream." , e ) ; } // Notify waiting threads that the stream has ended
synchronized ( stream ) ... |
public class JobMaster { /** * - - job starting and stopping - - - - - */
private Acknowledge startJobExecution ( JobMasterId newJobMasterId ) throws Exception { } } | validateRunsInMainThread ( ) ; checkNotNull ( newJobMasterId , "The new JobMasterId must not be null." ) ; if ( Objects . equals ( getFencingToken ( ) , newJobMasterId ) ) { log . info ( "Already started the job execution with JobMasterId {}." , newJobMasterId ) ; return Acknowledge . get ( ) ; } setNewFencingToken ( n... |
public class CmsWebdavServlet { /** * Check to see if a resource is currently write locked . < p >
* @ param path the path where to find the resource to check the lock
* @ return true if the resource is locked otherwise false */
private boolean isLocked ( String path ) { } } | // get lock for path
CmsRepositoryLockInfo lock = m_session . getLock ( path ) ; if ( lock == null ) { return false ; } // check if found lock fits to the lock token from request
// String currentToken = " < opaquelocktoken : " + generateLockToken ( req , lock ) + " > " ;
// if ( currentToken . equals ( parseLockTokenH... |
public class Transformer { /** * Change view height using the LayoutParams of the view .
* @ param newHeight to change . . */
public void setViewHeight ( int newHeight ) { } } | if ( newHeight > 0 ) { originalHeight = newHeight ; RelativeLayout . LayoutParams layoutParams = ( RelativeLayout . LayoutParams ) view . getLayoutParams ( ) ; layoutParams . height = newHeight ; view . setLayoutParams ( layoutParams ) ; } |
public class GuildController { /** * Modifies the { @ link net . dv8tion . jda . core . entities . Role Roles } of the specified { @ link net . dv8tion . jda . core . entities . Member Member }
* by adding and removing a collection of roles .
* < br > None of the provided roles may be the < u > Public Role < / u > ... | Checks . notNull ( member , "Member" ) ; Checks . notNull ( rolesToAdd , "Collection containing roles to be added to the member" ) ; Checks . notNull ( rolesToRemove , "Collection containing roles to be removed from the member" ) ; checkGuild ( member . getGuild ( ) , "Member" ) ; checkPermission ( Permission . MANAGE_... |
public class CollectionAssert { /** * Checks whether size is between the provided value .
* @ param lowerBound - the collection should have size greater than or equal to this
* value
* @ param higherBound - the collection should have size less than or equal to this
* value
* @ return this */
public Collection... | isNotNull ( ) ; int size = size ( this . actual ) ; if ( ! ( size >= lowerBound && size <= higherBound ) ) { failWithMessage ( "The size <%s> is not between <%s> and <%s>" , size , lowerBound , higherBound ) ; } return this ; |
public class LoaderUtil { /** * Determines if a named Class can be loaded or not .
* @ param className The class name .
* @ return { @ code true } if the class could be found or { @ code false } otherwise .
* @ since 2.7 */
public static boolean isClassAvailable ( final String className ) { } } | try { final Class < ? > clazz = loadClass ( className ) ; return clazz != null ; } catch ( final ClassNotFoundException | LinkageError e ) { return false ; } catch ( final Throwable e ) { LowLevelLogUtil . logException ( "Unknown error checking for existence of class: " + className , e ) ; return false ; } |
public class UADetectorServiceFactory { /** * Returns an implementation of { @ link UserAgentStringParser } which checks at regular intervals for new versions of
* < em > UAS data < / em > ( also known as database ) . When newer data available , it automatically loads and updates it .
* Additionally the loaded data... | return CachingAndUpdatingParserHolder . getParser ( dataUrl , versionUrl , RESOURCE_MODULE ) ; |
public class WebServiceRefProcessor { /** * This method will be responsible for validating all of the rules that govern injection through member level WebServiceRef annotation .
* It will also be responsible for setting the appropriate values on the WebServiceRefInfo instance . */
private void validateAndSetMemberLev... | // Save off these annotation attributes for use later .
Class < ? > typeClass = webServiceRef . type ( ) ; Class < ? > valueClass = webServiceRef . value ( ) ; // If the @ WebServiceRef ' s lookup is specified , then no other attributes should be present . Only name can be specified with lookup .
if ( webServiceRef . l... |
public class ConfigurationPropertyName { /** * Return a { @ link ConfigurationPropertyName } for the specified string .
* @ param name the source name
* @ param returnNullIfInvalid if null should be returned if the name is not valid
* @ return a { @ link ConfigurationPropertyName } instance
* @ throws InvalidCo... | Elements elements = elementsOf ( name , returnNullIfInvalid ) ; return ( elements != null ) ? new ConfigurationPropertyName ( elements ) : null ; |
import java . lang . * ; class CalculateSumAndAverage { /** * This function computes the sum and average of the first n natural numbers .
* @ param n Represents ' n ' natural numbers
* @ return A double array containing the sum and the average of ' n ' natural numbers
* Examples :
* calculateSumAndAverage ( 10)... | double totalSum = 0.0 ; for ( int i = 1 ; i <= n ; i ++ ) { totalSum += i ; } double avg = totalSum / n ; return new double [ ] { totalSum , avg } ; |
public class CFIRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . CFIRG__FCS_NAME : setFCSName ( ( String ) newValue ) ; return ; case AfplibPackage . CFIRG__CP_NAME : setCPName ( ( String ) newValue ) ; return ; case AfplibPackage . CFIRG__SV_SIZE : setSVSize ( ( Integer ) newValue ) ; return ; case AfplibPackage . CFIRG__SH_SCALE : setSHS... |
public class FloatingActionButton { /** * Update the location of this button . This method only work if it ' s already attached to a parent view .
* @ param x The x value of anchor point .
* @ param y The y value of anchor point .
* @ param gravity The gravity apply with this button .
* @ see Gravity */
public ... | if ( getParent ( ) != null ) updateParams ( x , y , gravity , getLayoutParams ( ) ) ; else Log . v ( FloatingActionButton . class . getSimpleName ( ) , "updateLocation() is called without parent" ) ; |
public class AbstractController { /** * Link an User Interface action to an event triggered on a node .
* Don ' t forget to add a placeholder to indicate where to attach the model node created
* @ param node the node to follow
* @ param eventType the type of the event to follow
* @ param modelClass the model to... | boolean noHookFound = true ; // Check if the contract is respected by searching a placeholder from WaveData
WaveData < ? > wd ; for ( int i = 0 ; i < waveData . length && noHookFound ; i ++ ) { wd = waveData [ i ] ; if ( ( JRebirthWaves . ATTACH_UI_NODE_PLACEHOLDER . equals ( wd . key ( ) ) || JRebirthWaves . ADD_UI_CH... |
public class HttpsFileUploaderConfig { /** * Sets additional overall HTTP headers to add to the upload POST request . There ' s
* rarely a need to use this method .
* < p > The following header fields are automatically set :
* < pre >
* " Connection "
* " Cache - Control "
* " Content - Type "
* " Content... | Map < String , String > newMap = new HashMap < > ( ) ; for ( Entry < String , String > e : additionalHeaders . entrySet ( ) ) { boolean found = false ; for ( String restrictedHeaderField : RESTRICTED_HTTP_HEADERS ) { if ( e . getKey ( ) . equalsIgnoreCase ( restrictedHeaderField ) ) { found = true ; break ; } } if ( ! ... |
public class AbstractController { /** * Gets the user data .
* @ param node the node
* @ param waveItem the wave item
* @ return the user data
* @ param < T > the generic type */
protected < T > Optional < T > getUserData ( Optional < ? extends Node > node , WaveItem < T > waveItem ) { } } | if ( node . isPresent ( ) ) { final Node n = node . get ( ) ; return getValue ( n , n :: getUserData , waveItem ) ; } return Optional . empty ( ) ; |
public class Analyser { /** * Analyse a single folder entity . Results are stored into
* mAnalysedEntityTable .
* @ param node the node that will be analysed
* @ throws Exception if an error occurred while analysing the node ( for example , failed to send the message ) */
private void analyse ( StructuralNode nod... | // if analysed already , return ;
// move to host part
if ( node . getHistoryReference ( ) == null ) { return ; } if ( ! parent . nodeInScope ( node . getName ( ) ) ) { return ; } // ZAP : Removed unnecessary cast .
HttpMessage baseMsg = node . getHistoryReference ( ) . getHttpMessage ( ) ; URI baseUri = ( URI ) baseMs... |
public class DefaultConverter { /** * Converts the string to an object of the given type .
* @ param pString the string to convert
* @ param pType the type to convert to
* @ param pFormat ignored .
* @ return the object created from the given string .
* @ throws ConversionException if the type is null , or if... | if ( pString == null ) { return null ; } if ( pType == null ) { throw new MissingTypeException ( ) ; } if ( pType . isArray ( ) ) { return toArray ( pString , pType , pFormat ) ; } // TODO : Separate CollectionConverter ?
// should however , be simple to wrap array using Arrays . asList
// But what about generic type ?... |
public class ContainerAS { /** * This method is called before the activity session this
* < code > ContainerAS < / code > is associated with is completed
* ( reset or completed ) . < p > */
public void beforeCompletion ( ) { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "beforeCompletion" ) ; becomePreparing ( ) ; // Change the state to PREPARRING
if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "beforeCompletion" ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.