signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class UtilDateTime { /** * datetime is the String of System . currentTimeMillis ( ) 返回标准中国 ( 缺省 ) 的时间显示格式 */ public static String getDateTimeDisp ( String datetime ) { } }
if ( ( datetime == null ) || ( datetime . equals ( "" ) ) ) return "" ; DateFormat formatter = DateFormat . getDateTimeInstance ( DateFormat . MEDIUM , DateFormat . MEDIUM ) ; long datel = Long . parseLong ( datetime ) ; return formatter . format ( new Date ( datel ) ) ;
public class PredictionsImpl { /** * Gets predictions for a given utterance , in the form of intents and entities . The current maximum query size is 500 characters . * @ param appId The LUIS application ID ( Guid ) . * @ param query The utterance to predict . * @ param resolveOptionalParameter the object represe...
return resolveWithServiceResponseAsync ( appId , query , resolveOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ;
public class AssignmentImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case XtextPackage . ASSIGNMENT__FEATURE : return getFeature ( ) ; case XtextPackage . ASSIGNMENT__OPERATOR : return getOperator ( ) ; case XtextPackage . ASSIGNMENT__TERMINAL : return getTerminal ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class Identity { /** * { @ inheritDoc } */ @ Override @ SuppressWarnings ( "unchecked" ) public < B , App extends Applicative < ? , App > , TravB extends Traversable < B , Identity < ? > > , AppB extends Applicative < B , App > , AppTrav extends Applicative < TravB , App > > AppTrav traverse ( Function < ? super...
return ( AppTrav ) fn . apply ( runIdentity ( ) ) . fmap ( Identity :: new ) ;
public class BaseFileCopier { /** * Return a temporary filepath for a file to be copied to the node , given the input filename ( without directory * path ) * @ param node the destination node * @ param project project * @ param framework framework * @ param scriptfileName the name of the file to copy * @ pa...
return util . generateRemoteFilepathForNode ( node , project , framework , scriptfileName , fileExtension , identity ) ;
public class AppServicePlansInner { /** * Get all apps associated with an App Service plan . * Get all apps associated with an App Service plan . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param name Name of the App Service plan . * @ param skipToken Skip to a web...
return AzureServiceFuture . fromPageResponse ( listWebAppsSinglePageAsync ( resourceGroupName , name , skipToken , filter , top ) , new Func1 < String , Observable < ServiceResponse < Page < SiteInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < SiteInner > > > call ( String nextPageLink ) { re...
public class XMLSerializer { /** * Close start tag . * @ throws IOException Signals that an I / O exception has occurred . */ protected void closeStartTag ( ) throws IOException { } }
if ( finished ) { throw new IllegalArgumentException ( "trying to write past already finished output" + getLocation ( ) ) ; } if ( seenBracket ) { seenBracket = seenBracketBracket = false ; } if ( startTagIncomplete || setPrefixCalled ) { if ( setPrefixCalled ) { throw new IllegalArgumentException ( "startTag() must be...
public class DdlUtilsDataHandling { /** * Writes a DTD that can be used for data XML files matching the current model to the given writer . * @ param output The writer to write the DTD to */ public void getDataDTD ( Writer output ) throws DataTaskException { } }
try { output . write ( "<!ELEMENT dataset (\n" ) ; for ( Iterator it = _preparedModel . getElementNames ( ) ; it . hasNext ( ) ; ) { String elementName = ( String ) it . next ( ) ; output . write ( " " ) ; output . write ( elementName ) ; output . write ( "*" ) ; output . write ( it . hasNext ( ) ? " |\n" : "\n" ) ;...
public class IntegerDecodingState { /** * { @ inheritDoc } */ public DecodingState decode ( IoBuffer in , ProtocolDecoderOutput out ) throws Exception { } }
while ( in . hasRemaining ( ) ) { switch ( counter ) { case 0 : firstByte = in . getUnsigned ( ) ; break ; case 1 : secondByte = in . getUnsigned ( ) ; break ; case 2 : thirdByte = in . getUnsigned ( ) ; break ; case 3 : counter = 0 ; return finishDecode ( ( firstByte << 24 ) | ( secondByte << 16 ) | ( thirdByte << 8 )...
public class ConcurrentLinkedHashMap { /** * Returns the segment that should be used for key with given hash * @ param hash the hash code for the key * @ return the segment */ private LinkedHashMapSegment < K , V > segmentFor ( int hash ) { } }
int h = hash ( hash ) ; return segments [ ( h >>> segmentShift ) & segmentMask ] ;
public class SupportedProductConfig { /** * The list of user - supplied arguments . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setArgs ( java . util . Collection ) } or { @ link # withArgs ( java . util . Collection ) } if you want to override the * ex...
if ( this . args == null ) { setArgs ( new com . amazonaws . internal . SdkInternalList < String > ( args . length ) ) ; } for ( String ele : args ) { this . args . add ( ele ) ; } return this ;
public class AutomationAccountsInner { /** * Retrieve a list of accounts within a given resource group . * @ param resourceGroupName Name of an Azure Resource group . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; AutomationAccountInn...
return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < AutomationAccountInner > > , Page < AutomationAccountInner > > ( ) { @ Override public Page < AutomationAccountInner > call ( ServiceResponse < Page < AutomationAccountInner > > response ) { return resp...
public class RuntimeCollectionFieldFactory { /** * private static final ObjectSchema OBJECT _ COLLECTION _ VALUE _ SCHEMA = new ObjectSchema ( ) { * @ SuppressWarnings ( " unchecked " ) protected void setValue ( Object value , Object owner ) { / / the owner will always be * a Collection ( ( Collection < Object > ) ...
final Accessor accessor = AF . create ( f ) ; return new RuntimeCollectionField < T , Object > ( inline . getFieldType ( ) , number , name , f . getAnnotation ( Tag . class ) , messageFactory ) { @ Override protected void mergeFrom ( Input input , T message ) throws IOException { accessor . set ( message , input . merg...
public class OAuth10aService { /** * Start the request to retrieve the access token . The optionally provided callback will be called with the Token * when it is available . * @ param requestToken request token ( obtained previously or null ) * @ param oauthVerifier oauth _ verifier * @ param callback optional ...
log ( "async obtaining access token from %s" , api . getAccessTokenEndpoint ( ) ) ; final OAuthRequest request = prepareAccessTokenRequest ( requestToken , oauthVerifier ) ; return execute ( request , callback , new OAuthRequest . ResponseConverter < OAuth1AccessToken > ( ) { @ Override public OAuth1AccessToken convert...
public class DeviceProxy { DeviceData command_inout_reply ( AsyncCallObject aco , int timeout ) throws DevFailed , AsynReplyNotArrived { } }
return deviceProxyDAO . command_inout_reply ( this , aco , timeout ) ;
public class OntopOWLBinding { /** * TODO ( xiao ) : how about null ? ? */ @ Override public OWLObject getValue ( ) throws OWLException { } }
try { return translate ( ontopBinding . getValue ( ) ) ; } catch ( OntopResultConversionException e ) { throw new OntopOWLException ( e ) ; }
public class AbstractCLA { /** * { @ inheritDoc } */ @ Override public ICmdLineArg < E > setListCriteria ( final String [ ] arrayOfValidValues ) throws ParseException , IOException { } }
final List < E > list = new ArrayList < > ( ) ; for ( final String arrayOfValidValue : arrayOfValidValues ) list . add ( convert ( arrayOfValidValue , caseSensitive , null ) ) ; setCriteria ( new ListCriteria < > ( list ) ) ; return this ;
public class FeaturesInner { /** * Gets all the preview features in a provider namespace that are available through AFEC for the subscription . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @...
return list1NextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < FeatureResultInner > > , Page < FeatureResultInner > > ( ) { @ Override public Page < FeatureResultInner > call ( ServiceResponse < Page < FeatureResultInner > > response ) { return response . body ( ) ; } } ) ;
public class OSchemaHelper { /** * Create an { @ link ODocument } if required of an current class . * Existance of an document checked by specified primary key field name and required value * @ param pkField primary key field name * @ param pkValue required primary key value * @ return this helper */ public OSc...
checkOClass ( ) ; List < ODocument > docs = db . query ( new OSQLSynchQuery < ODocument > ( "select from " + lastClass . getName ( ) + " where " + pkField + " = ?" , 1 ) , pkValue ) ; if ( docs != null && ! docs . isEmpty ( ) ) { lastDocument = docs . get ( 0 ) ; } else { lastDocument = new ODocument ( lastClass ) ; la...
public class DrizzleBlob { /** * Writes all or part of the given < code > byte < / code > array to the < code > BLOB < / code > value that this * < code > Blob < / code > object represents and returns the number of bytes written . Writing starts at position * < code > pos < / code > in the < code > BLOB < / code > ...
int bytesWritten = 0 ; if ( blobContent == null ) { this . blobContent = new byte [ ( int ) ( pos + bytes . length ) - ( len - offset ) ] ; for ( int i = ( int ) pos + offset ; i < len ; i ++ ) { this . blobContent [ ( ( int ) ( pos + i ) ) ] = bytes [ i ] ; bytesWritten ++ ; } } else if ( this . blobContent . length <...
public class CreatePresignedNotebookInstanceUrlRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CreatePresignedNotebookInstanceUrlRequest createPresignedNotebookInstanceUrlRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( createPresignedNotebookInstanceUrlRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createPresignedNotebookInstanceUrlRequest . getNotebookInstanceName ( ) , NOTEBOOKINSTANCENAME_BINDING ) ; protocolMarshaller . marshall ( crea...
public class WildCardURL { /** * Gets the authority part of this < code > URL < / code > ( the domain ) . * Eg : www . lime49 . com OR user : pwd @ domain . com * @ return The authority part of this < code > URL < / code > */ public String getAuthority ( ) { } }
String userInfo = getUserInfo ( ) ; StringBuilder auth = new StringBuilder ( ) ; if ( ! "*" . equals ( userInfo ) ) { auth . append ( userInfo ) . append ( "@" ) ; } auth . append ( '@' ) . append ( host ) . append ( ':' ) . append ( port ) ; return auth . toString ( ) ;
public class ApplicationGatewaysInner { /** * Updates the specified application gateway tags . * @ param resourceGroupName The name of the resource group . * @ param applicationGatewayName The name of the application gateway . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ thro...
return updateTagsWithServiceResponseAsync ( resourceGroupName , applicationGatewayName ) . toBlocking ( ) . last ( ) . body ( ) ;
public class DateIndexFormatter { /** * Work - around for year formatting in JDK 6 vs 7 + . * JDK6 : does not know about ' YYYY ' ( only ' yyyy ' ) . Considers ' y ' and ' yyy ' as ' yy ' . * JDK7 : understands both ' YYYY ' and ' yyyy ' . Considers ' y ' and ' yyy ' as ' yyyy ' * This method checks the pattern a...
if ( Constants . JRE_IS_MINIMUM_JAVA7 ) { return format ; } // JDK 6 - fix year formatting // a . lower case Y to y if ( format . contains ( "Y" ) ) { format = format . replace ( "Y" , "y" ) ; } // gotta love regex // use lookahead to match isolated y / yyy with yyyy format = format . replaceAll ( "((?<!y)(?:y|yyy)(?!y...
public class AbstractContainerHelper { /** * Support standard processing of the render phase of a request . * @ throws IOException IO Exception */ public void render ( ) throws IOException { } }
if ( isDisposed ( ) ) { LOG . debug ( "Skipping render phase." ) ; return ; } try { // Check user context has been prepared if ( getNewConversation ( ) == null ) { throw new IllegalStateException ( "User context has not been prepared before the render phase" ) ; } prepareRender ( ) ; UIContext uic = getUIContext ( ) ; ...
public class Matrix4 { /** * { @ inheritDoc } This uses the iterative polar decomposition algorithm described by * < a href = " http : / / www . cs . wisc . edu / graphics / Courses / 838 - s2002 / Papers / polar - decomp . pdf " > Ken * Shoemake < / a > . */ @ Override // from IMatrix4 public Quaternion extractRot...
// start with the contents of the upper 3x3 portion of the matrix float n00 = this . m00 , n10 = this . m10 , n20 = this . m20 ; float n01 = this . m01 , n11 = this . m11 , n21 = this . m21 ; float n02 = this . m02 , n12 = this . m12 , n22 = this . m22 ; for ( int ii = 0 ; ii < 10 ; ii ++ ) { // store the results of th...
public class Request { /** * Returns input stream to read server response from . * @ return input stream to read server response from . */ public InputStream getInputStream ( ) { } }
try { return connection . getInputStream ( ) ; } catch ( SocketTimeoutException e ) { throw new HttpException ( "Failed URL: " + url + ", waited for: " + connection . getConnectTimeout ( ) + " milliseconds" , e ) ; } catch ( Exception e ) { throw new HttpException ( "Failed URL: " + url , e ) ; }
public class MPP8Reader { /** * This method extracts and collates task data . * @ throws IOException */ private void processTaskData ( ) throws IOException { } }
DirectoryEntry taskDir = ( DirectoryEntry ) m_projectDir . getEntry ( "TBkndTask" ) ; FixFix taskFixedData = new FixFix ( 316 , new DocumentInputStream ( ( ( DocumentEntry ) taskDir . getEntry ( "FixFix 0" ) ) ) ) ; if ( taskFixedData . getDiff ( ) != 0 ) { taskFixedData = new FixFix ( 366 , new DocumentInputStream (...
public class UtlReflection { /** * < p > Retrieve method from given class by name . < / p > * @ param pClazz - class * @ param pMethodName - method name * @ return Method method . * @ throws Exception if method not exist */ @ Override public final Method retrieveMethod ( final Class < ? > pClazz , final String ...
for ( Method mfd : pClazz . getDeclaredMethods ( ) ) { if ( mfd . getName ( ) . equals ( pMethodName ) ) { return mfd ; } } final Class < ? > superClazz = pClazz . getSuperclass ( ) ; Method method = null ; if ( superClazz != null && superClazz != java . lang . Object . class ) { method = retrieveMethod ( superClazz , ...
public class KeyVaultClientBaseImpl { /** * Permanently deletes the specified storage account . * The purge deleted storage account operation removes the secret permanently , without the possibility of recovery . This operation can only be performed on a soft - delete enabled vault . This operation requires the stora...
return purgeDeletedStorageAccountWithServiceResponseAsync ( vaultBaseUrl , storageAccountName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ;
public class SyncUtil { /** * Returns an update report with statistics of created , updated and deleted references and components . * @ return a String with the report . */ public String getReport ( ) { } }
return "Report\n - Created " + newComponents . size ( ) + " components\n - Updated " + this . updatedComponentCount + " components\n - Created " + newRefs . size ( ) + " references\n - Updated " + this . updatedRefCount + " references\n - Deleted " + this . deletedComponents + " components\n - Deleted " + this . delete...
public class JSONConverter { /** * Decode a JSON document to retrieve a NotificationFilter array . * @ param in The stream to read JSON from * @ return The decoded NotificationFilter array * @ throws ConversionException If JSON uses unexpected structure / format * @ throws IOException If an I / O error occurs o...
return readNotificationFiltersInternal ( parseArray ( in ) ) ;
public class PrimaveraReader { /** * See the notes above . * @ param parentTask parent task */ private void updateTaskCosts ( Task parentTask ) { } }
double baselineCost = 0 ; double actualCost = 0 ; double remainingCost = 0 ; double cost = 0 ; // process children first before adding their costs for ( Task child : parentTask . getChildTasks ( ) ) { updateTaskCosts ( child ) ; baselineCost += NumberHelper . getDouble ( child . getBaselineCost ( ) ) ; actualCost += Nu...
public class FaultToleranceTckLauncher { /** * Run the TCK ( controlled by autoFVT / publish / tckRunner / tcl / tck - suite . html ) * On Java EE7 the TCK will only run if the mode is full , otherwise it will be skipped entirely . * @ throws Exception */ @ Test @ AllowedFFDC // The tested exceptions cause FFDC so ...
MvnUtils . runTCKMvnCmd ( server , "com.ibm.ws.microprofile.faulttolerance_fat_tck" , this . getClass ( ) + ":launchFaultToleranceTCK" ) ;
public class KeyVaultClientBaseImpl { /** * Gets the specified deleted sas definition . * The Get Deleted SAS Definition operation returns the specified deleted SAS definition along with its attributes . This operation requires the storage / getsas permission . * @ param vaultBaseUrl The vault name , for example ht...
return ServiceFuture . fromResponse ( getDeletedSasDefinitionWithServiceResponseAsync ( vaultBaseUrl , storageAccountName , sasDefinitionName ) , serviceCallback ) ;
public class IdemixUtils { /** * bigToBytes turns a BIG into a byte array * @ param big the BIG to turn into bytes * @ return a byte array representation of the BIG */ public static byte [ ] bigToBytes ( BIG big ) { } }
byte [ ] ret = new byte [ IdemixUtils . FIELD_BYTES ] ; big . toBytes ( ret ) ; return ret ;
public class Counters { /** * Returns the set of keys whose counts are at or above the given threshold . * This set may have 0 elements but will not be null . * @ param c * The Counter to examine * @ param countThreshold * Items equal to or above this number are kept * @ return A ( non - null ) Set of keys ...
Set < E > keys = new HashSet < E > ( ) ; for ( E key : c . keySet ( ) ) { if ( c . getCount ( key ) >= countThreshold ) { keys . add ( key ) ; } } return ( keys ) ;
public class Model { /** * Update set statement with lambda * @ param function table column name with lambda * @ param value column value * @ param < T > * @ param < R > * @ return AnimaQuery */ public < T extends Model , R > AnimaQuery < ? extends Model > set ( TypeFunction < T , R > function , Object value ...
return query . set ( function , value ) ;
public class LPAResetParameter { /** * Reset the parameter to not override the value specified by a fragment . This is done by * removing the parm edit in the PLF and setting the value in the ILF to the passed - in fragment * value . */ @ Override public void perform ( ) throws PortalException { } }
// push the change into the PLF if ( nodeId . startsWith ( Constants . FRAGMENT_ID_USER_PREFIX ) ) { // remove the parm edit ParameterEditManager . removeParmEditDirective ( nodeId , name , person ) ; } // push the fragment value into the ILF LPAChangeParameter . changeParameterChild ( ilfNode , name , fragmentValue ) ...
public class Models { /** * Creates a configured Jackson object mapper for parsing JSON */ public static ObjectMapper createObjectMapper ( ) { } }
ObjectMapper mapper = new ObjectMapper ( ) ; mapper . enable ( SerializationFeature . INDENT_OUTPUT ) ; return mapper ;
public class DestinationChangeListener { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . trm . dlm . DestinationLocationChangeListener # destinationLocationChange ( com . ibm . ws . sib . utils . SIBUuid12 , java . util . Set , java . util . Set , com . ibm . ws . sib . trm . dlm . Capability ) */ public v...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "destinationLocationChange" , new Object [ ] { destId , additions , deletions , capability } ) ; BaseDestinationHandler destinationHandler = ( BaseDestinationHandler ) _destinationManager . getDestinationInternal ( destId , ...
public class CollUtil { /** * 获取给定Bean列表中指定字段名对应字段值的列表 < br > * 列表元素支持Bean与Map * @ param collection Bean集合或Map集合 * @ param fieldName 字段名或map的键 * @ return 字段值列表 * @ since 3.1.0 */ public static List < Object > getFieldValues ( Iterable < ? > collection , final String fieldName ) { } }
return getFieldValues ( collection , fieldName , false ) ;
public class Cargo { /** * Check if cargo is misdirected . * < ul > * < li > A cargo is misdirected if it is in a location that ' s not in the itinerary . * < li > A cargo with no itinerary can not be misdirected . * < li > A cargo that has received no handling events can not be misdirected . * < / ul > * @...
final HandlingEvent lastEvent = deliveryHistory ( ) . lastEvent ( ) ; if ( lastEvent == null ) { return false ; } else { return ! itinerary ( ) . isExpected ( lastEvent ) ; }
public class CompositeByteBuf { /** * Remove the { @ link ByteBuf } from the given index . * @ param cIndex the index on from which the { @ link ByteBuf } will be remove */ public CompositeByteBuf removeComponent ( int cIndex ) { } }
checkComponentIndex ( cIndex ) ; Component comp = components [ cIndex ] ; if ( lastAccessed == comp ) { lastAccessed = null ; } comp . free ( ) ; removeComp ( cIndex ) ; if ( comp . length ( ) > 0 ) { // Only need to call updateComponentOffsets if the length was > 0 updateComponentOffsets ( cIndex ) ; } return this ;
public class CmsLocaleManager { /** * Returns the content encoding set for the given resource . < p > * The content encoding is controlled by the property { @ link CmsPropertyDefinition # PROPERTY _ CONTENT _ ENCODING } , * which can be set on the resource or on a parent folder for all resources in this folder . < ...
String encoding = null ; // get the encoding try { encoding = cms . readPropertyObject ( res , CmsPropertyDefinition . PROPERTY_CONTENT_ENCODING , true ) . getValue ( ) ; if ( encoding != null ) { encoding = CmsEncoder . lookupEncoding ( encoding . trim ( ) , encoding ) ; } } catch ( CmsException e ) { if ( LOG . isInf...
public class COMObject { /** * public Object set ( PageContext pc , String propertyName , Object value ) { return * setEL ( pc , propertyName , value ) ; } */ @ Override public Object set ( PageContext pc , Collection . Key propertyName , Object value ) throws PageException { } }
Dispatch . put ( dispatch , propertyName . getString ( ) , value ) ; return value ;
public class ImageLoading { /** * Loading bitmap without any modifications * @ param uri content uri for bitmap * @ param context Application Context * @ return loaded bitmap ( always not null ) * @ throws ImageLoadException if it is unable to load file */ public static Bitmap loadBitmap ( Uri uri , Context con...
return loadBitmap ( new UriSource ( uri , context ) ) ;
public class CmsRelationType { /** * Returns all user defined relation types in the given list . < p > * @ param relationTypes the collection of relation types to filter * @ return a list of { @ link CmsRelationType } objects */ public static List < CmsRelationType > filterUserDefined ( Collection < CmsRelationType...
List < CmsRelationType > result = new ArrayList < CmsRelationType > ( relationTypes ) ; Iterator < CmsRelationType > it = result . iterator ( ) ; while ( it . hasNext ( ) ) { CmsRelationType type = it . next ( ) ; if ( type . isInternal ( ) ) { it . remove ( ) ; } } return result ;
public class PathsDocument { /** * Apply extension context to all OperationsContentExtension . * @ param context context */ private void applyPathsDocumentExtension ( Context context ) { } }
extensionRegistry . getPathsDocumentExtensions ( ) . forEach ( extension -> extension . apply ( context ) ) ;
public class BooleanIterator { /** * Returns an infinite { @ code BooleanIterator } . * @ param supplier * @ return */ public static BooleanIterator generate ( final BooleanSupplier supplier ) { } }
N . checkArgNotNull ( supplier ) ; return new BooleanIterator ( ) { @ Override public boolean hasNext ( ) { return true ; } @ Override public boolean nextBoolean ( ) { return supplier . getAsBoolean ( ) ; } } ;
public class CPTaxCategoryServiceBaseImpl { /** * Sets the cp attachment file entry remote service . * @ param cpAttachmentFileEntryService the cp attachment file entry remote service */ public void setCPAttachmentFileEntryService ( com . liferay . commerce . product . service . CPAttachmentFileEntryService cpAttachm...
this . cpAttachmentFileEntryService = cpAttachmentFileEntryService ;
public class FTPArchiveJob { /** * / * ( non - Javadoc ) * @ see org . audit4j . core . handler . file . ArchiveJob # archive ( ) */ @ Override void archive ( ) { } }
FTPArchiveClient client = new FTPArchiveClient ( ) ; try { client . init ( clientArguments ) ; } catch ( UnknownHostException e ) { throw new Audit4jRuntimeException ( "Excepting in running archive client." , e ) ; }
public class InjectionProcessor { /** * Gets an object factory for the specified class or class name . This * method must be used to support configurations without a class loader . * @ param klass the class or < tt > null < / tt > if unavailable * @ param className the class name or < tt > null < / tt > if klass ...
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getObjectFactory: " + klass + ", " + className ) ; if ( ivObjectFactoryMap == null ) { if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getObjectFactory: no factories" ) ; ret...
public class LinkedPE { /** * Gets to the linked PhysicalEntity . * @ param match current pattern match * @ param ind mapped indices * @ return linked PhysicalEntity */ @ Override public Collection < BioPAXElement > generate ( Match match , int ... ind ) { } }
PhysicalEntity pe = ( PhysicalEntity ) match . get ( ind [ 0 ] ) ; Set < BioPAXElement > set = getLinkedElements ( pe ) ; return set ;
public class Flow { /** * converts B into T with Mapper , ignores null - values */ public < T > Flow < T > map ( Mapper < ? super B , T > mapper ) { } }
return then ( new FlowMap < B , T > ( mapper ) ) ;
public class AtomikosPoolAdapter { /** * { @ inheritDoc } */ @ Override protected boolean isAcquireTimeoutException ( Exception e ) { } }
if ( e instanceof AtomikosSQLException ) { AtomikosSQLException atomikosSQLException = ( AtomikosSQLException ) e ; return atomikosSQLException . getMessage ( ) != null && ACQUIRE_TIMEOUT_MESSAGE . equals ( atomikosSQLException . getMessage ( ) ) ; } return false ;
public class TopicChanged { /** * Converts old serialized data to newer construct . * @ return itself */ @ SuppressWarnings ( "unused" ) private Object readResolve ( ) { } }
if ( StringUtils . isNotEmpty ( oldTopic ) ) { oldTopicObject = new Topic ( oldTopic ) ; oldTopic = null ; } if ( oldTopicObject != null && StringUtils . isEmpty ( oldTopicObject . getName ( ) ) ) { oldTopicObject = null ; } return this ;
public class TaggerUtils { /** * Converts training data as sequences into assignments that can be * used for parameter estimation . * @ param sequences * @ param featureGen * @ param model * @ return */ public static < I , O > List < Example < DynamicAssignment , DynamicAssignment > > reformatTrainingData ( L...
Preconditions . checkArgument ( ! ( startInput == null ^ startLabel == null ) ) ; DynamicVariableSet plate = modelVariables . getPlate ( PLATE_NAME ) ; VariableNumMap x = plate . getFixedVariables ( ) . getVariablesByName ( INPUT_FEATURES_NAME ) ; VariableNumMap xInput = plate . getFixedVariables ( ) . getVariablesByNa...
public class CmsElementRename { /** * Does validate the request parameters and returns a buffer with error messages . < p > * If there were no error messages , the buffer is empty . < p > */ public void validateParameters ( ) { } }
// localisation CmsMessages messages = Messages . get ( ) . getBundle ( getLocale ( ) ) ; StringBuffer validationErrors = new StringBuffer ( ) ; if ( CmsStringUtil . isEmpty ( getParamResource ( ) ) ) { validationErrors . append ( messages . key ( Messages . GUI_ELEM_RENAME_VALIDATE_RESOURCE_FOLDER_0 ) ) . append ( "<b...
public class Rectangle { /** * Sets the location and size . * @ param x The horizontal location . * @ param y The vertical location . * @ param w The rectangle width . * @ param h The rectangle height . */ public void set ( double x , double y , double w , double h ) { } }
this . x = x ; this . y = y ; width = w ; height = h ;
public class CmsFileExplorer { /** * Initializes the app specific toolbar buttons . < p > * @ param context the UI context */ private void initToolbarButtons ( I_CmsAppUIContext context ) { } }
m_publishButton = context . addPublishButton ( new I_CmsUpdateListener < String > ( ) { public void onUpdate ( List < String > updatedItems ) { updateAll ( false ) ; } } ) ; m_newButton = CmsToolBar . createButton ( FontOpenCms . WAND , CmsVaadinUtils . getMessageText ( Messages . GUI_NEW_RESOURCE_TITLE_0 ) ) ; if ( Cm...
public class DocumentRevisionTree { /** * < p > Returns the { @ link InternalDocumentRevision } for a document ID and revision ID . < / p > * @ param id document ID * @ param rev revision ID * @ return the { @ code DocumentRevision } for the document and revision ID */ public InternalDocumentRevision lookup ( Str...
for ( DocumentRevisionNode n : sequenceMap . values ( ) ) { if ( n . getData ( ) . getId ( ) . equals ( id ) && n . getData ( ) . getRevision ( ) . equals ( rev ) ) { return n . getData ( ) ; } } return null ;
public class Traits { /** * Reflection API to find the method corresponding to the default implementation of a trait , given a bridge method . * @ param someMethod a method node * @ return null if it is not a method implemented in a trait . If it is , returns the method from the trait class . */ public static Metho...
TraitBridge annotation = someMethod . getAnnotation ( TraitBridge . class ) ; if ( annotation == null ) { return null ; } Class aClass = annotation . traitClass ( ) ; String desc = annotation . desc ( ) ; for ( Method method : aClass . getDeclaredMethods ( ) ) { String methodDescriptor = BytecodeHelper . getMethodDescr...
public class GenomicsDataSourceBase { /** * Gets unmapped mates so we can inject them besides their mapped pairs . * @ throws GeneralSecurityException * @ throws IOException */ protected UnmappedReads < Read > getUnmappedMatesOfMappedReads ( String readsetId ) throws GeneralSecurityException , IOException { } }
LOG . info ( "Collecting unmapped mates of mapped reads for injection" ) ; final Iterable < Read > unmappedReadsIterable = getUnmappedReadsIterator ( readsetId ) ; final UnmappedReads < Read > unmappedReads = createUnmappedReads ( ) ; for ( Read read : unmappedReadsIterable ) { unmappedReads . maybeAddRead ( read ) ; }...
public class RateLimiterBucket { /** * Resets the count if the period boundary has been crossed . Returns true if the * count was reset to 0 or false otherwise . * @ param period the period */ public boolean resetIfNecessary ( RateBucketPeriod period ) { } }
long periodBoundary = getLastPeriodBoundary ( period ) ; if ( System . currentTimeMillis ( ) >= periodBoundary ) { setCount ( 0 ) ; return true ; } return false ;
public class CmsIndexingThread { /** * Creates a document for the resource without extracting the content . The aim is to get a content indexed , * even if extraction runs into a timeout . * @ return the document for the resource generated if the content is discarded , * i . e . , only meta information are indexe...
try { return m_index . getFieldConfiguration ( ) . createDocument ( m_cms , m_res , m_index , null ) ; } catch ( CmsException e ) { LOG . error ( "Default document for " + m_res . getRootPath ( ) + " and index " + m_index . getName ( ) + " could not be created." , e ) ; return null ; }
public class CommonFunction { /** * Utility method to hide passwords from a map structure . * Make a copy of the map and * < li > replace password values with * * * * * * < li > replace map values by recursively invoking this method * @ param map collection of name / value pairs . Values might be passwords or s...
if ( map != null && depth > 0 ) { map = new HashMap < Object , Object > ( map ) ; for ( @ SuppressWarnings ( "rawtypes" ) Map . Entry entry : map . entrySet ( ) ) if ( entry . getKey ( ) instanceof String && ( ( String ) entry . getKey ( ) ) . toUpperCase ( ) . contains ( "PASSWORD" ) ) entry . setValue ( "******" ) ; ...
public class Base64 { /** * Tests a given byte array to see if it contains only valid characters within the Base64 alphabet . * @ param arrayOctet * byte array to test * @ return < code > true < / code > if any byte is a valid character in the Base64 alphabet ; false herwise */ private static boolean containsBase...
for ( int i = 0 ; i < arrayOctet . length ; i ++ ) { if ( isBase64 ( arrayOctet [ i ] ) ) { return true ; } } return false ;
public class GuavaOptionalSubject { /** * Fails if the { @ link Optional } { @ code < T > } does not have the given value or the subject is null . * < p > To make more complex assertions on the optional ' s value split your assertion in two : * < pre > { @ code * assertThat ( myOptional ) . isPresent ( ) ; * as...
if ( expected == null ) { throw new NullPointerException ( "Optional cannot have a null value." ) ; } if ( actual ( ) == null ) { failWithActual ( "expected an optional with value" , expected ) ; } else if ( ! actual ( ) . isPresent ( ) ) { failWithoutActual ( fact ( "expected to have value" , expected ) , simpleFact (...
public class CatalogUtil { /** * Computes a MD5 digest ( 128 bits - > 2 longs - > UUID which is comprised of * two longs ) of a deployment file stripped of all comments and its hostcount * attribute set to 0. * @ param deploymentBytes * @ return MD5 digest for for configuration */ public static UUID makeDeploym...
String normalized = new String ( deploymentBytes , StandardCharsets . UTF_8 ) ; Matcher matcher = XML_COMMENT_RE . matcher ( normalized ) ; normalized = matcher . replaceAll ( "" ) ; matcher = HOSTCOUNT_RE . matcher ( normalized ) ; normalized = matcher . replaceFirst ( "hostcount=\"0\"" ) ; return Digester . md5AsUUID...
public class RangeTombstoneList { /** * Adds the new tombstone at index i , growing and / or moving elements to make room for it . */ private void addInternal ( int i , Composite start , Composite end , long markedAt , int delTime ) { } }
assert i >= 0 ; if ( size == capacity ( ) ) growToFree ( i ) ; else if ( i < size ) moveElements ( i ) ; setInternal ( i , start , end , markedAt , delTime ) ; size ++ ;
public class PropertyList { /** * Returns a list of properties with the specified name . * @ param name name of properties to return * @ return a property list */ @ SuppressWarnings ( "unchecked" ) public final < C extends T > PropertyList < C > getProperties ( final String name ) { } }
final PropertyList < C > list = new PropertyList < C > ( ) ; for ( final T p : this ) { if ( p . getName ( ) . equalsIgnoreCase ( name ) ) { list . add ( ( C ) p ) ; } } return list ;
public class Command { /** * Validate the command * @ param restClient */ public void validate ( RESTClient restClient ) { } }
Utils . require ( this . commandName != null , "missing command name" ) ; // validate command name this . metadataJson = matchCommand ( restMetadataJson , this . commandName , commandParams . containsKey ( STORAGE_SERVICE ) ? ( String ) commandParams . get ( STORAGE_SERVICE ) : _SYSTEM ) ; if ( this . metadataJson == n...
public class CycleHandler { /** * Removes cycles from the graph that was used to construct the cycle handler . * @ throws WikiApiException Thrown if errors occurred . */ public void removeCycles ( ) throws WikiApiException { } }
DefaultEdge edge = null ; while ( ( edge = findCycle ( ) ) != null ) { Category sourceCat = wiki . getCategory ( categoryGraph . getGraph ( ) . getEdgeSource ( edge ) ) ; Category targetCat = wiki . getCategory ( categoryGraph . getGraph ( ) . getEdgeTarget ( edge ) ) ; logger . info ( "Removing cycle: " + sourceCat . ...
public class YamlFileFixture { /** * Adds the yaml loaded from the specified file to current values . * @ param filename YAML file to load * @ return true when file is loaded */ @ Override public boolean loadValuesFrom ( String filename ) { } }
String yamlStr = textIn ( filename ) ; Object y = yaml . load ( yamlStr ) ; if ( y instanceof Map ) { getCurrentValues ( ) . putAll ( ( Map ) y ) ; } else { getCurrentValues ( ) . put ( "elements" , y ) ; } return true ;
public class RuntimeExceptionsFactory { /** * Constructs and initializes a new { @ link IllegalArgumentException } with the given { @ link Throwable cause } * and { @ link String message } formatted with the given { @ link Object [ ] arguments } . * @ param cause { @ link Throwable } identified as the reason this {...
return new IllegalArgumentException ( format ( message , args ) , cause ) ;
public class AbstractStreamEx { /** * Performs a mapping of the stream content to a partial function * removing the elements to which the function is not applicable . * If the mapping function returns { @ link Optional # empty ( ) } , the original * value will be removed from the resulting stream . The mapping fu...
return new StreamEx < > ( stream ( ) . map ( value -> mapper . apply ( value ) . orElse ( null ) ) . filter ( Objects :: nonNull ) , context ) ;
public class GrpcUtils { /** * Converts a proto type to a wire type . * @ param workerInfo the proto type to convert * @ return the converted wire type */ public static WorkerInfo fromProto ( alluxio . grpc . WorkerInfo workerInfo ) { } }
return new WorkerInfo ( ) . setAddress ( fromProto ( workerInfo . getAddress ( ) ) ) . setCapacityBytes ( workerInfo . getCapacityBytes ( ) ) . setCapacityBytesOnTiers ( workerInfo . getCapacityBytesOnTiers ( ) ) . setId ( workerInfo . getId ( ) ) . setLastContactSec ( workerInfo . getLastContactSec ( ) ) . setStartTim...
public class JsonUtils { /** * Converts a given Json string to an JSONPath ReadContext * @ param json The json string to convert * @ return JSPNPath read context */ public static ReadContext fromJson ( String json ) { } }
Objects . requireNonNull ( json , Required . JSON . toString ( ) ) ; return JsonPath . parse ( json ) ;
public class DrawerManager { /** * Push and display a drawer on the page during an AJAX request , * and inject an optional CSS class onto the drawer ' s immediate container . * @ param drawer * The drawer to be pushed . Cannot be null . * @ param target * The current AJAX target . * @ param cssClass * The...
ListItem item = new ListItem ( "next" , drawer , this , cssClass ) ; drawers . push ( item ) ; if ( first == null ) { first = item ; addOrReplace ( first ) ; } else { ListItem iter = first ; while ( iter . next != null ) { iter = iter . next ; } iter . add ( item ) ; } if ( target != null ) { target . add ( item ) ; ta...
public class WebColors { /** * Gives you a Color based on a name . * @ param name * a name such as black , violet , cornflowerblue or # RGB or # RRGGBB * or rgb ( R , G , B ) * @ return the corresponding Color object * @ throws IllegalArgumentException * if the String isn ' t a know representation of a colo...
int [ ] c = { 0 , 0 , 0 , 0 } ; if ( name . startsWith ( "#" ) ) { if ( name . length ( ) == 4 ) { c [ 0 ] = Integer . parseInt ( name . substring ( 1 , 2 ) , 16 ) * 16 ; c [ 1 ] = Integer . parseInt ( name . substring ( 2 , 3 ) , 16 ) * 16 ; c [ 2 ] = Integer . parseInt ( name . substring ( 3 ) , 16 ) * 16 ; return ne...
public class JmxMonitor { /** * Tries to guess a context path for the running application . * If this is a web application running under a tomcat server this will work . * If unsuccessful , returns null . * @ return A string representing the current context path or null if it cannot be determined . */ private Str...
ClassLoader loader = getClass ( ) . getClassLoader ( ) ; if ( loader == null ) return null ; URL url = loader . getResource ( "/" ) ; if ( url != null ) { String [ ] elements = url . toString ( ) . split ( "/" ) ; for ( int i = elements . length - 1 ; i > 0 ; -- i ) { // URLs look like this : file : / . . . / ImageServ...
public class ModCluster { /** * Get the handler proxying the requests . * @ return the proxy handler */ public HttpHandler createProxyHandler ( ) { } }
return ProxyHandler . builder ( ) . setProxyClient ( container . getProxyClient ( ) ) . setMaxRequestTime ( maxRequestTime ) . setMaxConnectionRetries ( maxRetries ) . setReuseXForwarded ( reuseXForwarded ) . build ( ) ;
public class BundleTrackerAggregator { /** * { @ inheritDoc } */ @ Override public ServiceType addingService ( ServiceReference < ServiceType > reference ) { } }
ServiceType service = super . addingService ( reference ) ; for ( ServiceTrackerAggregatorReadyChildren < ServiceType > child : children ) { child . addingService ( reference , service ) ; } return service ;
public class TypeAnnotationPosition { /** * Create a { @ code TypeAnnotationPosition } for a method * invocation type argument . * @ param location The type path . * @ param type _ index The index of the type argument . */ public static TypeAnnotationPosition methodInvocationTypeArg ( final List < TypePathEntry >...
return methodInvocationTypeArg ( location , null , type_index , - 1 ) ;
public class CommerceNotificationQueueEntryPersistenceImpl { /** * Returns the last commerce notification queue entry in the ordered set where sentDate & lt ; & # 63 ; . * @ param sentDate the sent date * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ retu...
int count = countByLtS ( sentDate ) ; if ( count == 0 ) { return null ; } List < CommerceNotificationQueueEntry > list = findByLtS ( sentDate , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ;
public class LinkedList { /** * Unlinks non - null first node f . */ private E unlinkFirst ( Node < E > f ) { } }
// assert f = = first & & f ! = null ; final E element = f . item ; final Node < E > next = f . next ; f . item = null ; f . next = null ; // help GC first = next ; if ( next == null ) last = null ; else next . prev = null ; size -- ; modCount ++ ; return element ;
public class BaseCustomDfuImpl { /** * Starts sending the data . This method is SYNCHRONOUS and terminates when the whole file will * be uploaded or the device get disconnected . If connection state will change , or an error * will occur , an exception will be thrown . * @ param packetCharacteristic the character...
if ( mAborted ) throw new UploadAbortedException ( ) ; mReceivedData = null ; mError = 0 ; mFirmwareUploadInProgress = true ; mPacketsSentSinceNotification = 0 ; final byte [ ] buffer = mBuffer ; try { final int size = mFirmwareStream . read ( buffer ) ; mService . sendLogBroadcast ( DfuBaseService . LOG_LEVEL_VERBOSE ...
public class H2O { /** * Dead stupid argument parser . */ static void parseArguments ( String [ ] args ) { } }
for ( AbstractH2OExtension e : extManager . getCoreExtensions ( ) ) { args = e . parseArguments ( args ) ; } parseH2OArgumentsTo ( args , ARGS ) ;
public class HttpChannelConfig { /** * Check the configuration map for to see if we should send or not content - length on 1xx and 204 responses * @ param props */ private void parseRemoveCLHeaderInTempStatusRespRFC7230compat ( Map props ) { } }
// PI35277 String value = ( String ) props . get ( HttpConfigConstants . REMOVE_CLHEADER_IN_TEMP_STATUS_RFC7230_COMPAT ) ; if ( null != value ) { this . removeCLHeaderInTempStatusRespRFC7230compat = convertBoolean ( value ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc ,...
public class Contract { /** * Checks that the collections have the same number of elements , otherwise throws an exception * @ param collection1 the first collection * @ param collection2 the second collection * @ param collection1Name the name of the first collection * @ param collection2Name the name of the s...
notNull ( collection1 , collection1Name ) ; notNull ( collection2 , collection2Name ) ; if ( collection1 . size ( ) != collection2 . size ( ) ) { throw new IllegalArgumentException ( "expecting " + maskNullArgument ( collection1Name ) + " to have the same size as " + maskNullArgument ( collection2Name ) ) ; }
public class SipNamingContextListener { /** * Removes the sip subcontext from JNDI * @ param envCtx the envContext from which the sip subcontext should be removed */ public static void removeSipSubcontext ( Context envCtx ) { } }
try { envCtx . destroySubcontext ( SIP_SUBCONTEXT ) ; } catch ( NamingException e ) { logger . error ( sm . getString ( "naming.unbindFailed" , e ) ) ; }
public class Predicates { /** * Returns a predicate that that tests if an iterable contains an argument . * @ param iterable the iterable , may not be null * @ param < T > the type of the argument to the predicate * @ return a predicate that that tests if an iterable contains an argument */ public static < T > Pr...
return new Predicate < T > ( ) { @ Override public boolean test ( final T testValue ) { return Iterables . contains ( iterable , testValue ) ; } } ;
public class Tree { /** * Adds a TSUID to the not - matched local list when strict _ matching is enabled . * Must be synced with storage . * @ param tsuid TSUID to add to the set * @ throws IllegalArgumentException if the tsuid was invalid */ public void addNotMatched ( final String tsuid , final String message )...
if ( tsuid == null || tsuid . isEmpty ( ) ) { throw new IllegalArgumentException ( "Empty or null non matches not allowed" ) ; } if ( not_matched == null ) { not_matched = new HashMap < String , String > ( ) ; } if ( ! not_matched . containsKey ( tsuid ) ) { not_matched . put ( tsuid , message ) ; changed . put ( "not_...
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getMediaEjectControlEjCtrl ( ) { } }
if ( mediaEjectControlEjCtrlEEnum == null ) { mediaEjectControlEjCtrlEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 93 ) ; } return mediaEjectControlEjCtrlEEnum ;
public class JvmFloatAnnotationValueImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EList < Float > getValues ( ) { } }
if ( values == null ) { values = new EDataTypeEList < Float > ( Float . class , this , TypesPackage . JVM_FLOAT_ANNOTATION_VALUE__VALUES ) ; } return values ;
public class Value { /** * < code > . google . protobuf . Timestamp timestamp _ value = 5 ; < / code > */ public com . google . protobuf . Timestamp getTimestampValue ( ) { } }
if ( typeCase_ == 5 ) { return ( com . google . protobuf . Timestamp ) type_ ; } return com . google . protobuf . Timestamp . getDefaultInstance ( ) ;
public class ArchiveFactory { /** * Creates a new archive of the specified type as imported from the specified { @ link File } . The file is expected to * be encoded as ZIP ( ie . JAR / WAR / EAR ) . The name of the archive will be set to { @ link File # getName ( ) } . The archive * will be be backed by the { @ li...
// Precondition checks if ( type == null ) { throw new IllegalArgumentException ( "Type must be specified" ) ; } if ( archiveFile == null ) { throw new IllegalArgumentException ( "File must be specified" ) ; } if ( ! archiveFile . exists ( ) ) { throw new IllegalArgumentException ( "File for import does not exist: " + ...
public class JSONTool { /** * Serialize a Java object to the JSON format . * Examples : * < ul > * < li > numbers and boolean values : 23 , 13.5 , true , false < / li > * < li > strings : " one \ " two ' three " ( quotes included ) < / li > * < li > arrays and collections : [ 1 , 2 , 3 ] < / li > * < li > m...
try { ObjectMapper mapper = new ObjectMapper ( ) ; SimpleModule m = new SimpleModule ( "org.json.* serializer" , new Version ( 1 , 0 , 0 , "" , "org.json" , "json" ) ) ; m . addSerializer ( JSONObject . class , new JSONObjectSerializer ( ) ) ; m . addSerializer ( JSONArray . class , new JSONArraySerializer ( ) ) ; mapp...
public class FindIdentifiers { /** * Finds the set of all bare variable identifiers in scope at the current location . Identifiers * are ordered by ascending distance / scope count from the current location to match shadowing * rules . That is , if two variables with the same simple names appear in the set , the on...
ImmutableSet . Builder < VarSymbol > result = new ImmutableSet . Builder < > ( ) ; Tree prev = state . getPath ( ) . getLeaf ( ) ; for ( Tree curr : state . getPath ( ) . getParentPath ( ) ) { switch ( curr . getKind ( ) ) { case BLOCK : for ( StatementTree stmt : ( ( BlockTree ) curr ) . getStatements ( ) ) { if ( stm...