signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcRelAssignsToProjectOrder ( ) { } } | if ( ifcRelAssignsToProjectOrderEClass == null ) { ifcRelAssignsToProjectOrderEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 445 ) ; } return ifcRelAssignsToProjectOrderEClass ; |
public class SuffixTree { /** * Inserts the given suffix into this tree .
* @ param suffix The suffix to insert . */
void insert ( Suffix < I , S > suffix ) { } } | if ( activePoint . isNode ( ) ) { Node < I , S > node = activePoint . getNode ( ) ; node . insert ( suffix , activePoint ) ; } else if ( activePoint . isEdge ( ) ) { Edge < I , S > edge = activePoint . getEdge ( ) ; edge . insert ( suffix , activePoint ) ; } |
public class ReadOnlyStyledDocumentBuilder { /** * Constructs a list of paragraphs
* @ param segmentOps the { @ link SegmentOps } object to use for one of the { @ link Paragraph } ' s constructors
* @ param defaultParagraphStyle the paragraph style object to use when it is not specified in the
* " addParagraph " ... | ReadOnlyStyledDocumentBuilder < PS , SEG , S > builder = new ReadOnlyStyledDocumentBuilder < > ( segmentOps , defaultParagraphStyle ) ; configuration . accept ( builder ) ; return builder . build ( ) ; |
public class ELHelper { /** * This method will process a configuration value for an Integer setting in
* { @ link LdapIdentityStoreDefinition } or { @ link DatabaseIdentityStoreDefinition } .
* It will first check to see if there is an EL expression . It there is , it will return
* the evaluated expression ; othe... | Integer result = null ; boolean immediate = false ; /* * The expression language value takes precedence over the direct setting . */
if ( expression . isEmpty ( ) ) { /* * Direct setting . */
result = value ; } else { /* * Evaluate the EL expression to get the value . */
Object obj = evaluateElExpression ( expression )... |
public class AVTrack { /** * Get the track ' s Codec _ ID field ( or null if this information is not available )
* @ return */
public String getCodecID ( ) { } } | final Element element = getElement ( "Codec_ID" , 0 ) ; if ( element != null ) return element . getText ( ) ; else return null ; |
public class DictTerm { /** * setter for enclosingSpan - sets span that this NoTerm is contained within ( i . e . its sentence )
* @ generated
* @ param v value to set into the feature */
public void setEnclosingSpan ( Annotation v ) { } } | if ( DictTerm_Type . featOkTst && ( ( DictTerm_Type ) jcasType ) . casFeat_enclosingSpan == null ) jcasType . jcas . throwFeatMissing ( "enclosingSpan" , "org.apache.uima.conceptMapper.DictTerm" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( DictTerm_Type ) jcasType ) . casFeatCode_enclosingSpan , jcasType . ll_ca... |
public class Cells { /** * Extracts the Cell ( s ) associated to the default table _ NOT _ marked as partition key and _ NOT _ marked as cluster
* key .
* @ return the Cells object containing the subset of this Cells object of only the Cell ( s ) that are NOT part of the
* key . */
public Cells getValueCells ( ) ... | Cells res = new Cells ( this . nameSpace ) ; for ( Map . Entry < String , List < Cell > > entry : cells . entrySet ( ) ) { Cells keys = getValueCells ( entry . getKey ( ) ) ; for ( Cell c : keys ) { res . add ( entry . getKey ( ) , c ) ; } } return res ; |
public class ContainerManagerTool { /** * Context related methods */
@ Override public void reloadContext ( ) throws DeploymentException { } } | Archive < ? > archive = mssContainer . getArchive ( ) ; deployableContainer . undeploy ( archive ) ; deployableContainer . deploy ( archive ) ; |
public class Immutables { /** * Wraps a key and value with an immutable { @ link Map . Entry } } . There is no copying involved .
* @ param key the key to wrap .
* @ param value the value to wrap .
* @ return an immutable { @ link Map . Entry } } wrapper that delegates to the original mapping . */
public static <... | return new ImmutableEntry < > ( key , value ) ; |
public class GloveChange { /** * Apply the changes to the table
* @ param table */
public void apply ( GloveWeightLookupTable table ) { } } | table . getBias ( ) . putScalar ( w1 . getIndex ( ) , table . getBias ( ) . getDouble ( w1 . getIndex ( ) ) - w1BiasUpdate ) ; table . getBias ( ) . putScalar ( w2 . getIndex ( ) , table . getBias ( ) . getDouble ( w2 . getIndex ( ) ) - w2BiasUpdate ) ; table . getSyn0 ( ) . slice ( w1 . getIndex ( ) ) . subi ( w1Updat... |
public class HiveAvroORCQueryGenerator { /** * Generate DDL query to create a Hive partition pointing at specific location .
* @ param dbName Hive database name .
* @ param tableName Hive table name .
* @ param partitionLocation Physical location of partition .
* @ param partitionsDMLInfo Partitions DML info - ... | if ( null == partitionsDMLInfo || partitionsDMLInfo . size ( ) == 0 ) { return Collections . emptyList ( ) ; } // Partition details
StringBuilder partitionSpecs = new StringBuilder ( ) ; partitionSpecs . append ( "PARTITION (" ) ; boolean isFirstPartitionSpec = true ; for ( Map . Entry < String , String > partition : p... |
public class AtomContainer { /** * { @ inheritDoc } */
@ Override public Iterable < IBond > bonds ( ) { } } | return new Iterable < IBond > ( ) { @ Override public Iterator < IBond > iterator ( ) { return new BondIterator ( ) ; } } ; |
public class SibRaEngineComponent { /** * Registers a listener for active messaging engines on a bus .
* @ param listener
* the listener to register
* @ param busName
* the name of the bus the listener wishes to be informed about
* messaging engines for or < code > null < / code > if it wishes to
* know abo... | final String methodName = "registerMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } final Set activeMessagingEngines = new HashSet ( ) ; /* * Take lock on active messaging engines to ensure that the activation
* of a messag... |
public class GBSTree { /** * Pessimistic insert into a GBS Tree .
* @ param stack The InsertStack used to do the insert .
* @ param new1 The Object to be inserted .
* @ return optimisticWorked as this version always works . */
private synchronized boolean pessimisticInsert ( InsertStack stack , Object new1 ) { } ... | _vno ++ ; if ( ( _vno & 1 ) == 1 ) { if ( root ( ) == null ) { addFirstNode ( new1 ) ; _population ++ ; } else { InsertNodes point = stack . insertNodes ( ) ; findInsert ( point , stack , new1 ) ; if ( point . isDuplicate ( ) ) stack . markDuplicate ( ) ; else { finishInsert ( point , stack , new1 ) ; _population ++ ; ... |
public class RmiMessageConverter { /** * Reads Citrus internal RMI message model object from message payload . Either payload is actually a service invocation object or
* XML payload String is unmarshalled to proper object representation .
* @ param message
* @ param endpointConfiguration
* @ return */
private ... | Object payload = message . getPayload ( ) ; RmiServiceInvocation serviceInvocation = null ; if ( payload != null ) { if ( payload instanceof RmiServiceInvocation ) { serviceInvocation = ( RmiServiceInvocation ) payload ; } else if ( payload != null && StringUtils . hasText ( message . getPayload ( String . class ) ) ) ... |
public class CreateLayerRequest { /** * A < code > VolumeConfigurations < / code > object that describes the layer ' s Amazon EBS volumes .
* @ return A < code > VolumeConfigurations < / code > object that describes the layer ' s Amazon EBS volumes . */
public java . util . List < VolumeConfiguration > getVolumeConfi... | if ( volumeConfigurations == null ) { volumeConfigurations = new com . amazonaws . internal . SdkInternalList < VolumeConfiguration > ( ) ; } return volumeConfigurations ; |
public class VelocityResponseTransformer { /** * Adds the request header information to the Velocity context .
* @ param headers the request headers */
private void addHeadersToContext ( final HttpHeaders headers ) { } } | for ( HttpHeader header : headers . all ( ) ) { final String rawKey = header . key ( ) ; final String transformedKey = rawKey . replaceAll ( "-" , "" ) ; context . put ( "requestHeader" . concat ( transformedKey ) , header . values ( ) . toString ( ) ) ; } |
public class FunctionTable { /** * Install a built - in function .
* @ param name The unqualified name of the function , must not be null
* @ param func A Implementation of an XPath Function object .
* @ return the position of the function in the internal index . */
public int installFunction ( String name , Clas... | int funcIndex ; Object funcIndexObj = getFunctionID ( name ) ; if ( null != funcIndexObj ) { funcIndex = ( ( Integer ) funcIndexObj ) . intValue ( ) ; if ( funcIndex < NUM_BUILT_IN_FUNCS ) { funcIndex = m_funcNextFreeIndex ++ ; m_functionID_customer . put ( name , new Integer ( funcIndex ) ) ; } m_functions_customer [ ... |
public class ValidateXMLInterceptor { /** * Paint the original XML wrapped in a CDATA Section .
* @ param originalXML the original XML
* @ param writer the output writer */
private void paintOriginalXML ( final String originalXML , final PrintWriter writer ) { } } | // Replace any CDATA Sections embedded in XML
String xml = originalXML . replaceAll ( "<!\\[CDATA\\[" , "CDATASTART" ) ; xml = xml . replaceAll ( "\\]\\]>" , "CDATAFINISH" ) ; // Paint Output
writer . println ( "<div>" ) ; writer . println ( "<!-- VALIDATE XML ERROR - START XML -->" ) ; writer . println ( "<![CDATA[" )... |
public class StringBindingListener { /** * Update the underlying model object .
* @ param event
* the event */
protected void update ( DocumentEvent event ) { } } | String text ; try { text = event . getDocument ( ) . getText ( event . getDocument ( ) . getStartPosition ( ) . getOffset ( ) , event . getDocument ( ) . getEndPosition ( ) . getOffset ( ) - 1 ) ; model . setObject ( text ) ; } catch ( BadLocationException e1 ) { log . log ( Level . SEVERE , "some portion of the given ... |
public class CallStackReader { /** * Get the call stack via the SecurityManager API .
* @ param log
* the log
* @ return the call stack . */
private static Class < ? > [ ] getCallStackViaSecurityManager ( final LogNode log ) { } } | try { return new CallerResolver ( ) . getClassContext ( ) ; } catch ( final SecurityException e ) { // Creating a SecurityManager can fail if the current SecurityManager does not allow
// RuntimePermission ( " createSecurityManager " )
if ( log != null ) { log . log ( "Exception while trying to obtain call stack via Se... |
public class MeasurementUnitsImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . MEASUREMENT_UNITS__XOA_BASE : setXoaBase ( XOA_BASE_EDEFAULT ) ; return ; case AfplibPackage . MEASUREMENT_UNITS__YOA_BASE : setYoaBase ( YOA_BASE_EDEFAULT ) ; return ; case AfplibPackage . MEASUREMENT_UNITS__XOA_UNITS : setXoaUnits ( XOA_UNITS_EDEFAULT ) ; return ; case Afpl... |
public class EnhancedDebuggerWindow { /** * Notification that the connection was closed due to an exception .
* @ param debugger the debugger whose connection was closed due to an exception .
* @ param e the exception . */
static synchronized void connectionClosedOnError ( EnhancedDebugger debugger , Exception e ) ... | int index = getInstance ( ) . tabbedPane . indexOfComponent ( debugger . tabbedPane ) ; getInstance ( ) . tabbedPane . setToolTipTextAt ( index , "XMPPConnection closed due to the exception: " + e . getMessage ( ) ) ; getInstance ( ) . tabbedPane . setIconAt ( index , connectionClosedOnErrorIcon ) ; |
public class ChannelFrameworkImpl { /** * @ seecom . ibm . wsspi . channelfw . ChannelFramework # addChainEventListener (
* ChainEventListener , String ) */
@ Override public synchronized void addChainEventListener ( ChainEventListener cel , String chainName ) throws InvalidChainNameException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "addChainEventListener: chain=" + chainName + " listener=" + cel ) ; } ChainDataImpl chainData = null ; if ( null == chainName ) { InvalidChainNameException e = new InvalidChainNameException ( "Unable to register a listener f... |
public class UserAttrs { /** * Set user - defined - attribute
* @ param path
* @ param attribute user : attribute name . user : can be omitted .
* @ param value
* @ param options
* @ throws IOException */
public static final void setStringAttribute ( Path path , String attribute , String value , LinkOption ..... | attribute = attribute . startsWith ( "user:" ) ? attribute : "user:" + attribute ; if ( value != null ) { Files . setAttribute ( path , attribute , value . getBytes ( UTF_8 ) , options ) ; } else { Files . setAttribute ( path , attribute , null , options ) ; } |
public class TransactionHandler { /** * Release this transaction and frees all allocated resources . */
protected void release ( ) { } } | stack . getLocalTransactions ( ) . remove ( Integer . valueOf ( localTID ) ) ; stack . getRemoteTxToLocalTxMap ( ) . remove ( Integer . valueOf ( remoteTID ) ) ; cancelTHISTTimerTask ( ) ; cancelLongtranTimer ( ) ; cancelReTransmissionTimer ( ) ; if ( originalPacket != null ) stack . releasePacket ( originalPacket ) ; ... |
public class SyncGroupsInner { /** * Gets a collection of sync database ids .
* ServiceResponse < PageImpl < SyncDatabaseIdPropertiesInner > > * @ param locationName The name of the region where the resource is located .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the P... | if ( locationName == null ) { throw new IllegalArgumentException ( "Parameter locationName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( this . client . a... |
public class N { /** * @ see Arrays # copyOf ( Object [ ] , int , Class )
* @ param original
* @ param newLength
* @ return */
public static < T , U > T [ ] copyOf ( final U [ ] original , final int newLength , final Class < ? extends T [ ] > newType ) { } } | final T [ ] copy = Object [ ] . class . equals ( newType ) ? ( T [ ] ) new Object [ newLength ] : ( T [ ] ) N . newArray ( newType . getComponentType ( ) , newLength ) ; if ( N . notNullOrEmpty ( original ) ) { copy ( original , 0 , copy , 0 , Math . min ( original . length , newLength ) ) ; } return copy ; |
public class PersistenceDelegate { /** * Determines whether one object mutates to the other object . One object is considered able to mutate to another object if they are indistinguishable in
* terms of behaviors of all public APIs . The default implementation here is to return true only if the two objects are instan... | return null != o1 && null != o2 && o1 . getClass ( ) == o2 . getClass ( ) ; |
public class UtilsUml { /** * Algorithm # 1:
* 1 . Find out set of 0 - level super - classes , i . e . they has no super - classes .
* All other classes level is settled to 999
* 2 . For each of 0 - level ( Y ) class go through its sub - classes to last - level sub - class and evaluate count of levels ( Y ) .
*... | // 1 . Find out set of 0 - level super - classes , i . e . they has no super - classes .
// All other classes level is settled to 999:
List < ClassFull < CL > > topLevelSuperClasses = new ArrayList < ClassFull < CL > > ( ) ; double levelX = 0 ; double fakeLevel = - 999d ; for ( ClassFull < CL > clsRel : classList ) { c... |
public class Cache { /** * 判断 member 元素是否集合 key 的成员 。 */
public boolean sismember ( Object key , Object member ) { } } | Jedis jedis = getJedis ( ) ; try { return jedis . sismember ( keyToBytes ( key ) , valueToBytes ( member ) ) ; } finally { close ( jedis ) ; } |
public class CouchDBObjectMapper { /** * Gets the json object .
* @ param declaredFields
* the declared fields
* @ param embeddableType
* the embeddable type
* @ param embeddedObject
* the embedded object
* @ return the json object */
private static JsonElement getJsonObject ( Field [ ] declaredFields , E... | JsonObject jsonObject = new JsonObject ( ) ; for ( Field field : declaredFields ) { if ( ! ReflectUtils . isTransientOrStatic ( field ) && ! embeddableType . getAttribute ( field . getName ( ) ) . isAssociation ( ) ) { Object valueObject = PropertyAccessorHelper . getObject ( embeddedObject , field ) ; jsonObject . add... |
public class Layout { /** * Get the table name . */
public String getTableNames ( boolean bAddQuotes ) { } } | return ( m_tableName == null ) ? Record . formatTableNames ( LAYOUT_FILE , bAddQuotes ) : super . getTableNames ( bAddQuotes ) ; |
public class FJIterate { /** * Same effect as { @ link Iterate # collect ( Iterable , Function ) } , but executed in parallel batches ,
* and writing output into the specified collection .
* @ param target Where to write the output .
* @ param allowReorderedResult If the result can be in a different order .
* A... | return FJIterate . collect ( iterable , function , target , FJIterate . DEFAULT_MIN_FORK_SIZE , FJIterate . FORK_JOIN_POOL , allowReorderedResult ) ; |
public class CmsLinkRewriter { /** * Reads the resources in a subtree . < p >
* @ param rootPath the root of the subtree
* @ return the list of resources from the subtree
* @ throws CmsException if something goes wrong */
protected List < CmsResource > readTree ( String rootPath ) throws CmsException { } } | rootPath = CmsFileUtil . removeTrailingSeparator ( rootPath ) ; CmsResource base = m_cms . readResource ( rootPath ) ; I_CmsResourceType resType = OpenCms . getResourceManager ( ) . getResourceType ( base ) ; List < CmsResource > result = new ArrayList < CmsResource > ( ) ; if ( resType . isFolder ( ) ) { rootPath = Cm... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcSolarDeviceType ( ) { } } | if ( ifcSolarDeviceTypeEClass == null ) { ifcSolarDeviceTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 608 ) ; } return ifcSolarDeviceTypeEClass ; |
public class XmJvmSecurityUtils { /** * If JVM security manager exists then checks JVM security ' control ' permission . */
public static void checkSecurity ( ) { } } | SecurityManager securityManager = System . getSecurityManager ( ) ; if ( securityManager != null ) { securityManager . checkPermission ( new ManagementPermission ( PERMISSION_NAME_CONTROL ) ) ; } |
public class AbstractCanalAdapterWorker { /** * 分批同步
* @ param dmls
* @ param adapter */
private void batchSync ( List < Dml > dmls , OuterAdapter adapter ) { } } | // 分批同步
if ( dmls . size ( ) <= canalClientConfig . getSyncBatchSize ( ) ) { adapter . sync ( dmls ) ; } else { int len = 0 ; List < Dml > dmlsBatch = new ArrayList < > ( ) ; for ( Dml dml : dmls ) { dmlsBatch . add ( dml ) ; if ( dml . getData ( ) == null || dml . getData ( ) . isEmpty ( ) ) { len += 1 ; } else { len ... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link TimePositionType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link TimePositionType } { @ code > }... | return new JAXBElement < TimePositionType > ( _TimePosition_QNAME , TimePositionType . class , null , value ) ; |
public class CPDefinitionOptionRelPersistenceImpl { /** * Returns the last cp definition option rel in the ordered set where CPDefinitionId = & # 63 ; and skuContributor = & # 63 ; .
* @ param CPDefinitionId the cp definition ID
* @ param skuContributor the sku contributor
* @ param orderByComparator the comparat... | int count = countByC_SC ( CPDefinitionId , skuContributor ) ; if ( count == 0 ) { return null ; } List < CPDefinitionOptionRel > list = findByC_SC ( CPDefinitionId , skuContributor , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class SampleReader { /** * Make the request to the Twilio API to perform the read .
* @ param client TwilioRestClient with which to make the request
* @ return Sample ResourceSet */
@ Override public ResourceSet < Sample > read ( final TwilioRestClient client ) { } } | return new ResourceSet < > ( this , client , firstPage ( client ) ) ; |
public class SimpleTaskMapper { /** * This method maps a { @ link WorkflowTask } of type { @ link TaskType # SIMPLE }
* to a { @ link Task }
* @ param taskMapperContext : A wrapper class containing the { @ link WorkflowTask } , { @ link WorkflowDef } , { @ link Workflow } and a string representation of the TaskId
... | logger . debug ( "TaskMapperContext {} in SimpleTaskMapper" , taskMapperContext ) ; WorkflowTask taskToSchedule = taskMapperContext . getTaskToSchedule ( ) ; Workflow workflowInstance = taskMapperContext . getWorkflowInstance ( ) ; int retryCount = taskMapperContext . getRetryCount ( ) ; String retriedTaskId = taskMapp... |
public class Alarm { /** * Queue the alarm for wakeup .
* @ param delta time in milliseconds to wake */
public void runAfter ( long delta ) { } } | long now = CurrentTime . getExactTime ( ) ; // boolean isNotify = _ heap . queueAt ( this , now + delta ) ;
boolean isNotify = _clock . queueAt ( this , now + delta ) ; if ( isNotify ) { _coordinatorThread . wake ( ) ; } |
public class ClimberResetCountMin4 { /** * Reduces every counter by half of its original value . To reduce the truncation
* error , the sample is reduced by the number of counters with an odd value . */
@ Override protected void tryReset ( boolean added ) { } } | additions += step ; if ( ! added ) { return ; } if ( additions < period ) { return ; } int count = 0 ; for ( int i = 0 ; i < table . length ; i ++ ) { count += Long . bitCount ( table [ i ] & ONE_MASK ) ; table [ i ] = ( table [ i ] >>> 1 ) & RESET_MASK ; } additions = ( additions >>> 1 ) - ( count >>> 2 ) ; doorkeeper... |
public class JavacHandlerUtil { /** * Turns an { @ code AccessLevel } instance into the flag bit used by javac . */
public static int toJavacModifier ( AccessLevel accessLevel ) { } } | switch ( accessLevel ) { case MODULE : case PACKAGE : return 0 ; default : case PUBLIC : return Flags . PUBLIC ; case NONE : case PRIVATE : return Flags . PRIVATE ; case PROTECTED : return Flags . PROTECTED ; } |
public class Padding { /** * Allows to set Table ' s padding with the Padding object , which has be done externally , as it ' s not part
* of the standard libGDX API .
* @ param padding contains data of padding sizes .
* @ param table will have the padding set according to the given data .
* @ return the given ... | table . pad ( padding . getTop ( ) , padding . getLeft ( ) , padding . getBottom ( ) , padding . getRight ( ) ) ; return table ; |
public class SSHLauncher { /** * { @ inheritDoc } */
@ Override public void launch ( final SlaveComputer computer , final TaskListener listener ) throws InterruptedException { } } | final Node node = computer . getNode ( ) ; final String host = this . host ; final int port = this . port ; checkConfig ( ) ; synchronized ( this ) { connection = new Connection ( host , port ) ; launcherExecutorService = Executors . newSingleThreadExecutor ( new NamingThreadFactory ( Executors . defaultThreadFactory (... |
public class XMLProperties { /** * Initializes the value of a property .
* @ todo move init code to the parser ?
* @ throws ClassNotFoundException if there is no class found for the given
* type
* @ throws IllegalArgumentException if the value given , is not parseable
* as the given type */
protected Object i... | // System . out . println ( " pValue = " + pValue + " pType = " + pType
// + " pFormat = " + pFormat ) ;
// No value to convert
if ( pValue == null ) { return null ; } // No conversion needed for Strings
if ( ( pType == null ) || pType . equals ( "String" ) || pType . equals ( "java.lang.String" ) ) { return pValue ; }... |
public class CPDefinitionSpecificationOptionValueUtil { /** * Returns the last cp definition specification option value in the ordered set where CPSpecificationOptionId = & # 63 ; .
* @ param CPSpecificationOptionId the cp specification option ID
* @ param orderByComparator the comparator to order the set by ( opti... | return getPersistence ( ) . fetchByCPSpecificationOptionId_Last ( CPSpecificationOptionId , orderByComparator ) ; |
public class EntryListenerAdaptors { /** * Creates a { @ link com . hazelcast . map . impl . ListenerAdapter } array
* for all event types of { @ link com . hazelcast . core . EntryEventType } .
* @ param listener a { @ link EntryListener } instance .
* @ return an array of { @ link com . hazelcast . map . impl .... | // We only care about these reference event types for backward compatibility .
EntryEventType [ ] values = new EntryEventType [ ] { ADDED , REMOVED , EVICTED , UPDATED , EVICT_ALL , CLEAR_ALL } ; ListenerAdapter [ ] listenerAdapters = new ListenerAdapter [ values . length ] ; for ( EntryEventType eventType : values ) {... |
public class StringMapperBuilder { /** * Returns the { @ link StringMapper } represented by this { @ link MapperBuilder } .
* @ param field the name of the field to be built
* @ return the { @ link StringMapper } represented by this */
@ Override public StringMapper build ( String field ) { } } | return new StringMapper ( field , column , validated , caseSensitive ) ; |
public class GossipMonger { /** * Send message and optionally wait response
* @ param whisper
* @ return true if message is sended */
public boolean send ( Whisper < ? > whisper ) { } } | if ( isShutdown . get ( ) ) return false ; // Internal Queue ( Local Thread ) for INPLACE multiple recursive calls
final ArrayDeque < Whisper < ? > > localQueue = ref . get ( ) ; if ( ! localQueue . isEmpty ( ) ) { localQueue . addLast ( whisper ) ; return true ; } localQueue . addLast ( whisper ) ; while ( ( whisper =... |
public class SearchCriteria { /** * Sets the specified projection to restrict the result values .
* < p > If the specified list is null or empty ,
* it clears the previous list .
* If one of the element in the list is null ,
* the previous list is not modified and an exception is thrown .
* @ param projection... | if ( projections == null || projections . size ( ) == 0 ) { clearProjections ( ) ; return this ; } synchronized ( projections ) { for ( Projection proj : projections ) { if ( proj == null ) { throw new IllegalArgumentException ( "null element" ) ; } } clearProjections ( ) ; for ( Projection proj : projections ) { addPr... |
public class AlpineQueryManager { /** * Creates a new Team with the specified name . If createApiKey is true ,
* then { @ link # createApiKey } is invoked and a cryptographically secure
* API key is generated .
* @ param name The name of th team
* @ param createApiKey whether or not to create an API key for the... | pm . currentTransaction ( ) . begin ( ) ; final Team team = new Team ( ) ; team . setName ( name ) ; // todo assign permissions
pm . makePersistent ( team ) ; pm . currentTransaction ( ) . commit ( ) ; if ( createApiKey ) { createApiKey ( team ) ; } return getObjectByUuid ( Team . class , team . getUuid ( ) , Team . Fe... |
public class FilePersistedValueData { /** * { @ inheritDoc } */
public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } } | orderNumber = in . readInt ( ) ; // read canonical file path
int size = in . readInt ( ) ; if ( size > 0 ) { byte [ ] buf = new byte [ size ] ; in . readFully ( buf ) ; File f = new File ( new String ( buf , "UTF-8" ) ) ; // validate if exists
if ( PrivilegedFileHelper . exists ( f ) ) { file = f ; } else { file = null... |
public class AnnotationTypeDocImpl { /** * Returns the elements of this annotation type .
* Returns an empty array if there are none .
* Elements are always public , so no need to filter them . */
public AnnotationTypeElementDoc [ ] elements ( ) { } } | List < AnnotationTypeElementDoc > elements = List . nil ( ) ; for ( Symbol sym : tsym . members ( ) . getSymbols ( NON_RECURSIVE ) ) { if ( sym != null && sym . kind == MTH ) { MethodSymbol s = ( MethodSymbol ) sym ; elements = elements . prepend ( env . getAnnotationTypeElementDoc ( s ) ) ; } } return elements . toArr... |
public class ConsumerMonitorRegistrar { /** * Method registerCallbackOnExistingExpression
* Adds a new callback to an existing entry to the appropriate wildcard
* or exact expression table .
* @ param topicExpression
* @ param isWildcarded
* @ param callback
* @ return */
public boolean registerCallbackOnEx... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerCallbackOnExistingExpression" , new Object [ ] { connection , topicExpression , new Boolean ( isWildcarded ) , callback } ) ; boolean areConsumers = false ; RegisteredCallbacks rMonitor = null ; // Add the callback ... |
public class FileAuthenticationHandler { /** * Gets the password on record .
* @ param username the username
* @ return the password on record
* @ throws IOException Signals that an I / O exception has occurred . */
private String getPasswordOnRecord ( final String username ) throws IOException { } } | try ( val stream = Files . lines ( fileName . getFile ( ) . toPath ( ) ) ) { return stream . map ( line -> line . split ( this . separator ) ) . filter ( lineFields -> { val userOnRecord = lineFields [ 0 ] ; return username . equals ( userOnRecord ) ; } ) . map ( lineFields -> lineFields [ 1 ] ) . findFirst ( ) . orEls... |
public class ReflectionUtil { /** * TODO : Add unit test */
public static Class < ? > getGenericTypeOfCollectionField ( Field field ) { } } | Type genericType = field . getGenericType ( ) ; if ( ! ( genericType instanceof ParameterizedType ) ) { throw new IllegalArgumentException ( "Field is not a ParameterizedType." ) ; } Type [ ] genericTypes = ( ( ParameterizedType ) genericType ) . getActualTypeArguments ( ) ; if ( genericTypes . length != 1 ) { throw ne... |
public class BeanDefinitionParser { /** * Parse a property element .
* @ param ele a { @ link org . w3c . dom . Element } object .
* @ param bd a { @ link org . springframework . beans . factory . config . BeanDefinition } object . */
public void parsePropertyElement ( Element ele , BeanDefinition bd ) { } } | String propertyName = ele . getAttribute ( NAME_ATTRIBUTE ) ; if ( ! StringUtils . hasLength ( propertyName ) ) { error ( "Tag 'property' must have a 'name' attribute" , ele ) ; return ; } this . parseState . push ( new PropertyEntry ( propertyName ) ) ; try { if ( bd . getPropertyValues ( ) . contains ( propertyName )... |
public class ApiOvhOrder { /** * Create order
* REST : POST / order / hosting / web / { serviceName } / cdn / { duration }
* @ param offer [ required ] Cdn offers you can add to your hosting
* @ param serviceName [ required ] The internal name of your hosting
* @ param duration [ required ] Duration */
public O... | String qPath = "/order/hosting/web/{serviceName}/cdn/{duration}" ; StringBuilder sb = path ( qPath , serviceName , duration ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "offer" , offer ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp ... |
public class Main { /** * This function substitutes blank spaces in a provided string with a specified character .
* @ param originalString The original string that may contain blank spaces .
* @ param substitutionChar The character to replace blank spaces with .
* @ return The amended string with all blank space... | String substitutedString = originalString . replace ( ' ' , substitutionChar ) ; return substitutedString ; |
public class ApplicationPermissionRepository { /** * region > findByRole ( programmatic ) */
@ Programmatic public List < ApplicationPermission > findByRoleCached ( final ApplicationRole role ) { } } | return queryResultsCache . execute ( new Callable < List < ApplicationPermission > > ( ) { @ Override public List < ApplicationPermission > call ( ) throws Exception { return findByRole ( role ) ; } } , ApplicationPermissionRepository . class , "findByRoleCached" , role ) ; |
public class Verifies { /** * RSA验证通知参数是否合法 ( 如APP服务器通知 )
* @ param notifyParams 通知参数
* @ return 合法返回true , 反之false */
public Boolean rsa ( Map < String , String > notifyParams ) { } } | String expectSign = notifyParams . get ( AlipayField . SIGN . field ( ) ) ; Map < String , String > validParams = filterSigningParams ( notifyParams ) ; String signing = buildSignString ( validParams ) ; checkNotNullAndEmpty ( alipay . appPubKey , "app public key can't be empty before rsa verify." ) ; return RSA . veri... |
public class Transfer { /** * Method declaration
* @ param ev */
public void actionPerformed ( ActionEvent ev ) { } } | if ( ev . getSource ( ) instanceof TextField ) { saveTable ( ) ; return ; } String s = ev . getActionCommand ( ) ; MenuItem i = new MenuItem ( ) ; if ( s == null ) { if ( ev . getSource ( ) instanceof MenuItem ) { i = ( MenuItem ) ev . getSource ( ) ; s = i . getLabel ( ) ; } } if ( s == null ) { } if ( s . equals ( "S... |
public class ScanResult { /** * Get classes that have a method with an annotation of the named type .
* @ param methodAnnotationName
* the name of the method annotation .
* @ return A list of classes with a method that has an annotation of the named type , or the empty list if none . */
public ClassInfoList getCl... | if ( closed . get ( ) ) { throw new IllegalArgumentException ( "Cannot use a ScanResult after it has been closed" ) ; } if ( ! scanSpec . enableClassInfo || ! scanSpec . enableMethodInfo || ! scanSpec . enableAnnotationInfo ) { throw new IllegalArgumentException ( "Please call ClassGraph#enableClassInfo(), #enableMetho... |
public class FessMailDeliveryDepartmentCreator { protected SMailPostalPersonnel createPostalPersonnel ( ) { } } | final SMailDogmaticPostalPersonnel personnel = createDogmaticPostalPersonnel ( ) ; return fessConfig . isMailSendMock ( ) ? personnel . asTraining ( ) : personnel ; |
public class LogUtils { /** * Checks log level and logs
* @ param logger the Logger the log to
* @ param level the severity level
* @ param message the log message
* @ param parameters the parameters to substitute into message */
public static void log ( Logger logger , Level level , String message , Object [ ]... | if ( logger . isLoggable ( level ) ) { String msg = localize ( logger , message ) ; try { msg = MessageFormat . format ( msg , parameters ) ; } catch ( IllegalArgumentException ex ) { // ignore , log as is
} doLog ( logger , level , msg , null ) ; } |
public class Quaternionf { /** * / * ( non - Javadoc )
* @ see org . joml . Quaternionfc # rotateAxis ( float , org . joml . Vector3fc , org . joml . Quaternionf ) */
public Quaternionf rotateAxis ( float angle , Vector3fc axis , Quaternionf dest ) { } } | return rotateAxis ( angle , axis . x ( ) , axis . y ( ) , axis . z ( ) , dest ) ; |
public class ALU { public static Object mult ( final Object o1 , final Object o2 ) { } } | switch ( getTypeMark ( o1 , o2 ) ) { case INTEGER : case SHORT : case BYTE : return ( ( Number ) o1 ) . intValue ( ) * ( ( Number ) o2 ) . intValue ( ) ; case LONG : return ( ( Number ) o1 ) . longValue ( ) * ( ( Number ) o2 ) . longValue ( ) ; case DOUBLE : return ( ( Number ) o1 ) . doubleValue ( ) * ( ( Number ) o2 ... |
public class SerializationFormatFactory { /** * Returns a list with all the defined serialization formats
* @ return a { @ link java . util . Collection } object . */
public static Collection < SerializationFormat > getAllFormats ( ) { } } | ArrayList < SerializationFormat > serializationFormats = new ArrayList < > ( ) ; // single graph formats
serializationFormats . add ( createTurtle ( ) ) ; serializationFormats . add ( createN3 ( ) ) ; serializationFormats . add ( createNTriples ( ) ) ; serializationFormats . add ( createJsonLD ( ) ) ; serializationForm... |
public class BeanValidator { /** * { @ inheritDoc } */
@ Override public void restoreState ( final FacesContext context , final Object state ) { } } | if ( context == null ) { throw new NullPointerException ( "context" ) ; } if ( state != null ) { this . validationGroups = ( String ) state ; } else { // When the value is being validated , postSetValidationGroups ( ) sets
// validationGroups to javax . validation . groups . Default .
this . validationGroups = null ; }... |
public class BaseThrottle { /** * This method can only be called at the rate set by the { @ link # setRate } method , if it is called faster than this
* it will inject short pauses to restrict the call rate to that rate .
* @ throws InterruptedException If interrupted whilst performing a blocking wait on the thrott... | // Don ' t introduce any pause on the first call .
if ( ! firstCall ) { // Check if there is any time left in the cycle since the last throttle call to this method and introduce a
// short pause to fill that time if there is .
long remainingTimeNanos = timeToThrottleNanos ( ) ; while ( remainingTimeNanos > 0 ) { long m... |
public class CertificatesImpl { /** * Lists all of the certificates that have been added to the specified account .
* @ param certificateListOptions Additional parameters for the operation
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws IllegalArgumentExc... | return AzureServiceFuture . fromHeaderPageResponse ( listSinglePageAsync ( certificateListOptions ) , new Func1 < String , Observable < ServiceResponseWithHeaders < Page < Certificate > , CertificateListHeaders > > > ( ) { @ Override public Observable < ServiceResponseWithHeaders < Page < Certificate > , CertificateLis... |
public class BufferedCollectionValueModel { public static Class getConcreteCollectionType ( Class wrappedType ) { } } | Class class2Create ; if ( wrappedType . isArray ( ) ) { if ( ClassUtils . isPrimitiveArray ( wrappedType ) ) { throw new IllegalArgumentException ( "wrappedType can not be an array of primitive types" ) ; } class2Create = wrappedType ; } else if ( wrappedType == Collection . class ) { class2Create = ArrayList . class ;... |
public class EnableAWSServiceAccessRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EnableAWSServiceAccessRequest enableAWSServiceAccessRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( enableAWSServiceAccessRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( enableAWSServiceAccessRequest . getServicePrincipal ( ) , SERVICEPRINCIPAL_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ... |
public class MirrorTable { /** * Add this record ( Always called from the record class ) .
* @ exception DBException File exception . */
public void add ( Rec fieldList ) throws DBException { } } | Record record = ( Record ) fieldList ; boolean bRefreshed = true ; if ( ( this . getRecord ( ) . getOpenMode ( ) & DBConstants . OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY ) == DBConstants . OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY ) bRefreshed = record . isRefreshedRecord ( ) ; // Only do this on the second write
super ... |
public class Classification { /** * Check if the root classification of this classification is assigned to
* the given company .
* @ see # companies
* @ param _ company copmany that will be checked for assignment
* @ return true it the root classification of this classification is
* assigned to the given comp... | final boolean ret ; if ( isRoot ( ) ) { ret = this . companies . isEmpty ( ) ? true : this . companies . contains ( _company ) ; } else { ret = getParentClassification ( ) . isAssigendTo ( _company ) ; } return ret ; |
public class PageOnePromotedBiddingScheme { /** * Sets the bidCeiling value for this PageOnePromotedBiddingScheme .
* @ param bidCeiling * Strategy maximum bid limit in advertiser local currency micro
* units .
* This upper limit applies to all keywords managed
* by the strategy .
* < span class = " constrain... | this . bidCeiling = bidCeiling ; |
public class CpoException { /** * Prints the composite message and the embedded stack trace to the specified print writer
* < code > pw < / code > .
* @ param pw the print writer */
@ Override public void printStackTrace ( java . io . PrintWriter pw ) { } } | synchronized ( pw ) { if ( detail != null ) { detail . printStackTrace ( pw ) ; } super . printStackTrace ( pw ) ; } |
public class SerializerIntrinsics { /** * ! preserved . */
public final void fild ( Mem src ) { } } | assert ( src . size ( ) == 2 || src . size ( ) == 4 || src . size ( ) == 8 ) ; emitX86 ( INST_FILD , src ) ; |
public class GroovyMain { /** * TODO : should we have an ' err ' printstream too for ParseException ? */
static void processArgs ( String [ ] args , final PrintStream out ) { } } | Options options = buildOptions ( ) ; try { CommandLine cmd = parseCommandLine ( options , args ) ; if ( cmd . hasOption ( 'h' ) ) { printHelp ( out , options ) ; } else if ( cmd . hasOption ( 'v' ) ) { String version = GroovySystem . getVersion ( ) ; out . println ( "Groovy Version: " + version + " JVM: " + System . ge... |
public class AppEngineDatastoreSession { /** * Closes this session . */
@ Override public void close ( ) { } } | AppEngineTransaction tx = transaction . get ( ) ; if ( tx != null ) { tx . rollback ( ) ; } |
public class ModularParser { /** * Deleting all comments out of the SpanManager . . . < br >
* & lt ! - - COMMENT - - > */
private void deleteComments ( SpanManager sm ) { } } | int start = 0 ; while ( ( start = sm . indexOf ( "<!--" , start ) ) != - 1 ) { int end = sm . indexOf ( "-->" , start + 4 ) + 3 ; if ( end == - 1 + 3 ) { end = sm . length ( ) ; } // Remove the one lineSeparator too , if the whole line is a comment !
try { if ( lineSeparator . equals ( sm . substring ( start - lineSepa... |
public class StreamMonitorRouter { /** * Notify the monitor of the an error during the download
* process .
* @ param resource the name of the remote resource .
* @ param message a non - localized message describing the problem in english . */
public void notifyError ( URL resource , String message ) { } } | synchronized ( m_Monitors ) { for ( StreamMonitor monitor : m_Monitors ) { monitor . notifyError ( resource , message ) ; } } |
public class TvShowsActivity { /** * Hook DraggableListener to draggableView to modify action bar title with the tv show
* information . */
private void hookListeners ( ) { } } | draggableView . setDraggableListener ( new DraggableListener ( ) { @ Override public void onMaximized ( ) { updateActionBarTitle ( ) ; } @ Override public void onMinimized ( ) { updateActionBarTitle ( ) ; } @ Override public void onClosedToLeft ( ) { resetActionBarTitle ( ) ; } @ Override public void onClosedToRight ( ... |
public class RaftSessionManager { /** * Resets the session manager ' s cluster information .
* @ param leader The leader address .
* @ param servers The collection of servers . */
public void resetConnections ( MemberId leader , Collection < MemberId > servers ) { } } | selectorManager . resetAll ( leader , servers ) ; |
public class InstanceSnapshotInfo { /** * A list of objects describing the disks that were attached to the source instance .
* @ param fromDiskInfo
* A list of objects describing the disks that were attached to the source instance . */
public void setFromDiskInfo ( java . util . Collection < DiskInfo > fromDiskInfo... | if ( fromDiskInfo == null ) { this . fromDiskInfo = null ; return ; } this . fromDiskInfo = new java . util . ArrayList < DiskInfo > ( fromDiskInfo ) ; |
public class Coercions { /** * Coerces a value to an Integer , returning null if the coercion
* isn ' t possible . */
public static Integer coerceToInteger ( Object pValue , Logger pLogger ) throws ELException { } } | if ( pValue == null ) { return null ; } else if ( pValue instanceof Character ) { return PrimitiveObjects . getInteger ( ( int ) ( ( ( Character ) pValue ) . charValue ( ) ) ) ; } else if ( pValue instanceof Boolean ) { if ( pLogger . isLoggingWarning ( ) ) { pLogger . logWarning ( Constants . BOOLEAN_TO_NUMBER , pValu... |
public class Taint { /** * Adds location for a taint source or path to remember for reporting
* @ param location location to remember
* @ param isKnownTaintSource true for tainted value , false if just not safe
* @ throws NullPointerException if location is null */
public void addLocation ( TaintLocation location... | Objects . requireNonNull ( location , "location is null" ) ; if ( isKnownTaintSource ) { taintLocations . add ( location ) ; } else { unknownLocations . add ( location ) ; } |
public class StructureIO { /** * Loads a structure based on a name . Supported naming conventions are :
* < pre >
* Formal specification for how to specify the < i > name < / i > :
* name : = pdbID
* | pdbID ' . ' chainID
* | pdbID ' . ' range
* | scopID
* | biol
* | pdp
* range : = ' ( ' ? range ( ' ... | checkInitAtomCache ( ) ; // delegate this functionality to AtomCache . . .
return cache . getStructure ( name ) ; |
public class TrieNodeFactoryForBooleanKey { /** * specialized in speed for boolean keyed nodes . */
public static TrieNodeFactory < Boolean > getInstance ( ) { } } | return new TrieNodeFactory < Boolean > ( ) { @ Override public TrieNode < Boolean > create ( ) { return new BooleanTrieNode ( ) ; } } ; |
public class ResettableOAuth2AuthorizedClientService { /** * Copy of { @ link InMemoryOAuth2AuthorizedClientService # loadAuthorizedClient ( String , String ) } */
@ SuppressWarnings ( "unchecked" ) @ Override public < T extends OAuth2AuthorizedClient > T loadAuthorizedClient ( String clientRegistrationId , String prin... | Assert . hasText ( clientRegistrationId , "clientRegistrationId cannot be empty" ) ; Assert . hasText ( principalName , "principalName cannot be empty" ) ; ClientRegistration registration = this . clientRegistrationRepository . findByRegistrationId ( clientRegistrationId ) ; if ( registration == null ) { return null ; ... |
public class AopAllianceSimulatorImpl { /** * { @ inheritDoc } */
public void setRootPath ( Class < ? extends Object > testClass ) { } } | String resource = new StringBuilder ( ) . append ( testClass . getSimpleName ( ) ) . append ( ".class" ) . toString ( ) ; try { setRootPath ( new File ( testClass . getResource ( resource ) . toURI ( ) ) . getParentFile ( ) . toPath ( ) . toString ( ) ) ; } catch ( URISyntaxException e ) { throw new RuntimeException ( ... |
public class ClassBuilderSimple { public static byte [ ] build ( String className , String superName ) { } } | ByteBuffer bb = ByteBuffer . allocate ( 1000 ) ; bb . put ( BA0_1 ) ; // bb . put ( BA2 ) ;
writeUtf8 ( bb , convertDots ( className ) ) ; bb . put ( BA3 ) ; // bb . put ( BA4 ) ;
writeUtf8 ( bb , convertDots ( superName ) ) ; bb . put ( BA5_12 ) ; // bb . put ( BA13 ) ;
writeUtf8 ( bb , "L" + convertDots ( className )... |
public class DefaultHistoryManager { /** * ( non - Javadoc )
* @ see org . activiti . engine . impl . history . HistoryManagerInterface # recordTaskDescriptionChange ( java . lang . String , java . lang . String ) */
@ Override public void recordTaskDescriptionChange ( String taskId , String description ) { } } | if ( isHistoryLevelAtLeast ( HistoryLevel . AUDIT ) ) { HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager ( ) . findById ( taskId ) ; if ( historicTaskInstance != null ) { historicTaskInstance . setDescription ( description ) ; } } |
public class DestinationManager { /** * Before reconciliation , we need to move any inDoubt handlers
* to the Unreconciled state .
* If the destination gets reconciled then we have recovered .
* If not , we might get moved back to the inDoubt state , arguing
* that the corrupt WCCM file is stil causing problems... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "moveAllInDoubtToUnreconciled" ) ; DestinationTypeFilter filter = new DestinationTypeFilter ( ) ; filter . LOCAL = Boolean . TRUE ; filter . INDOUBT = Boolean . TRUE ; SIMPIterator itr = destinationIndex . iterator ( filter ... |
public class BatchedTimeoutManager { /** * Restart alarms for a a list of BTEs
* @ param timedout the list of BTEs to be restarted */
private void restartEntries ( List timedout ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "restartEntries" , new Object [ ] { timedout } ) ; // iterate over the list of entries
Iterator itr = timedout . iterator ( ) ; while ( itr . hasNext ( ) ) { BatchedTimeoutEntry bte = ( BatchedTimeoutEntry ) itr . next ( ) ;... |
public class DistributedExceptionInfo { /** * Get the original exception in a possible chain of exceptions .
* If no previous exceptions have been chained , null will be returned .
* @ exception com . ibm . websphere . exception . ExceptionInstantiationException
* An exception occurred while trying to instantiate... | Throwable prevEx = null ; if ( previousExceptionInfo != null ) { prevEx = previousExceptionInfo . getOriginalException ( ) ; if ( prevEx == null ) { prevEx = getPreviousException ( ) ; } } return prevEx ; |
public class IndexBuilder { /** * because its only reference is in native code , then we will get a crash . */
private static IndexEnvironment setupIndexer ( File outputDirectory , int memory , boolean storeDocs ) throws Exception { } } | final IndexEnvironment env = new IndexEnvironment ( ) ; env . setMemory ( memory * ONE_MEGABYTE ) ; final Specification spec = env . getFileClassSpec ( "trectext" ) ; env . addFileClass ( spec ) ; env . setStoreDocs ( storeDocs ) ; // if we don ' t build indices on DOCNO then getting the docIds at query time is
// extr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.