signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class EJBFactoryHome { /** * Create wrapper instance of the type of wrappers managed by this
* home . < p >
* This method provides a wrapper factory capability .
* @ param id The < code > BeanId < / code > to associate with the wrapper
* @ return < code > EJSWrapper < / code > instance whose most specifi... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "internalCreateWrapper : " + beanId ) ; // Creating the wrappers for an EJBFactory is fairly simple ; there is
// only one remote wrapper , which is really just a wrapper around the
// HomeOfHomes .
// A different instance of t... |
public class AbstractCacheConfig { /** * Add a configuration for a { @ link javax . cache . event . CacheEntryListener } .
* @ param cacheEntryListenerConfiguration the { @ link CacheEntryListenerConfiguration }
* @ return the { @ link CacheConfig }
* @ throws IllegalArgumentException if the same CacheEntryListen... | checkNotNull ( cacheEntryListenerConfiguration , "CacheEntryListenerConfiguration can't be null" ) ; if ( ! getListenerConfigurations ( ) . add ( cacheEntryListenerConfiguration ) ) { throw new IllegalArgumentException ( "A CacheEntryListenerConfiguration can " + "be registered only once" ) ; } return this ; |
public class WordBuilder { /** * Appends { @ code num } copies of a symbol to the contents of the internal storage .
* @ param num
* the number of copies
* @ param symbol
* the symbol
* @ return { @ code this } */
public WordBuilder < I > repeatAppend ( int num , I symbol ) { } } | if ( num == 0 ) { return this ; } ensureAdditionalCapacity ( num ) ; if ( symbol == null ) { length += num ; } else { for ( int i = num ; i > 0 ; i -- ) { array [ length ++ ] = symbol ; } } return this ; |
public class ElasticsearchClusterConfigStatusMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ElasticsearchClusterConfigStatus elasticsearchClusterConfigStatus , ProtocolMarshaller protocolMarshaller ) { } } | if ( elasticsearchClusterConfigStatus == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( elasticsearchClusterConfigStatus . getOptions ( ) , OPTIONS_BINDING ) ; protocolMarshaller . marshall ( elasticsearchClusterConfigStatus . getStatus ( )... |
public class BooleanConstraint { /** * A factory method for creating { @ link BooleanConstraint } s from an arbitrary
* propositional logic formula ( wff ) . Allowed connectives are
* < code > ^ < / code > ( and ) , < code > v < / code > ( or ) , < code > ~ < / code > ( not ) , < code > - & gt ; < / code > ( implie... | try { wff = wff . replace ( "~" , "NOT " ) ; wff = wff . replace ( "-" , "=" ) ; wff = wff . replace ( "v" , "OR" ) ; wff = wff . replace ( "^" , "AND" ) ; MetaCSPLogging . getLogger ( BooleanConstraint . class ) . finest ( "Converting WFF: " + wff ) ; Converter < Symbol > sConv = new Converter < Symbol > ( ) ; PEParse... |
public class Variables { /** * Get an instance of the { @ link Variables } stack from the given { @ link GraphRewrite } event context . */
public static Variables instance ( GraphRewrite event ) { } } | Variables instance = ( Variables ) event . getRewriteContext ( ) . get ( Variables . class ) ; if ( instance == null ) { instance = new Variables ( ) ; event . getRewriteContext ( ) . put ( Variables . class , instance ) ; } return instance ; |
public class QuorumImpl { /** * Determines if the quorum is present for the given member collection , caches the result and publishes an event under
* the { @ link # quorumName } topic if there was a change in presence .
* < strong > This method is not thread safe and should not be called concurrently . < / strong ... | QuorumState previousQuorumState = quorumState ; QuorumState newQuorumState = QuorumState . ABSENT ; try { boolean present = quorumFunction . apply ( members ) ; newQuorumState = present ? QuorumState . PRESENT : QuorumState . ABSENT ; } catch ( Exception e ) { ILogger logger = nodeEngine . getLogger ( QuorumService . c... |
public class DocPretty { /** * Print list . , with separators */
protected void print ( List < ? extends DocTree > list , String sep ) throws IOException { } } | if ( list . isEmpty ( ) ) return ; boolean first = true ; for ( DocTree t : list ) { if ( ! first ) print ( sep ) ; print ( t ) ; first = false ; } |
public class SearchIndex { /** * Retrieves the root of the indexing aggregate for
* < code > removedUUIDs < / code > and puts it into < code > map < / code > .
* @ param removedNodeIds
* the UUIDs of removed nodes .
* @ param map
* aggregate roots are collected in this map . Key = UUID ,
* value = NodeState... | if ( indexingConfig != null ) { AggregateRule [ ] aggregateRules = indexingConfig . getAggregateRules ( ) ; if ( aggregateRules == null ) { return ; } long time = 0 ; if ( log . isDebugEnabled ( ) ) { time = System . currentTimeMillis ( ) ; } int found = SecurityHelper . doPrivilegedAction ( new PrivilegedAction < Inte... |
public class CodeGenerator { /** * generate import code .
* @ param code the code */
private void genImportCode ( ClassCode code ) { } } | code . importClass ( "java.util.*" ) ; code . importClass ( "java.io.IOException" ) ; code . importClass ( "java.lang.reflect.*" ) ; code . importClass ( "com.baidu.bjf.remoting.protobuf.code.*" ) ; code . importClass ( "com.baidu.bjf.remoting.protobuf.utils.*" ) ; code . importClass ( "com.baidu.bjf.remoting.protobuf.... |
public class LibratoWriter { /** * Send given metrics to the Graphite server . */
@ Override public void write ( Iterable < QueryResult > results ) { } } | logger . debug ( "Export to '{}', proxy {} metrics {}" , url , proxy , results ) ; List < QueryResult > counters = new ArrayList < QueryResult > ( ) ; List < QueryResult > gauges = new ArrayList < QueryResult > ( ) ; for ( QueryResult result : results ) { if ( METRIC_TYPE_GAUGE . equals ( result . getType ( ) ) ) { gau... |
public class MapTileTransitionModel { /** * Get the new transition type from two transitions .
* @ param a The inner transition .
* @ param b The outer transition .
* @ param ox The horizontal offset to update .
* @ param oy The vertical offset to update .
* @ return The new transition type , < code > null < ... | final TransitionType type = getTransitionHorizontalVertical ( a , b , ox , oy ) ; if ( type != null ) { return type ; } return getTransitionDiagonals ( a , b , ox , oy ) ; |
public class Faker { /** * Set a random check or uncheck state
* @ param view */
public void fillWithCheckState ( CompoundButton view ) { } } | validateNotNullableView ( view ) ; validateIfIsACompoundButton ( view ) ; view . setChecked ( new Random ( ) . nextBoolean ( ) ) ; |
public class CmsFrameset { /** * Returns the html for the " preferences " button depending on the current users permissions and
* the default workplace settings . < p >
* @ return the html for the " preferences " button */
public String getPreferencesButton ( ) { } } | int buttonStyle = getSettings ( ) . getUserSettings ( ) . getWorkplaceButtonStyle ( ) ; if ( ! getCms ( ) . getRequestContext ( ) . getCurrentUser ( ) . isManaged ( ) ) { return button ( "../commons/preferences.jsp" , "body" , "preferences.png" , Messages . GUI_BUTTON_PREFERENCES_0 , buttonStyle ) ; } else { return but... |
public class AbcGrammar { /** * major : : = " maj " [ " o " [ " r " ] ] */
Rule Major ( ) { } } | return Sequence ( IgnoreCase ( "maj" ) , Optional ( Sequence ( IgnoreCase ( "o" ) , Optional ( IgnoreCase ( "r" ) ) ) ) ) . label ( Major ) . suppressSubnodes ( ) ; |
public class CmsNotification { /** * Sends a new notification , that will be removed automatically . < p >
* @ param type the notification type
* @ param message the message */
public void send ( Type type , final String message ) { } } | final CmsNotificationMessage notificationMessage = new CmsNotificationMessage ( Mode . NORMAL , type , message ) ; m_messages . add ( notificationMessage ) ; if ( hasWidget ( ) ) { m_widget . addMessage ( notificationMessage ) ; } Timer timer = new Timer ( ) { @ Override public void run ( ) { removeMessage ( notificati... |
public class aaakcdaccount { /** * Use this API to fetch all the aaakcdaccount resources that are configured on netscaler . */
public static aaakcdaccount [ ] get ( nitro_service service ) throws Exception { } } | aaakcdaccount obj = new aaakcdaccount ( ) ; aaakcdaccount [ ] response = ( aaakcdaccount [ ] ) obj . get_resources ( service ) ; return response ; |
public class WiresDockingControlImpl { /** * Reurn the closer magnet
* @ param shape
* @ param parent
* @ param allowOverlap should allow overlapping docked shape or not
* @ return closer magnet or null if none are available */
private WiresMagnet getCloserMagnet ( final WiresShape shape , final WiresContainer ... | final WiresShape parentShape = ( WiresShape ) parent ; final MagnetManager . Magnets magnets = parentShape . getMagnets ( ) ; final Point2D shapeLocation = shape . getComputedLocation ( ) ; final Point2D shapeCenter = Geometry . findCenter ( shape . getPath ( ) . getBoundingBox ( ) ) ; final double shapeX = shapeCenter... |
public class BELScriptLexer { /** * $ ANTLR start " T _ _ 63" */
public final void mT__63 ( ) throws RecognitionException { } } | try { int _type = T__63 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // BELScript . g : 50:7 : ( ' sec ' )
// BELScript . g : 50:9 : ' sec '
{ match ( "sec" ) ; } state . type = _type ; state . channel = _channel ; } finally { } |
public class Util { /** * Depending on the type of the < code > reader < / code > this method either
* closes or releases the reader . The reader is released if it implements
* { @ link ReleaseableIndexReader } .
* @ param reader the index reader to close or release .
* @ throws IOException if an error occurs w... | if ( reader instanceof ReleaseableIndexReader ) { ( ( ReleaseableIndexReader ) reader ) . release ( ) ; } else { reader . close ( ) ; } |
public class SoyNodeCompiler { /** * Interprets the given expressions as the arguments of a { @ code range ( . . . ) } expression in a
* { @ code foreach } loop . */
private CompiledForeachRangeArgs calculateRangeArgs ( ForNode forNode , Scope scope ) { } } | RangeArgs rangeArgs = RangeArgs . createFromNode ( forNode ) . get ( ) ; ForNonemptyNode nonEmptyNode = ( ForNonemptyNode ) forNode . getChild ( 0 ) ; ImmutableList . Builder < Statement > initStatements = ImmutableList . builder ( ) ; Expression startExpression = computeRangeValue ( SyntheticVarName . foreachLoopRange... |
public class CheckpointCoordinator { /** * Shuts down the checkpoint coordinator .
* < p > After this method has been called , the coordinator does not accept
* and further messages and cannot trigger any further checkpoints . */
public void shutdown ( JobStatus jobStatus ) throws Exception { } } | synchronized ( lock ) { if ( ! shutdown ) { shutdown = true ; LOG . info ( "Stopping checkpoint coordinator for job {}." , job ) ; periodicScheduling = false ; triggerRequestQueued = false ; // shut down the hooks
MasterHooks . close ( masterHooks . values ( ) , LOG ) ; masterHooks . clear ( ) ; // shut down the thread... |
public class EC2MetadataUtils { /** * Returns the temporary security credentials ( AccessKeyId , SecretAccessKey ,
* SessionToken , and Expiration ) associated with the IAM roles on the
* instance . */
public static Map < String , IAMSecurityCredential > getIAMSecurityCredentials ( ) { } } | Map < String , IAMSecurityCredential > credentialsInfoMap = new HashMap < String , IAMSecurityCredential > ( ) ; List < String > credentials = getItems ( EC2_METADATA_ROOT + "/iam/security-credentials" ) ; if ( null != credentials ) { for ( String credential : credentials ) { String json = getData ( EC2_METADATA_ROOT +... |
public class AbstractConversionTable { /** * Remove the current type conversion . */
@ SuppressWarnings ( "unchecked" ) protected void removeCurrentTypeConversion ( ) { } } | final IStructuredSelection selection = this . list . getStructuredSelection ( ) ; final String [ ] types = new String [ selection . size ( ) ] ; final Iterator < ConversionMapping > iter = selection . iterator ( ) ; int i = 0 ; while ( iter . hasNext ( ) ) { types [ i ] = iter . next ( ) . getSource ( ) ; i ++ ; } remo... |
public class PrimitiveEntrySizeCalculator { /** * Returns a sun . misc . Unsafe . Suitable for use in a 3rd party package .
* Replace with a simple call to Unsafe . getUnsafe when integrating
* into a jdk .
* @ return a sun . misc . Unsafe */
static Unsafe getUnsafe ( ) { } } | try { return Unsafe . getUnsafe ( ) ; } catch ( SecurityException tryReflectionInstead ) { } try { return java . security . AccessController . doPrivileged ( new java . security . PrivilegedExceptionAction < Unsafe > ( ) { public Unsafe run ( ) throws Exception { Class < Unsafe > k = Unsafe . class ; for ( java . lang ... |
public class WTableRowRenderer { /** * The preparePaintComponent method has been overridden to ensure that expanded row renderers have been correctly
* initialised .
* Expanded row renderers are lazily instantiated and added to the shared structure as needed . This means for the
* first use of a renderer , it wil... | super . preparePaintComponent ( request ) ; Class < ? extends WComponent > rowRendererClass = getRowRendererClass ( ) ; if ( rowRendererClass != null && ! expandedRenderers . containsKey ( rowRendererClass ) ) { getExpandedTreeNodeRenderer ( rowRendererClass ) . preparePaint ( request ) ; } |
public class BundleUtils { /** * Returns a optional { @ link android . os . Parcelable } value . In other words , returns the value mapped by key if it exists and is a { @ link android . os . Parcelable } .
* The bundle argument is allowed to be { @ code null } . If the bundle is null , this method returns null .
*... | if ( bundle == null ) { return fallback ; } return bundle . getParcelable ( key ) ; |
public class Commands { /** * Constructs a list of string parameters for a metadata call .
* < p > The number of items is equal to the number of arguments once
* the command line ( the { @ code line } parameter ) has been parsed ,
* typically three ( catalog , schema , table name ) .
* < p > Parses the command ... | final List < Object > list = new ArrayList < > ( ) ; final String [ ] [ ] ret = sqlLine . splitCompound ( line ) ; String [ ] compound ; if ( ret == null || ret . length != 2 ) { if ( defaultValues [ defaultValues . length - 1 ] == null ) { throw new IllegalArgumentException ( sqlLine . loc ( "arg-usage" , ret == null ... |
public class RedisCache { /** * Removes the entry for a key only if currently mapped to a given value .
* This is equivalent to
* < pre >
* if ( map . containsKey ( key ) & amp ; & amp ; map . get ( key ) . equals ( value ) ) {
* map . remove ( key ) ;
* return true ;
* } else return false ; < / pre >
* e... | return rMap . remove ( key , value ) ; |
public class Streams { /** * Create a sliding view over this Stream
* < pre >
* { @ code
* List < List < Integer > > list = Streams . sliding ( Stream . of ( 1,2,3,4,5,6)
* , 2,1)
* . collect ( CyclopsCollectors . toList ( ) ) ;
* assertThat ( list . getValue ( 0 ) , hasItems ( 1,2 ) ) ;
* assertThat ( li... | final Iterator < T > it = stream . iterator ( ) ; final Mutable < PersistentList < T > > list = Mutable . of ( Seq . empty ( ) ) ; return Streams . stream ( new Iterator < Streamable < T > > ( ) { @ Override public boolean hasNext ( ) { return it . hasNext ( ) ; } @ Override public Streamable < T > next ( ) { for ( int... |
public class UnsafeBuffer { @ Override public short getShort ( final int index ) { } } | boundsCheck ( index , Bits . SHORT_SIZE_IN_BYTES ) ; short bits = MEM . getShort ( byteArray , addressOffset + index ) ; if ( NATIVE_BYTE_ORDER != PROTOCOL_BYTE_ORDER ) { bits = Short . reverseBytes ( bits ) ; } return bits ; |
public class JournalUpgrader { /** * Reads a journal via
* { @ code java - cp \
* assembly / server / target / alluxio - assembly - server - < ALLUXIO - VERSION > - jar - with - dependencies . jar \
* alluxio . master . journal . JournalUpgrader - master BlockMaster } .
* @ param args arguments passed to the to... | if ( ! parseInputArgs ( args ) ) { usage ( ) ; System . exit ( EXIT_FAILED ) ; } if ( sHelp ) { usage ( ) ; System . exit ( EXIT_SUCCEEDED ) ; } List < String > masters = new ArrayList < > ( ) ; for ( MasterFactory factory : ServiceUtils . getMasterServiceLoader ( ) ) { masters . add ( factory . getName ( ) ) ; } for (... |
public class AbcGrammar { /** * ifield - title : : = % 5B . % 54 . % 3A * WSP tex - text - ifield % 5D < p >
* < tt > [ T : second version ] < / tt > */
Rule IfieldTitle ( ) { } } | return Sequence ( String ( "[T:" ) , ZeroOrMore ( WSP ( ) ) . suppressNode ( ) , TexTextIfield ( ) , String ( "]" ) ) . label ( IfieldTitle ) ; |
public class GitHubConnector { /** * Must be called after # { createGitRepository ( ) } */
public void pushAllChangesToGit ( ) throws IOException { } } | if ( localRepository == null ) { throw new IOException ( "Git has not been created, call createGitRepositoryFirst" ) ; } try { UserService userService = new UserService ( ) ; userService . getClient ( ) . setOAuth2Token ( oAuthToken ) ; User user = userService . getUser ( ) ; String name = user . getLogin ( ) ; String ... |
public class ReleaseHostsRequest { /** * The IDs of the Dedicated Hosts to release .
* @ return The IDs of the Dedicated Hosts to release . */
public java . util . List < String > getHostIds ( ) { } } | if ( hostIds == null ) { hostIds = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return hostIds ; |
public class WaitForState { /** * Waits for the element to be present . The provided wait time will be used
* and if the element isn ' t present after that time , it will fail , and log
* the issue with a screenshot for traceability and added debugging support .
* @ param seconds - how many seconds to wait for */... | try { double timeTook = elementPresent ( seconds ) ; checkPresent ( seconds , timeTook ) ; } catch ( TimeoutException e ) { checkPresent ( seconds , seconds ) ; } |
public class CmsFavoriteEntry { /** * Prepares the CmsObject for jumping to this favorite location , and returns the appropriate URL .
* @ param cms the CmsObject to initialize for jumping to the favorite
* @ return the link for the favorite location
* @ throws CmsException if something goes wrong */
public Strin... | CmsResourceFilter filter = CmsResourceFilter . IGNORE_EXPIRATION ; CmsProject project = null ; switch ( getType ( ) ) { case explorerFolder : CmsResource folder = cms . readResource ( getStructureId ( ) , filter ) ; project = cms . readProject ( getProjectId ( ) ) ; cms . getRequestContext ( ) . setSiteRoot ( getSiteRo... |
public class IdScriptableObject { /** * ' thisObj ' will be null if invoked as constructor , in which case
* * instance of Scriptable should be returned . */
@ Override public Object execIdCall ( IdFunctionObject f , Context cx , Scriptable scope , Scriptable thisObj , Object [ ] args ) { } } | throw f . unknown ( ) ; |
public class UpdateTaskRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateTaskRequest updateTaskRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateTaskRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateTaskRequest . getTaskArn ( ) , TASKARN_BINDING ) ; protocolMarshaller . marshall ( updateTaskRequest . getOptions ( ) , OPTIONS_BINDING ) ; protocolMarshaller . ... |
public class ConcatVector { /** * Sets a component to a set of sparse indices , each with a value .
* @ param component the index of the component to set
* @ param indices the indices of the vector to give values to
* @ param values their values */
public void setSparseComponent ( int component , int [ ] indices ... | if ( component >= pointers . length ) { increaseSizeTo ( component + 1 ) ; } assert ( indices . length == values . length ) ; if ( indices . length == 0 ) { pointers [ component ] = new double [ 2 ] ; sparse [ component ] = true ; copyOnWrite [ component ] = false ; } else { double [ ] sparseInfo = new double [ indices... |
public class TemporalProperty { /** * Sets the value of the property at the specified time .
* For internal and test use only . < p / >
* Values are assumed to be set in chronological order .
* @ param effectiveFrom
* @ param value */
void set ( Instant effectiveFrom , T value ) { } } | T oldValue = get ( ) ; values . put ( effectiveFrom , value ) ; notifyListeners ( oldValue , value ) ; |
public class techsupport { /** * < pre >
* Use this operation to generate technical support archive .
* < / pre > */
public static techsupport [ ] start ( nitro_service client , techsupport resource ) throws Exception { } } | return ( ( techsupport [ ] ) resource . perform_operation ( client , "start" ) ) ; |
public class RPCHelper { public static < I , T extends I > void registerMethod ( final Method method , final T instance , final RSBLocalServer server ) throws CouldNotPerformException { } } | // synchronized ( syncObject ) {
// if ( ! methodCountMap . containsKey ( method . getName ( ) ) ) {
// methodCountMap . put ( method . getName ( ) , 0 ) ;
// methodCountMap . put ( method . getName ( ) , methodCountMap . get ( method . getName ( ) ) + 1 ) ;
// int sum = 0;
// for ( Integer value : methodCountMap . val... |
public class StandardBullhornData { /** * Makes the " entity " api call for getting multiple entities .
* HTTP Method : GET
* @ param type
* @ param idList
* @ param fieldSet
* @ param params
* @ param < L >
* @ param < T >
* @ return */
protected < L extends ListWrapper < T > , T extends BullhornEntity... | String ids = idList . stream ( ) . map ( id -> String . valueOf ( id ) ) . collect ( Collectors . joining ( "," ) ) ; Map < String , String > uriVariables = restUriVariablesFactory . getUriVariablesForGetMultiple ( BullhornEntityInfo . getTypesRestEntityName ( type ) , ids , fieldSet , params ) ; String url = restUrlFa... |
public class JobMasterId { /** * If the given uuid is null , this returns null , otherwise a JobMasterId that
* corresponds to the UUID , via { @ link # JobMasterId ( UUID ) } . */
public static JobMasterId fromUuidOrNull ( @ Nullable UUID uuid ) { } } | return uuid == null ? null : new JobMasterId ( uuid ) ; |
public class Cells { /** * Returns the { @ code Byte [ ] } value of the { @ link Cell } ( associated to { @ code table } ) whose name iscellName , or null
* if this Cells object contains no cell whose name is cellName .
* @ param nameSpace the name of the owning table
* @ param cellName the name of the Cell we wa... | return getValue ( nameSpace , cellName , Byte [ ] . class ) ; |
public class DbRemoteConfigLoader { /** * 覆盖本地application . yml文件
* @ param content 文件内容 */
private void overrideLocalCanalConfig ( String content ) { } } | try ( OutputStreamWriter writer = new OutputStreamWriter ( new FileOutputStream ( CommonUtils . getConfPath ( ) + "application.yml" ) , StandardCharsets . UTF_8 ) ) { writer . write ( content ) ; writer . flush ( ) ; } catch ( Exception e ) { logger . error ( e . getMessage ( ) , e ) ; } |
public class SlotManager { /** * Starts the slot manager with the given leader id and resource manager actions .
* @ param newResourceManagerId to use for communication with the task managers
* @ param newMainThreadExecutor to use to run code in the ResourceManager ' s main thread
* @ param newResourceActions to ... | LOG . info ( "Starting the SlotManager." ) ; this . resourceManagerId = Preconditions . checkNotNull ( newResourceManagerId ) ; mainThreadExecutor = Preconditions . checkNotNull ( newMainThreadExecutor ) ; resourceActions = Preconditions . checkNotNull ( newResourceActions ) ; started = true ; taskManagerTimeoutCheck =... |
public class ICUResourceBundle { /** * Fills some of the keys array with the keys on the path to this resource object .
* Writes the top - level key into index 0 and increments from there .
* @ param keys
* @ param depth must be { @ link # getResDepth ( ) } */
private void getResPathKeys ( String [ ] keys , int d... | ICUResourceBundle b = this ; while ( depth > 0 ) { keys [ -- depth ] = b . key ; b = b . container ; assert ( depth == 0 ) == ( b . container == null ) ; } |
public class StandardBullhornData { /** * Makes the " entity " api call for getting entities .
* HTTP Method : GET
* @ param type
* @ param id
* @ param fieldSet
* @ param params optional entity parameters
* @ return */
protected < T extends BullhornEntity > T handleGetEntity ( Class < T > type , Integer id... | Map < String , String > uriVariables = restUriVariablesFactory . getUriVariablesForEntity ( BullhornEntityInfo . getTypesRestEntityName ( type ) , id , fieldSet , params ) ; String url = restUrlFactory . assembleEntityUrl ( params ) ; String jsonString = this . performGetRequest ( url , String . class , uriVariables ) ... |
public class MarkupEngine { /** * Process the header of the file .
* @ param context the parser context */
private void processDefaultHeader ( ParserContext context ) { } } | for ( String line : context . getFileLines ( ) ) { if ( hasHeaderSeparator ( line ) ) { break ; } processHeaderLine ( line , context . getDocumentModel ( ) ) ; } |
public class GVRCursorController { /** * Get the latest { @ link MotionEvent } processed by the
* { @ link GVRCursorController } if there is one ( not all
* { @ link GVRCursorController } s report { @ link MotionEvent } s )
* Note that this function also returns a null . To get every
* { @ link MotionEvent } re... | synchronized ( eventLock ) { if ( processedMotionEvent . isEmpty ( ) ) { return null ; } else { return MotionEvent . obtain ( processedMotionEvent . get ( processedMotionEvent . size ( ) - 1 ) ) ; } } |
public class CmsJspContentAccessValueWrapper { /** * Factory method to create a new XML content value wrapper . < p >
* In case either parameter is < code > null < / code > , the { @ link # NULL _ VALUE _ WRAPPER } is returned . < p >
* @ param cms the current users OpenCms context
* @ param value the value to wa... | if ( ( value != null ) && ( cms != null ) ) { return new CmsJspContentAccessValueWrapper ( cms , value ) ; } if ( ( parentValue != null ) && ( valueName != null ) && ( cms != null ) ) { CmsJspContentAccessValueWrapper wrapper = new CmsJspContentAccessValueWrapper ( ) ; wrapper . m_nullValueInfo = new NullValueInfo ( pa... |
public class Operation { /** * Executes the operation using the parent { @ link Resource } ' s { @ link OkHttpClient } ,
* sending any given { @ link Params } and automatically deserializes the result into
* an instance of the given generic type reference .
* @ param typeRef The generic { @ link TypeReference } o... | InputStream stream = preprocess ( roundtrip ( ) ) ; if ( stream == null ) { return null ; } try { return serializer . deserialize ( stream , typeRef ) ; } finally { stream . close ( ) ; } |
public class GeneratorRegistry { /** * Returns the PathMapping for the generated resource
* @ param bundle
* the bundle
* @ param path
* the generated path
* @ param rsReader
* the resource reader handler
* @ return the PathMapping for the generated resource */
public List < PathMapping > getGeneratedPath... | List < PathMapping > pathMappings = null ; ResourceGenerator resourceGenerator = getResourceGenerator ( path ) ; if ( resourceGenerator instanceof PathMappingProvider ) { pathMappings = ( ( PathMappingProvider ) resourceGenerator ) . getPathMappings ( bundle , path , rsReader ) ; } return pathMappings ; |
public class LUDecompositionBase_ZDRM { /** * Writes the lower triangular matrix into the specified matrix .
* @ param lower Where the lower triangular matrix is written to . */
@ Override public ZMatrixRMaj getLower ( ZMatrixRMaj lower ) { } } | int numRows = LU . numRows ; int numCols = LU . numRows < LU . numCols ? LU . numRows : LU . numCols ; lower = UtilDecompositons_ZDRM . checkZerosUT ( lower , numRows , numCols ) ; for ( int i = 0 ; i < numCols ; i ++ ) { lower . set ( i , i , 1.0 , 0.0 ) ; for ( int j = 0 ; j < i ; j ++ ) { int indexLU = LU . getIndex... |
public class RsaUtil { /** * 根据私钥字符串获取私钥
* Only RSAPrivate ( Crt ) KeySpec and PKCS8EncodedKeySpec supported for RSA private keys
* @ param privateKey
* @ return */
public PrivateKey getPrivateKey_PKCS8Encoded ( byte [ ] keyBytes ) { } } | try { PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec ( keyBytes ) ; KeyFactory keyFactory = KeyFactory . getInstance ( algorithm ) ; return keyFactory . generatePrivate ( spec ) ; } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; } return null ; |
public class Neighbour { /** * Sends the proxy subscriptions to this Neighbour .
* Pulls all the subscriptions that have been sent to this
* Bus and builds a message that will be sent to this Neighbour .
* @ exception SIResourceException */
void sendResetProxySubscriptions ( ) throws SIResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendResetProxySubscriptions" ) ; // Generate the subscription message that will be sent to this neighbour .
SubscriptionMessage message = iBusGroup . generateResetSubscriptionMessage ( ) ; if ( message != null ) // Send to ... |
public class RObjectsPanel { /** * < / editor - fold > / / GEN - END : initComponents */
private void _addActionPerformed ( java . awt . event . ActionEvent evt ) { } } | // GEN - FIRST : event _ _ addActionPerformed
JFileChooser fc = new JFileChooser ( ) ; fc . setMultiSelectionEnabled ( true ) ; fc . setFileSelectionMode ( JFileChooser . FILES_ONLY ) ; fc . setFileFilter ( new FileFilter ( ) { @ Override public boolean accept ( File f ) { return f . isDirectory ( ) || f . getName ( ) ... |
public class Bytes { /** * Encode to uppercase hexadecimal */
public static String toHexUpper ( byte [ ] b , int off , int len ) { } } | return toHex ( b , off , len , HEX_UPPER_CHAR ) ; |
public class RecurrenceIteratorFactory { /** * Creates a recurrence iterator from an RRULE .
* @ param rrule the recurrence rule
* @ param dtStart the start date of the series
* @ param tzid the timezone that the start date is in , as well as the
* timezone to iterate in
* @ return the iterator */
public stat... | Frequency freq = rrule . getFrequency ( ) ; /* * If the given RRULE is malformed and does not have a frequency
* specified , default to " yearly " . */
if ( freq == null ) { freq = Frequency . YEARLY ; } DayOfWeek wkst = rrule . getWorkweekStarts ( ) ; ICalDate until = rrule . getUntil ( ) ; DateValue untilUtc = ( un... |
public class SQLService { /** * Gets all of the column names for a result meta data
* @ param rsmd Resultset metadata
* @ return Array of column names
* @ throws Exception exception */
private String [ ] getColumnNames ( ResultSetMetaData rsmd ) throws Exception { } } | ArrayList < String > names = new ArrayList < String > ( ) ; // Get result set meta data
int numColumns = rsmd . getColumnCount ( ) ; // Get the column names ; column indices start from 1
for ( int i = 1 ; i < numColumns + 1 ; i ++ ) { String columnName = rsmd . getColumnName ( i ) ; names . add ( columnName ) ; } retur... |
public class Log { /** * Log throwable with message and stack trace according to the logging level
* settings , as in log4j and slf4j . This is probably not what you expect .
* @ param msg
* @ param t
* @ deprecated Use { @ link # warn ( Throwable , String , Object . . . ) } to clarify that
* you want the sta... | log . warn ( msg , t ) ; |
public class HTMLParser { /** * / * ( non - Javadoc )
* @ see spark . protocol . parser . ResultParser # parse ( spark . api . Command , java . io . InputStream , spark . protocol . ProtocolCommand . ResultType ) */
@ Override public Result parse ( Command cmd , InputStream input , ResultType type ) throws SparqlExce... | BufferedReader br = null ; try { // Expected type should already be validated by ResultFactory , check anyways .
if ( type != null && type != ResultType . ASK ) { throw new SparqlException ( "Unexpected result type; expected " + type + " but found ASK." ) ; } char [ ] buf = new char [ BUFFER_LEN ] ; // TODO : Find the ... |
public class DimensionValuesWithAttributes { /** * The attribute that applies to a specific < code > Dimension < / code > .
* @ param attributes
* The attribute that applies to a specific < code > Dimension < / code > .
* @ return Returns a reference to this object so that method calls can be chained together . *... | setAttributes ( attributes ) ; return this ; |
public class HeartbeatImpl { /** * received a join from this server . Used to update external IPs . */
private void joinSelf ( ServerHeartbeat server , String extAddress , int extPort , String address , int port , String serverHash ) { } } | if ( server != _serverSelf ) { throw new IllegalStateException ( L . l ( "Invalid self: {0} vs {1}" , server , _serverSelf ) ) ; } if ( ! serverHash . equals ( _serverSelf . getMachineHash ( ) ) ) { throw new IllegalStateException ( L . l ( "Invalid server hash {0} against {1}:{2}({3})" , _serverSelf , address , port ,... |
public class InjectorBuilder { /** * Iterator through all elements of the current module and write the output of the
* ElementVisitor to the logger at debug level . ' null ' responses are ignored
* @ param visitor
* @ deprecated Use forEachElement ( visitor , message - & gt ; LOG . debug ( message ) ) ; instead *... | return forEachElement ( visitor , message -> LOG . debug ( message ) ) ; |
public class StopTransformJobRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( StopTransformJobRequest stopTransformJobRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( stopTransformJobRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( stopTransformJobRequest . getTransformJobName ( ) , TRANSFORMJOBNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall req... |
public class TasksImpl { /** * Reactivates a task , allowing it to run again even if its retry count has been exhausted .
* Reactivation makes a task eligible to be retried again up to its maximum retry count . The task ' s state is changed to active . As the task is no longer in the completed state , any previous ex... | reactivateWithServiceResponseAsync ( jobId , taskId , taskReactivateOptions ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class EhcacheCachingProvider { /** * { @ inheritDoc } */
@ Override public CacheManager getCacheManager ( URI uri , ClassLoader classLoader , Properties properties ) { } } | uri = uri == null ? getDefaultURI ( ) : uri ; classLoader = classLoader == null ? getDefaultClassLoader ( ) : classLoader ; properties = properties == null ? new Properties ( ) : cloneProperties ( properties ) ; if ( URI_DEFAULT . equals ( uri ) ) { URI override = DefaultConfigurationResolver . resolveConfigURI ( prope... |
public class WatchTimeout { /** * Returns a reasonable timeout duration for a watch request .
* @ param expectedTimeoutMillis timeout duration that a user wants to use , in milliseconds
* @ param bufferMillis buffer duration which needs to be added , in milliseconds
* @ return timeout duration in milliseconds , b... | checkArgument ( expectedTimeoutMillis > 0 , "expectedTimeoutMillis: %s (expected: > 0)" , expectedTimeoutMillis ) ; checkArgument ( bufferMillis >= 0 , "bufferMillis: %s (expected: > 0)" , bufferMillis ) ; final long timeout = Math . min ( expectedTimeoutMillis , MAX_MILLIS ) ; if ( bufferMillis == 0 ) { return timeout... |
public class RoleManager { /** * Sets the { @ link java . awt . Color Color } of the selected { @ link net . dv8tion . jda . core . entities . Role Role } .
* @ param color
* The new color for the selected { @ link net . dv8tion . jda . core . entities . Role Role }
* @ return RoleManager for chaining convenience... | this . color = color == null ? Role . DEFAULT_COLOR_RAW : color . getRGB ( ) ; set |= COLOR ; return this ; |
public class SampleRace { /** * Animated path
* @ since 6.0.2 */
private MilestoneManager getAnimatedPathManager ( final MilestoneLister pMilestoneLister ) { } } | final Paint slicePaint = getStrokePaint ( COLOR_POLYLINE_ANIMATED , LINE_WIDTH_BIG ) ; return new MilestoneManager ( pMilestoneLister , new MilestoneLineDisplayer ( slicePaint ) ) ; |
public class AgentsAlreadyRunningAssessmentException { /** * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAgents ( java . util . Collection ) } or { @ link # withAgents ( java . util . Collection ) } if you want to override the
* existing values .
* @ p... | if ( this . agents == null ) { setAgents ( new java . util . ArrayList < AgentAlreadyRunningAssessment > ( agents . length ) ) ; } for ( AgentAlreadyRunningAssessment ele : agents ) { this . agents . add ( ele ) ; } return this ; |
public class ADocWithTaxesPayments { /** * < p > Setter for payByDate . < / p >
* @ param pPayByDate reference */
public final void setPayByDate ( final Date pPayByDate ) { } } | if ( pPayByDate == null ) { this . payByDate = null ; } else { this . payByDate = new Date ( pPayByDate . getTime ( ) ) ; } |
public class OutputPanel { /** * This method initializes this */
private void initialize ( ) { } } | this . setLayout ( new BorderLayout ( ) ) ; this . setName ( Constant . messages . getString ( "output.panel.title" ) ) ; // ZAP : i18n
if ( Model . getSingleton ( ) . getOptionsParam ( ) . getViewParam ( ) . getWmUiHandlingOption ( ) == 0 ) { this . setSize ( 243 , 119 ) ; } // ZAP : Added Output ( doc ) icon
this . s... |
public class JobConf { /** * Get the key class for the map output data . If it is not set , use the
* ( final ) output key class . This allows the map output key class to be
* different than the final output key class .
* @ return the map output key class . */
public Class < ? > getMapOutputKeyClass ( ) { } } | Class < ? > retv = getClass ( "mapred.mapoutput.key.class" , null , Object . class ) ; if ( retv == null ) { retv = getOutputKeyClass ( ) ; } return retv ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcWasteTerminalType ( ) { } } | if ( ifcWasteTerminalTypeEClass == null ) { ifcWasteTerminalTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 643 ) ; } return ifcWasteTerminalTypeEClass ; |
public class AmazonEC2Client { /** * Gets information about the route table propagations for the specified transit gateway route table .
* @ param getTransitGatewayRouteTablePropagationsRequest
* @ return Result of the GetTransitGatewayRouteTablePropagations operation returned by the service .
* @ sample AmazonEC... | request = beforeClientExecution ( request ) ; return executeGetTransitGatewayRouteTablePropagations ( request ) ; |
public class ASTHelpers { /** * Returns the modifiers tree of the given class , method , or variable declaration . */
@ Nullable public static ModifiersTree getModifiers ( Tree tree ) { } } | if ( tree instanceof ClassTree ) { return ( ( ClassTree ) tree ) . getModifiers ( ) ; } else if ( tree instanceof MethodTree ) { return ( ( MethodTree ) tree ) . getModifiers ( ) ; } else if ( tree instanceof VariableTree ) { return ( ( VariableTree ) tree ) . getModifiers ( ) ; } else { return null ; } |
public class ScoreKeeper { /** * Based on the given array of ScoreKeeper and stopping criteria should we stop early ? */
public static boolean stopEarly ( ScoreKeeper [ ] sk , int k , boolean classification , StoppingMetric criterion , double rel_improvement , String what , boolean verbose ) { } } | if ( k == 0 ) return false ; int len = sk . length - 1 ; // how many " full " / " conservative " scoring events we have ( skip the first )
if ( len < 2 * k ) return false ; // need at least k for SMA and another k to tell whether the model got better or not
if ( criterion == StoppingMetric . AUTO ) { criterion = classi... |
public class ReplaceIamInstanceProfileAssociationRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < ReplaceIamInstanceProfileAssociationRequest > getDryRunRequest ( ) { } } | Request < ReplaceIamInstanceProfileAssociationRequest > request = new ReplaceIamInstanceProfileAssociationRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcFaceOuterBound ( ) { } } | if ( ifcFaceOuterBoundEClass == null ) { ifcFaceOuterBoundEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 223 ) ; } return ifcFaceOuterBoundEClass ; |
public class XmlIOFactoryUtil { /** * Loads a class from the classloader ;
* If not found , the classloader of the { @ code context } class specified will be used .
* If the flag { @ code checkParent } is true , the classloader ' s parent is included in
* the lookup . */
static Class < ? > loadClass ( String clas... | Class < ? > clazz = null ; try { clazz = Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { if ( context != null ) { ClassLoader loader = context . getClassLoader ( ) ; while ( loader != null ) { try { clazz = loader . loadClass ( className ) ; retu... |
public class RequestUtil { /** * Checks if the input stream of the given request is nor isn ' t consumed . This method is backwards - compatible with Servlet 2 . x ,
* as in Servlet 3 . x there is a " isFinished " method .
* @ param request a { @ code HttpServletRequest } , never { @ code null }
* @ return { @ co... | try { ServletInputStream servletInputStream = request . getInputStream ( ) ; // in servlet > = 3.0 , available will throw an exception ( while previously it didn ' t )
return request . getContentLength ( ) != 0 && servletInputStream . available ( ) > 0 ; } catch ( IOException e ) { return false ; } |
public class TermStatementUpdate { /** * Adds labels to the item
* @ param labels
* the labels to add */
protected void processLabels ( List < MonolingualTextValue > labels ) { } } | for ( MonolingualTextValue label : labels ) { String lang = label . getLanguageCode ( ) ; NameWithUpdate currentValue = newLabels . get ( lang ) ; if ( currentValue == null || ! currentValue . value . equals ( label ) ) { newLabels . put ( lang , new NameWithUpdate ( label , true ) ) ; // Delete any alias that matches ... |
public class SimpleAttributeDefinition { /** * Marshalls the value from the given { @ code resourceModel } as an xml attribute , if it
* { @ link # isMarshallable ( org . jboss . dmr . ModelNode , boolean ) is marshallable } .
* @ param resourceModel the model , a non - null node of { @ link org . jboss . dmr . Mod... | getMarshaller ( ) . marshallAsAttribute ( this , resourceModel , marshallDefault , writer ) ; |
public class Query { /** * Set an array parameter . < br >
* For example :
* < pre >
* createQuery ( " SELECT * FROM user WHERE id IN ( : ids ) " )
* . addParameter ( " ids " , 4 , 5 , 6)
* . executeAndFetch ( . . . )
* < / pre >
* will generate the query : < code > SELECT * FROM user WHERE id IN ( 4,5,6 ... | if ( values == null ) { throw new NullPointerException ( "Array parameter cannot be null" ) ; } addParameterInternal ( name , new ParameterSetter ( values . length ) { @ Override public void setParameter ( int paramIdx , PreparedStatement statement ) throws SQLException { if ( values . length == 0 ) { getConnection ( )... |
public class GraphHelper { /** * Remove the specified AtlasVertex from the graph .
* @ param vertex */
public void removeVertex ( AtlasVertex vertex ) { } } | String vertexString = null ; if ( LOG . isDebugEnabled ( ) ) { vertexString = string ( vertex ) ; LOG . debug ( "Removing {}" , vertexString ) ; } graph . removeVertex ( vertex ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . info ( "Removed {}" , vertexString ) ; } |
public class NotificationsHandlerFactory { /** * Return a handler for the system event
* @ param queueName our queue
* @ param pr jms properties
* @ return NotificationsHandler
* @ throws NotificationException */
private static NotificationsHandler getHandler ( final String queueName , final Properties pr ) thr... | if ( handler != null ) { return handler ; } synchronized ( synchit ) { handler = new JmsNotificationsHandlerImpl ( queueName , pr ) ; } return handler ; |
public class MathoidConverter { /** * Returns true if the Mathoid service is reachable , otherwise false .
* @ return */
public boolean isReachable ( ) { } } | try { URL url = new URL ( mathoidConfig . getUrl ( ) + "/mml" ) ; SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory ( ) ; ClientHttpRequest req = factory . createRequest ( url . toURI ( ) , HttpMethod . POST ) ; req . execute ( ) ; return true ; } catch ( Exception e ) { return false ; } |
public class AsyncHttpJoinConverter { /** * Convert an input record to a future object where an output record will be filled in sometime later
* Sequence :
* Convert input ( DI ) to an http request
* Send http request asynchronously , and registers an http callback
* Create an { @ link CompletableFuture } objec... | // Convert DI to HttpOperation
HttpOperation operation = generateHttpOperation ( inputRecord , workUnitState ) ; BufferedRecord < GenericRecord > bufferedRecord = new BufferedRecord < > ( operation , WriteCallback . EMPTY ) ; // Convert HttpOperation to RQ
Queue < BufferedRecord < GenericRecord > > buffer = new LinkedB... |
public class CurvedArrow { /** * Draws the arrow on the indicated graphics environment .
* @ param g
* the graphics to draw this arrow upon */
public void draw ( Graphics2D g ) { } } | if ( needsRefresh ) refreshCurve ( ) ; g . draw ( curve ) ; // Draws the main part of the arrow .
drawArrow ( g , end , control ) ; // Draws the arrow head .
drawText ( g ) ; |
public class JMSServices { /** * Sends a JMS text message to a local queue .
* @ param queueName
* local queues are based on logical queue names
* @ param message
* the message string
* @ param delaySeconds
* 0 for immediate
* @ throws ServiceLocatorException */
public void sendTextMessage ( String queueN... | sendTextMessage ( null , queueName , message , delaySeconds , null ) ; |
public class DistinguishedNameParser { /** * see http : / / www . unicode . org for UTF - 8 bit distribution table */
private char getUTF8 ( ) { } } | int res = getByte ( pos ) ; pos ++ ; // FIXME tmp
if ( res < 128 ) { // one byte : 0-7F
return ( char ) res ; } else if ( res >= 192 && res <= 247 ) { int count ; if ( res <= 223 ) { // two bytes : C0 - DF
count = 1 ; res = res & 0x1F ; } else if ( res <= 239 ) { // three bytes : E0 - EF
count = 2 ; res = res & 0x0F ; ... |
public class Tree { /** * Actually build the tree */
@ Override public void compute2 ( ) { } } | if ( Job . isRunning ( _jobKey ) ) { Timer timer = new Timer ( ) ; _stats [ 0 ] = new ThreadLocal < hex . singlenoderf . Statistic > ( ) ; _stats [ 1 ] = new ThreadLocal < hex . singlenoderf . Statistic > ( ) ; Data d = _sampler . sample ( _data , _seed , _modelKey , _local_mode ) ; hex . singlenoderf . Statistic left ... |
public class DatabaseTableConfig { /** * Extract the field types from the fieldConfigs if they have not already been configured . */
public void extractFieldTypes ( DatabaseType databaseType ) throws SQLException { } } | if ( fieldTypes == null ) { if ( fieldConfigs == null ) { fieldTypes = extractFieldTypes ( databaseType , dataClass , tableName ) ; } else { fieldTypes = convertFieldConfigs ( databaseType , tableName , fieldConfigs ) ; } } |
public class CommerceWarehousePersistenceImpl { /** * Returns a range of all the commerce warehouses where groupId = & # 63 ; and active = & # 63 ; and primary = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < ... | return findByG_A_P ( groupId , active , primary , start , end , null ) ; |
public class DockerImageComboStepFileCallable { /** * Try to clean as much as we can without throwing errors . */
private void invokeCleanup ( DockerClient client , List < String > builtImages , @ Nonnull Set < String > containers ) { } } | PrintStream llog = taskListener . getLogger ( ) ; if ( cleanupDangling ) { for ( String containerId : containers ) { try { client . removeImageCmd ( containerId ) . exec ( ) ; llog . printf ( "Removed dangling layer image %s.%n" , containerId ) ; LOG . debug ( "Removed dangling layer image '{}'" , containerId ) ; } cat... |
public class TargetHostsBuilder { /** * get target hosts from line by line .
* @ param sourcePath
* the source path
* @ param sourceType
* the source type
* @ return the list
* @ throws TargetHostsLoadException
* the target hosts load exception */
@ Override public List < String > setTargetHostsFromLineBy... | List < String > targetHosts = new ArrayList < String > ( ) ; try { String content = getContentFromPath ( sourcePath , sourceType ) ; targetHosts = setTargetHostsFromString ( content ) ; } catch ( IOException e ) { throw new TargetHostsLoadException ( "IEException when reading " + sourcePath , e ) ; } return targetHost... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.