signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class JobFile { /** * ( non - Javadoc )
* @ see org . apache . hadoop . io . Writable # readFields ( java . io . DataInput ) */
@ Override public void readFields ( DataInput in ) throws IOException { } } | this . filename = Text . readString ( in ) ; this . jobid = Text . readString ( in ) ; this . isJobConfFile = in . readBoolean ( ) ; this . isJobHistoryFile = in . readBoolean ( ) ; |
public class UnsyncStack { /** * Removes the object at the top of this stack and returns that object as the
* value of this function .
* @ return The object at the top of this stack ( the last item of the
* < tt > ArrayList < / tt > object ) .
* @ exception EmptyStackException if this stack is empty . */
public... | E obj ; int len = size ( ) ; obj = peek ( ) ; remove ( len - 1 ) ; return obj ; |
public class RetryingCacheInvoker { /** * { @ inheritDoc }
* @ see org . jboss . as . clustering . infinispan . invoker . CacheInvoker # invoke ( org . infinispan . Cache , org . jboss . as . clustering . infinispan . invoker . CacheInvoker . Operation ) */
@ Override public < K , V , R > R invoke ( Cache < K , V > c... | Flag [ ] attemptFlags = null ; // attemptFlags = allFlags - Flag . FAIL _ SILENTLY
if ( ( allFlags != null ) && ( allFlags . length > 0 ) ) { Set < Flag > flags = EnumSet . noneOf ( Flag . class ) ; flags . addAll ( Arrays . asList ( allFlags ) ) ; flags . remove ( Flag . FAIL_SILENTLY ) ; attemptFlags = flags . toArra... |
public class ConnectedComponents { public static void main ( String ... args ) throws Exception { } } | // Checking input parameters
final ParameterTool params = ParameterTool . fromArgs ( args ) ; // set up execution environment
ExecutionEnvironment env = ExecutionEnvironment . getExecutionEnvironment ( ) ; final int maxIterations = params . getInt ( "iterations" , 10 ) ; // make parameters available in the web interfac... |
public class ModifyRuleRequest { /** * The conditions . Each condition specifies a field name and a single value .
* If the field name is < code > host - header < / code > , you can specify a single host name ( for example , my . example . com ) .
* A host name is case insensitive , can be up to 128 characters in l... | if ( this . conditions == null ) { setConditions ( new java . util . ArrayList < RuleCondition > ( conditions . length ) ) ; } for ( RuleCondition ele : conditions ) { this . conditions . add ( ele ) ; } return this ; |
public class TagUtils { /** * String - - > long
* @ param value
* @ return */
public static float getFloat ( Object value ) { } } | if ( value == null ) { return 0 ; } return Float . valueOf ( value . toString ( ) ) . floatValue ( ) ; |
public class PlayJUnit4Provider { /** * Copy of AbstractPlayMojo . getPlayHome ( ) method ( with getCanonicalPath ( ) changed to getAbsolutePath ( ) ) */
private File getPlayHome ( File applicationPath ) throws TestSetFailedException { } } | File targetDir = new File ( applicationPath , "target" ) ; File playTmpDir = new File ( targetDir , "play" ) ; File playTmpHomeDir = new File ( playTmpDir , "home" ) ; if ( ! playTmpHomeDir . exists ( ) ) { throw new TestSetFailedException ( String . format ( "Play! home directory \"%s\" does not exist" , playTmpHomeDi... |
public class TypicalFaihyApiFailureHook { protected FaihyFailureErrorPart createSimpleError ( String field , String code , String serverManaged ) { } } | return newFailureErrorPart ( field , code , Collections . emptyMap ( ) , serverManaged ) ; |
public class AmazonPinpointEmailClient { /** * Delete a dedicated IP pool .
* @ param deleteDedicatedIpPoolRequest
* A request to delete a dedicated IP pool .
* @ return Result of the DeleteDedicatedIpPool operation returned by the service .
* @ throws NotFoundException
* The resource you attempted to access ... | request = beforeClientExecution ( request ) ; return executeDeleteDedicatedIpPool ( request ) ; |
public class SimulatedTaskRunner { /** * Add the specified TaskInProgress to the priority queue of tasks to finish .
* @ param tip
* @ param umbilicalProtocol */
protected void addTipToFinish ( TaskInProgress tip , TaskUmbilicalProtocol umbilicalProtocol ) { } } | long currentTime = System . currentTimeMillis ( ) ; long finishTime = currentTime + Math . abs ( rand . nextLong ( ) ) % timeToFinishTask ; LOG . info ( "Adding TIP " + tip . getTask ( ) . getTaskID ( ) + " to finishing queue with start time " + currentTime + " and finish time " + finishTime + " (" + ( ( finishTime - c... |
public class DataSink { /** * Sorts each local partition of a { @ link org . apache . flink . api . java . tuple . Tuple } data set
* on the specified field in the specified { @ link Order } before it is emitted by the output format .
* < p > < b > Note : Only tuple data sets can be sorted using integer field indic... | // get flat keys
Keys . ExpressionKeys < T > ek = new Keys . ExpressionKeys < > ( field , this . type ) ; int [ ] flatKeys = ek . computeLogicalKeyPositions ( ) ; if ( ! Keys . ExpressionKeys . isSortKey ( field , this . type ) ) { throw new InvalidProgramException ( "Selected sort key is not a sortable type" ) ; } if ... |
public class ExtjsConditionManager { /** * add each message to MessageBoxFailCondition
* @ param messages messages
* @ return this */
public ExtjsConditionManager addFailConditions ( String ... messages ) { } } | for ( String message : messages ) { if ( message != null && message . length ( ) > 0 ) { this . add ( new MessageBoxFailCondition ( message ) ) ; } } return this ; |
public class CheapIntMap { /** * Returns the number of mappings in this table . */
public int size ( ) { } } | int size = 0 ; for ( int ii = 0 , ll = _keys . length ; ii < ll ; ii ++ ) { if ( _keys [ ii ] != - 1 ) { size ++ ; } } return size ; |
public class DistributedLock { /** * 尝试获取锁对象 , 不会阻塞
* @ throws InterruptedException
* @ throws KeeperException */
public boolean tryLock ( ) throws KeeperException { } } | // 可能初始化的时候就失败了
if ( exception != null ) { throw exception ; } if ( isOwner ( ) ) { // 锁重入
return true ; } acquireLock ( null ) ; if ( exception != null ) { unlock ( ) ; throw exception ; } if ( interrupt != null ) { unlock ( ) ; Thread . currentThread ( ) . interrupt ( ) ; } if ( other != null ) { unlock ( ) ; throw n... |
public class Stock { /** * Requests the historical quotes for this stock with the following characteristics .
* < ul >
* < li > from : specified value
* < li > to : today ( default )
* < li > interval : MONTHLY ( default )
* < / ul >
* @ param from start date of the historical data
* @ return a list of hi... | return this . getHistory ( from , HistQuotesRequest . DEFAULT_TO ) ; |
public class RBBINode { /** * / CLOVER : OFF */
static void printNode ( RBBINode n ) { } } | if ( n == null ) { System . out . print ( " -- null --\n" ) ; } else { RBBINode . printInt ( n . fSerialNum , 10 ) ; RBBINode . printString ( nodeTypeNames [ n . fType ] , 11 ) ; RBBINode . printInt ( n . fParent == null ? 0 : n . fParent . fSerialNum , 11 ) ; RBBINode . printInt ( n . fLeftChild == null ? 0 : n . fLef... |
public class StorableGenerator { /** * Loads the property value of the current storable onto the stack . If the
* property is derived the read method is used , otherwise it just loads the
* value from the appropriate field .
* entry stack : [
* exit stack : [ value
* @ param b - { @ link CodeBuilder } to whic... | loadThisProperty ( b , property , TypeDesc . forClass ( property . getType ( ) ) ) ; |
public class MemcachedBackupSession { /** * { @ inheritDoc } */
@ Override public Object getAttribute ( final String name ) { } } | if ( filterAttribute ( name ) ) { _attributesAccessed = true ; } return super . getAttribute ( name ) ; |
public class ReaderFactory { /** * Create a Reader for the given URL .
* @ param url
* the url , not null
* @ return the reader , never null
* @ throws IOException
* If any I / O error occur on reading the URL . */
public Reader create ( URL url ) throws IOException { } } | return new InputStreamReader ( openStream ( url ) , StandardCharsets . UTF_8 ) ; |
public class ClientUtils { /** * Method posts request payload
* @ param request
* @ param payload
* @ return */
protected HttpResponse sendPayload ( HttpEntityEnclosingRequestBase request , byte [ ] payload , HttpHost proxy ) { } } | HttpResponse response = null ; try { HttpClient httpclient = new DefaultHttpClient ( ) ; if ( proxy != null ) { httpclient . getParams ( ) . setParameter ( ConnRoutePNames . DEFAULT_PROXY , proxy ) ; } request . setEntity ( new ByteArrayEntity ( payload ) ) ; log ( request ) ; response = httpclient . execute ( request ... |
public class PrometheusBuilder { /** * Create the Prometheus metric name by sanitizing some characters */
private static String getPrometheusMetricName ( String name ) { } } | String out = name . replaceAll ( "(?<!^|:)(\\p{Upper})(?=\\p{Lower})" , "_$1" ) ; out = out . replaceAll ( "(?<=\\p{Lower})(\\p{Upper})" , "_$1" ) . toLowerCase ( ) ; out = out . replaceAll ( "[-_.\\s]+" , "_" ) ; out = out . replaceAll ( "^_*(.*?)_*$" , "$1" ) ; return out ; |
public class VoltZK { /** * get MigratePartitionLeader information */
public static MigratePartitionLeaderInfo getMigratePartitionLeaderInfo ( ZooKeeper zk ) { } } | try { byte [ ] data = zk . getData ( migrate_partition_leader_info , null , null ) ; if ( data != null ) { MigratePartitionLeaderInfo info = new MigratePartitionLeaderInfo ( data ) ; return info ; } } catch ( KeeperException | InterruptedException | JSONException e ) { } return null ; |
public class MathPlag { /** * Compare two MathML formulas . The return value is a map of similarity factors like matching depth ,
* element coverage , indicator for structural or data match and if the comparison formula holds an
* equation .
* @ param refMathML Reference MathML string ( must contain pMML and cMML... | try { CMMLInfo refDoc = new CMMLInfo ( refMathML ) ; CMMLInfo compDoc = new CMMLInfo ( compMathML ) ; // compute factors
final Integer depth = compDoc . getDepth ( refDoc . getXQuery ( ) ) ; final Double coverage = compDoc . getCoverage ( refDoc . getElements ( ) ) ; Boolean formula = compDoc . isEquation ( true ) ; Bo... |
public class ListUtils { /** * 过滤 */
public static < E > List < E > filter ( final List < E > list , Filter < E > filter ) { } } | List < E > newList = new ArrayList < E > ( ) ; if ( list != null && list . size ( ) != 0 ) { for ( E e : list ) { if ( filter . filter ( e ) ) { newList . add ( e ) ; } } } return newList ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcElectricHeaterType ( ) { } } | if ( ifcElectricHeaterTypeEClass == null ) { ifcElectricHeaterTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 190 ) ; } return ifcElectricHeaterTypeEClass ; |
public class HelpView { /** * Retrieves the help topic associated with the given node . Note that this also maintains a map
* of topic id - - & gt ; topic mappings in the parent help set .
* @ param node Tree node .
* @ return A help topic instance . */
protected HelpTopic getTopic ( TreeNode node ) { } } | try { DefaultMutableTreeNode nd = ( DefaultMutableTreeNode ) node ; TreeItem item = ( TreeItem ) nd . getUserObject ( ) ; ID id = item . getID ( ) ; HelpTopic topic = new HelpTopic ( id == null ? null : id . getURL ( ) , item . getName ( ) , view . getHelpSet ( ) . getTitle ( ) ) ; if ( id != null && view . getHelpSet ... |
public class CoronaJobTracker { @ Override public void grantResource ( String handle , List < ResourceGrant > granted ) { } } | String msg = "Received " + granted . size ( ) + " new grants " ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( msg + granted . toString ( ) ) ; } else { LOG . info ( msg ) ; } // This is unnecessary , but nice error messages look better than NPEs
if ( resourceTracker != null ) { resourceTracker . addNewGrants ( grant... |
public class GroupTemplate { /** * 得到模板 , 并指明父模板
* @ param key
* @ param parent
* @ return */
public Template getTemplate ( String key , String parent , ResourceLoader loader ) { } } | Template template = this . getTemplate ( key , loader ) ; template . isRoot = false ; return template ; |
public class Ix { /** * Emits a range of characters from the given CharSequence as integer values .
* The result ' s iterator ( ) doesn ' t support remove ( ) .
* @ param cs the source character sequence , not null
* @ param start the start character index , inclusive , non - negative
* @ param end the end char... | int len = cs . length ( ) ; if ( start < 0 || end < 0 || start > len || end > len ) { throw new IndexOutOfBoundsException ( "start=" + start + ", end=" + end + ", length=" + len ) ; } return new IxCharacters ( cs , start , end ) ; |
public class ContentStoreImpl { /** * { @ inheritDoc } */
@ Override public String copyContent ( final String srcSpaceId , final String srcContentId , final String destStoreId , final String destSpaceId , final String destContentId ) throws ContentStoreException { } } | return execute ( new Retriable ( ) { @ Override public String retry ( ) throws ContentStoreException { // The actual method being executed
return doCopyContent ( srcSpaceId , srcContentId , destStoreId , destSpaceId , destContentId ) ; } } ) ; |
public class UAgentInfo { /** * The longer and more thorough way to detect for a mobile device .
* Will probably detect most feature phones ,
* smartphone - class devices , Internet Tablets ,
* Internet - enabled game consoles , etc .
* This ought to catch a lot of the more obscure and older devices , also - - ... | if ( detectMobileQuick ( ) || detectGameConsole ( ) ) { return true ; } if ( detectDangerHiptop ( ) || detectMaemoTablet ( ) || detectSonyMylo ( ) || detectArchos ( ) ) { return true ; } if ( ( userAgent . indexOf ( devicePda ) != - 1 ) && ( userAgent . indexOf ( disUpdate ) < 0 ) ) // no index found
{ return true ; } ... |
public class AbstractExtensionFinder { /** * Returns the parameters of an { @ link Extension } annotation without loading
* the corresponding class into the class loader .
* @ param className name of the class , that holds the requested { @ link Extension } annotation
* @ param classLoader class loader to access ... | if ( extensionInfos == null ) { extensionInfos = new HashMap < > ( ) ; } if ( ! extensionInfos . containsKey ( className ) ) { log . trace ( "Load annotation for '{}' using asm" , className ) ; ExtensionInfo info = ExtensionInfo . load ( className , classLoader ) ; if ( info == null ) { log . warn ( "No extension annot... |
public class AppServicePlansInner { /** * Get all apps associated with an App Service plan .
* Get all apps associated with an App Service plan .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
... | return listWebAppsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < SiteInner > > , Page < SiteInner > > ( ) { @ Override public Page < SiteInner > call ( ServiceResponse < Page < SiteInner > > response ) { return response . body ( ) ; } } ) ; |
public class AutoscalePolicyFilter { /** * Method allow to find autoscale policies by its names
* Filtering is case sensitive .
* @ param names is a set of names
* @ return { @ link AutoscalePolicyFilter } */
public AutoscalePolicyFilter names ( String ... names ) { } } | allItemsNotNull ( names , "Autoscale policies names" ) ; predicate = predicate . and ( combine ( AutoscalePolicyMetadata :: getName , in ( names ) ) ) ; return this ; |
public class ActivitySorter { /** * Recursively sort the supplied child tasks .
* @ param container child tasks */
public void sort ( ChildTaskContainer container ) { } } | // Do we have any tasks ?
List < Task > tasks = container . getChildTasks ( ) ; if ( ! tasks . isEmpty ( ) ) { for ( Task task : tasks ) { // Sort child activities
sort ( task ) ; // Sort Order :
// 1 . Activities come first
// 2 . WBS come last
// 3 . Activities ordered by activity ID
// 4 . WBS ordered by ID
Collecti... |
public class EventTimeBasedIndexNameBuilder { /** * Gets the name of the index to use for an index request
* @ param event
* Event for which the name of index has to be prepared
* @ return index name of the form ' indexPrefix - formattedTimestamp ' */
@ Override public String getIndexName ( Event event ) { } } | String realIndexPrefix = BucketPath . escapeString ( event . getIndexPrefix ( ) != null ? event . getIndexPrefix ( ) : indexPrefix , event . getHeaders ( ) ) ; if ( event . getIndexTimestamp ( ) != null ) { String indexName = new StringBuilder ( realIndexPrefix ) . append ( '-' ) . append ( event . getIndexTimestamp ( ... |
public class PolicyEventsInner { /** * Gets OData metadata XML document .
* @ param scope A valid scope , i . e . management group , subscription , resource group , or resource ID . Scope used has no effect on metadata returned .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ ret... | return getMetadataWithServiceResponseAsync ( scope ) . map ( new Func1 < ServiceResponse < String > , String > ( ) { @ Override public String call ( ServiceResponse < String > response ) { return response . body ( ) ; } } ) ; |
public class HelloSignClient { /** * Returns true if an account exists with the provided email address . Note
* this is limited to the visibility of the currently authenticated user .
* @ param email String email address
* @ return true if the account exists , false otherwise
* @ throws HelloSignException Throw... | if ( email == null || email . isEmpty ( ) ) { return false ; } Account account = new Account ( httpClient . withAuth ( auth ) . withPostField ( Account . ACCOUNT_EMAIL_ADDRESS , email ) . post ( BASE_URI + VALIDATE_ACCOUNT_URI ) . asJson ( ) ) ; return ( account . hasEmail ( ) && email . equalsIgnoreCase ( account . ge... |
public class ListContainersResult { /** * The names of the containers .
* @ param containers
* The names of the containers . */
public void setContainers ( java . util . Collection < Container > containers ) { } } | if ( containers == null ) { this . containers = null ; return ; } this . containers = new java . util . ArrayList < Container > ( containers ) ; |
public class ServerFactory { /** * Allows the creation of a Server instance with various configurations
* @ return a Server instance */
public static Server createServer ( ServerID serverID , io . grpc . Server rpcServer , LockManager lockManager , AttributeDeduplicatorDaemon attributeDeduplicatorDaemon , KeyspaceMan... | Server server = new Server ( serverID , lockManager , rpcServer , attributeDeduplicatorDaemon , keyspaceStore ) ; Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( server :: close , "grakn-server-shutdown" ) ) ; return server ; |
public class CommercePriceListAccountRelPersistenceImpl { /** * Removes all the commerce price list account rels where uuid = & # 63 ; from the database .
* @ param uuid the uuid */
@ Override public void removeByUuid ( String uuid ) { } } | for ( CommercePriceListAccountRel commercePriceListAccountRel : findByUuid ( uuid , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commercePriceListAccountRel ) ; } |
public class NFVORequestor { /** * Returns an EventAgent with which requests regarding Events can be sent to the NFVO .
* @ return an EventAgent */
public synchronized EventAgent getEventAgent ( ) { } } | if ( this . eventAgent == null ) { if ( isService ) { this . eventAgent = new EventAgent ( this . serviceName , this . projectId , this . sslEnabled , this . nfvoIp , this . nfvoPort , this . version , this . serviceKey ) ; } else { this . eventAgent = new EventAgent ( this . username , this . password , this . project... |
public class Interpolationd { /** * Compute the interpolation factors < code > ( t0 , t1 , t2 ) < / code > in order to interpolate an arbitrary value over a given
* triangle at the given point < code > ( x , y ) < / code > .
* This method takes in the 2D vertex positions of the three vertices of a triangle and stor... | double v12Y = v1Y - v2Y ; double v21X = v2X - v1X ; double v02X = v0X - v2X ; double yv2Y = y - v2Y ; double xv2X = x - v2X ; double v02Y = v0Y - v2Y ; double invDen = 1.0 / ( v12Y * v02X + v21X * v02Y ) ; dest . x = ( v12Y * xv2X + v21X * yv2Y ) * invDen ; dest . y = ( v02X * yv2Y - v02Y * xv2X ) * invDen ; dest . z =... |
public class SpringUtil { /** * Returns an array of resources matching the location pattern .
* @ param locationPattern The location pattern . Supports classpath references .
* @ return Array of matching resources . */
public static Resource [ ] getResources ( String locationPattern ) { } } | try { return resolver . getResources ( locationPattern ) ; } catch ( IOException e ) { throw MiscUtil . toUnchecked ( e ) ; } |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getFNCFNIRGLen ( ) { } } | if ( fncfnirgLenEEnum == null ) { fncfnirgLenEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 25 ) ; } return fncfnirgLenEEnum ; |
public class FunctionalUtils { /** * Group the input pairs by the key of each pair .
* @ param listInput the list of pairs to group
* @ param < K > the key type
* @ param < V > the value type
* @ return a map representing a grouping of the
* keys by the given input key type and list of values
* in the group... | Map < K , List < V > > ret = new HashMap < > ( ) ; for ( Pair < K , V > pair : listInput ) { List < V > currList = ret . get ( pair . getFirst ( ) ) ; if ( currList == null ) { currList = new ArrayList < > ( ) ; ret . put ( pair . getFirst ( ) , currList ) ; } currList . add ( pair . getSecond ( ) ) ; } return ret ; |
public class CloudSdk { /** * https : / / github . com / GoogleCloudPlatform / appengine - plugins - core / issues / 189 */
@ VisibleForTesting Path getWindowsPythonPath ( ) { } } | String cloudSdkPython = System . getenv ( "CLOUDSDK_PYTHON" ) ; if ( cloudSdkPython != null ) { Path cloudSdkPythonPath = Paths . get ( cloudSdkPython ) ; if ( Files . exists ( cloudSdkPythonPath ) ) { return cloudSdkPythonPath ; } else { throw new InvalidPathException ( cloudSdkPython , "python binary not in specified... |
public class Timebase { /** * Convert a sample count from one timebase to another < br / >
* Note that this may result in data loss due to rounding .
* @ param samples
* @ param oldRate
* @ param failOnPrecisionLoss
* if true , precision losing operations will fail by throwing a PrecisionLostException
* @ r... | final double resampled = resample ( ( double ) samples , oldRate ) ; final double rounded = Math . round ( resampled ) ; // Warn about significant loss of precision
if ( resampled != rounded && Math . abs ( rounded - resampled ) > 0.000001 ) { if ( failOnPrecisionLoss ) { throw new ResamplingException ( "Resample " + s... |
public class LogDecoder { /** * Decoding an event from binary - log buffer .
* @ return < code > UknownLogEvent < / code > if event type is unknown or skipped ,
* < code > null < / code > if buffer is not including a full event . */
public LogEvent decode ( LogBuffer buffer , LogContext context ) throws IOException... | final int limit = buffer . limit ( ) ; if ( limit >= FormatDescriptionLogEvent . LOG_EVENT_HEADER_LEN ) { LogHeader header = new LogHeader ( buffer , context . getFormatDescription ( ) ) ; final int len = header . getEventLen ( ) ; if ( limit >= len ) { LogEvent event ; /* Checking binary - log ' s header */
if ( handl... |
public class ParameterUtil { /** * Init parameter values map with the default values
* @ param param parameter
* @ param defValues default values
* @ param parameterValues map of parameter values
* @ throws QueryException if could not get default parameter values */
public static void initDefaultParameterValues... | if ( param . getSelection ( ) . equals ( QueryParameter . SINGLE_SELECTION ) ) { parameterValues . put ( param . getName ( ) , defValues . get ( 0 ) ) ; } else { Object [ ] val = new Object [ defValues . size ( ) ] ; for ( int k = 0 , size = defValues . size ( ) ; k < size ; k ++ ) { val [ k ] = defValues . get ( k ) ;... |
public class WmsServerExtension { /** * Create a new WMS layer . This layer extends the default { @ link org . geomajas . gwt2 . plugin . wms . client . layer . WmsLayer }
* by supporting GetFeatureInfo calls .
* @ param title The layer title .
* @ param crs The CRS for this layer .
* @ param tileConfig The til... | return new FeatureSearchSupportedWmsServerLayer ( title , crs , layerConfig , tileConfig , layerInfo , wfsConfig ) ; |
public class Transaction { /** * Adds a new and fully signed input for the given parameters . Note that this method is < b > not < / b > thread safe
* and requires external synchronization . Please refer to general documentation on Bitcoin scripting and contracts
* to understand the values of sigHash and anyoneCanP... | // Verify the API user didn ' t try to do operations out of order .
checkState ( ! outputs . isEmpty ( ) , "Attempting to sign tx without outputs." ) ; TransactionInput input = new TransactionInput ( params , this , new byte [ ] { } , prevOut ) ; addInput ( input ) ; int inputIndex = inputs . size ( ) - 1 ; if ( Script... |
public class Leader { /** * Finds an epoch number which is higher than any proposed epoch in quorum
* set and propose the epoch to them .
* @ throws IOException in case of IO failure . */
void proposeNewEpoch ( ) throws IOException { } } | long maxEpoch = persistence . getProposedEpoch ( ) ; int maxSyncTimeoutMs = getSyncTimeoutMs ( ) ; for ( PeerHandler ph : this . quorumMap . values ( ) ) { if ( ph . getLastProposedEpoch ( ) > maxEpoch ) { maxEpoch = ph . getLastProposedEpoch ( ) ; } if ( ph . getSyncTimeoutMs ( ) > maxSyncTimeoutMs ) { maxSyncTimeoutM... |
public class CodeSigningMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CodeSigning codeSigning , ProtocolMarshaller protocolMarshaller ) { } } | if ( codeSigning == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( codeSigning . getAwsSignerJobId ( ) , AWSSIGNERJOBID_BINDING ) ; protocolMarshaller . marshall ( codeSigning . getStartSigningJobParameter ( ) , STARTSIGNINGJOBPARAMETER_BIN... |
public class Utils { /** * Creates a unique device id . Suppresses ` HardwareIds ` lint warnings as we don ' t use this ID for
* identifying specific users . This is also what is required by the Segment spec . */
@ SuppressLint ( "HardwareIds" ) public static String getDeviceId ( Context context ) { } } | String androidId = getString ( context . getContentResolver ( ) , ANDROID_ID ) ; if ( ! isNullOrEmpty ( androidId ) && ! "9774d56d682e549c" . equals ( androidId ) && ! "unknown" . equals ( androidId ) && ! "000000000000000" . equals ( androidId ) ) { return androidId ; } // Serial number , guaranteed to be on all non p... |
public class WarningPropertyUtil { /** * Get a Location matching the given PC value . Because of JSR subroutines ,
* there may be multiple Locations referring to the given instruction . This
* method simply returns one of them arbitrarily .
* @ param classContext
* the ClassContext containing the method
* @ p... | CFG cfg = classContext . getCFG ( method ) ; for ( Iterator < Location > i = cfg . locationIterator ( ) ; i . hasNext ( ) ; ) { Location location = i . next ( ) ; if ( location . getHandle ( ) . getPosition ( ) == pc ) { return location ; } } return null ; |
public class JCuda { /** * Allocate an array on the device .
* < pre >
* cudaError _ t cudaMalloc3DArray (
* cudaArray _ t * array ,
* const cudaChannelFormatDesc * desc ,
* cudaExtent extent ,
* unsigned int flags = 0 )
* < / pre >
* < div >
* < p > Allocate an array on the device .
* Allocates a C... | return cudaMalloc3DArray ( arrayPtr , desc , extent , 0 ) ; |
public class KAMStoreImpl { /** * { @ inheritDoc } */
@ Override public boolean collapseKamNode ( KamInfo info , KamNode collapsing , KamNode collapseTo ) { } } | try { KAMUpdateDao updateDao = kamUpdateDao ( info ) ; return updateDao . collapseKamNode ( collapsing , collapseTo ) ; } catch ( SQLException e ) { final String fmt = "error collapsing node for %s" ; final String msg = format ( fmt , info . getName ( ) ) ; throw new KAMStoreException ( msg , e ) ; } |
public class ParserTokenStream { /** * Consumes all tokens until the token at the front of the stream is of one of the given types .
* @ param types The types to cause the stream to stop consuming
* @ return The list of tokens that were consumed . */
public List < ParserToken > consumeUntil ( ParserTokenType ... ty... | List < ParserToken > tokens = new ArrayList < > ( ) ; while ( lookAheadType ( 0 ) != null && ! isOfType ( lookAheadType ( 0 ) , types ) ) { tokens . add ( consume ( ) ) ; } return tokens ; |
public class ArrayBlock { /** * Create an array block directly without per element validations . */
static ArrayBlock createArrayBlockInternal ( int arrayOffset , int positionCount , @ Nullable boolean [ ] valueIsNull , int [ ] offsets , Block values ) { } } | validateConstructorArguments ( arrayOffset , positionCount , valueIsNull , offsets , values ) ; return new ArrayBlock ( arrayOffset , positionCount , valueIsNull , offsets , values ) ; |
public class SqlApplicationConfigurationUpdate { /** * The array of < a > OutputUpdate < / a > objects describing the new destination streams used by the application .
* @ param outputUpdates
* The array of < a > OutputUpdate < / a > objects describing the new destination streams used by the application . */
public... | if ( outputUpdates == null ) { this . outputUpdates = null ; return ; } this . outputUpdates = new java . util . ArrayList < OutputUpdate > ( outputUpdates ) ; |
public class ConstructorCopier { /** * TODO may need to pay attention itf = = true */
@ Override public void visitMethodInsn ( final int opcode , final String owner , final String name , final String desc , boolean itf ) { } } | // If this is an invokespecial , first determine if it is the one of interest ( the one calling our super constructor )
if ( opcode == INVOKESPECIAL && name . charAt ( 0 ) == '<' ) { if ( unitializedObjectsCount != 0 ) { unitializedObjectsCount -- ; } else { // This looks like our INVOKESPECIAL
if ( state == preInvokeS... |
public class Scs_util { /** * Allocate a Scsd object ( a Sulmage - Mendelsohn decomposition ) .
* @ param m
* number of rows of the matrix A to be analyzed
* @ param n
* number of columns of the matrix A to be analyzed
* @ return Sulmage - Mendelsohn decomposition */
public static Scsd cs_dalloc ( int m , int... | Scsd S ; S = new Scsd ( ) ; S . p = new int [ m ] ; S . r = new int [ m + 6 ] ; S . q = new int [ n ] ; S . s = new int [ n + 6 ] ; S . cc = new int [ 5 ] ; S . rr = new int [ 5 ] ; return S ; |
public class DefaultAgenda { /** * ( non - Javadoc )
* @ see org . kie . common . AgendaI # setFocus ( org . kie . spi . AgendaGroup ) */
@ Override public boolean setFocus ( final AgendaGroup agendaGroup ) { } } | // Set the focus to the agendaGroup if it doesn ' t already have the focus
if ( this . focusStack . getLast ( ) != agendaGroup ) { ( ( InternalAgendaGroup ) this . focusStack . getLast ( ) ) . setActive ( false ) ; this . focusStack . add ( agendaGroup ) ; InternalAgendaGroup igroup = ( InternalAgendaGroup ) agendaGrou... |
public class CxDxClientSessionImpl { /** * ( non - Javadoc )
* @ see org . jdiameter . api . cxdx . ClientCxDxSession # sendLocationInformationRequest ( org . jdiameter . api . cxdx . events . JLocationInfoRequest ) */
@ Override public void sendLocationInformationRequest ( JLocationInfoRequest request ) throws Inter... | send ( Event . Type . SEND_MESSAGE , request , null ) ; |
public class nitro_service { /** * Use this API to login into Netscaler .
* @ param username Username
* @ param password Password for the Netscaler .
* @ param timeout timeout for netscaler session . Default is 1800secs
* @ return status of the operation performed .
* @ throws Exception nitro exception is thr... | this . set_credential ( username , password ) ; this . set_timeout ( timeout ) ; return this . login ( ) ; |
public class Debugger { public static void printFatal ( Object caller , String format , Object ... args ) { } } | Object msg = String . format ( format , args ) ; printFatal ( caller , msg ) ; |
public class PravegaRequestProcessor { /** * Copy all of the contents provided into a byteBuffer and return it . */
@ SneakyThrows ( IOException . class ) private ByteBuffer copyData ( List < ReadResultEntryContents > contents ) { } } | int totalSize = contents . stream ( ) . mapToInt ( ReadResultEntryContents :: getLength ) . sum ( ) ; ByteBuffer data = ByteBuffer . allocate ( totalSize ) ; int bytesCopied = 0 ; for ( ReadResultEntryContents content : contents ) { int copied = StreamHelpers . readAll ( content . getData ( ) , data . array ( ) , bytes... |
public class ElevationShadowView { /** * Obtains the view ' s attributes from a specific attribute set .
* @ param attributeSet
* The attribute set , the view ' s attributes should be obtained from , as an instance of
* the type { @ link AttributeSet } or null , if no attributes should be obtained
* @ param def... | TypedArray typedArray = getContext ( ) . obtainStyledAttributes ( attributeSet , R . styleable . ElevationShadowView , defaultStyle , defaultStyleResource ) ; try { obtainShadowElevation ( typedArray ) ; obtainShadowOrientation ( typedArray ) ; obtainEmulateParallelLight ( typedArray ) ; } finally { typedArray . recycl... |
public class ClientAdminBootstrap { /** * Explicitly override autoapprove in all clients that were provided in the
* whitelist . */
private void updateAutoApproveClients ( ) { } } | autoApproveClients . removeAll ( clientsToDelete ) ; for ( String clientId : autoApproveClients ) { try { BaseClientDetails base = ( BaseClientDetails ) clientRegistrationService . loadClientByClientId ( clientId , IdentityZone . getUaaZoneId ( ) ) ; base . addAdditionalInformation ( ClientConstants . AUTO_APPROVE , tr... |
public class IdentityProviderType { /** * The identity provider details , such as < code > MetadataURL < / code > and < code > MetadataFile < / code > .
* @ param providerDetails
* The identity provider details , such as < code > MetadataURL < / code > and < code > MetadataFile < / code > .
* @ return Returns a r... | setProviderDetails ( providerDetails ) ; return this ; |
public class ZConfig { /** * Saves the configuration to a file .
* < strong > This method will overwrite contents of existing file < / strong >
* @ param filename the path of the file to save the configuration into , or " - " to dump it to standard output
* @ return the saved file or null if dumped to the standar... | if ( "-" . equals ( filename ) ) { // print to console
try ( Writer writer = new PrintWriter ( System . out ) ) { save ( writer ) ; } return null ; } else { // write to file
final File file = new File ( filename ) ; if ( file . exists ( ) ) { file . delete ( ) ; } else { // create necessary directories ;
file . getPare... |
public class FctConvertersToFromString { /** * < p > Get CnvTfsDateTime ( create and put into map ) . < / p >
* @ return requested CnvTfsDateTime
* @ throws Exception - an exception */
protected final CnvTfsDateTime createPutCnvTfsDateTime ( ) throws Exception { } } | CnvTfsDateTime convrt = new CnvTfsDateTime ( ) ; this . convertersMap . put ( CnvTfsDateTime . class . getSimpleName ( ) , convrt ) ; return convrt ; |
public class DateCaster { /** * converts a String to a DateTime Object , returns null if invalid string
* @ param str String to convert
* @ param convertingType one of the following values : - CONVERTING _ TYPE _ NONE : number are not
* converted at all - CONVERTING _ TYPE _ YEAR : integers are handled as years -... | int month = 0 ; int first = ds . readDigits ( ) ; // first
if ( first == - 1 ) { if ( ! alsoMonthString ) return defaultValue ; first = ds . readMonthString ( ) ; if ( first == - 1 ) return defaultValue ; month = 1 ; } if ( ds . isAfterLast ( ) ) return month == 1 ? defaultValue : numberToDate ( timeZone , Caster . toD... |
public class WordReplacementIterator { /** * Advances to the next word in the token stream . */
public void advance ( ) { } } | String s = null ; if ( baseIterator . hasNext ( ) ) next = baseIterator . next ( ) ; else next = null ; |
public class SDDLHelper { /** * Check if user canot change password .
* @ param sddl SSDL .
* @ return < tt > true < / tt > if user cannot change password : < tt > false < / tt > otherwise . */
public static boolean isUserCannotChangePassword ( final SDDL sddl ) { } } | boolean res = false ; final List < ACE > aces = sddl . getDacl ( ) . getAces ( ) ; for ( int i = 0 ; ! res && i < aces . size ( ) ; i ++ ) { final ACE ace = aces . get ( i ) ; if ( ace . getType ( ) == AceType . ACCESS_DENIED_OBJECT_ACE_TYPE && ace . getObjectFlags ( ) . getFlags ( ) . contains ( AceObjectFlags . Flag ... |
public class RdKNNTree { /** * Throws an IllegalArgumentException if the specified distance function is
* not an instance of the distance function used by this index .
* @ throws IllegalArgumentException
* @ param distanceFunction the distance function to be checked */
private void checkDistanceFunction ( Spatial... | if ( ! settings . distanceFunction . equals ( distanceFunction ) ) { throw new IllegalArgumentException ( "Parameter distanceFunction must be an instance of " + this . distanceQuery . getClass ( ) + ", but is " + distanceFunction . getClass ( ) ) ; } |
public class AWSIotClient { /** * Lists the job executions for a job .
* @ param listJobExecutionsForJobRequest
* @ return Result of the ListJobExecutionsForJob operation returned by the service .
* @ throws InvalidRequestException
* The request is not valid .
* @ throws ResourceNotFoundException
* The spec... | request = beforeClientExecution ( request ) ; return executeListJobExecutionsForJob ( request ) ; |
public class ObservableListenerHelper { /** * { @ inheritDoc } */
@ Override public void addListener ( ChangeListener < ? super T > listener ) { } } | Objects . requireNonNull ( listener ) ; if ( size == 0 ) { sentinel = false ; this . listener = listener ; this . value = getValue ( ) ; } else if ( size == 1 ) { sentinel = false ; this . listener = new Object [ ] { this . listener , listener } ; } else { Object [ ] l = ( Object [ ] ) this . listener ; if ( l . length... |
public class VirtualMachineExtensionImagesInner { /** * Gets a list of virtual machine extension image types .
* @ param location The name of a supported Azure region .
* @ param publisherName the String value
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ th... | return ServiceFuture . fromResponse ( listTypesWithServiceResponseAsync ( location , publisherName ) , serviceCallback ) ; |
public class ExpressionUtils { /** * Create a new Template expression
* @ param cl type of expression
* @ param template template
* @ param args template parameters
* @ return template expression */
public static < T > TemplateExpression < T > template ( Class < ? extends T > cl , String template , Object ... a... | return template ( cl , TemplateFactory . DEFAULT . create ( template ) , ImmutableList . copyOf ( args ) ) ; |
public class JCompositeRowsSelectorPanel { /** * < / editor - fold > / / GEN - END : initComponents */
public void addItemsToComposite ( String testplan , String row ) { } } | String [ ] path = new String [ 3 ] ; path [ 0 ] = tree2RootName ; path [ 1 ] = testplan ; path [ 2 ] = row ; TreePath [ ] tp = new TreePath [ 1 ] ; tp [ 0 ] = new TreePath ( path ) ; addItemsToComposite ( tp ) ; |
public class TopologyStarter { /** * Applies type conversion where needed .
* @ return a copy of source ready for Storm .
* @ see < a href = " https : / / issues . apache . org / jira / browse / STORM - 173 " > Strom issue 173 < / a > */
public static Config stormConfig ( Properties source ) { } } | Config result = new Config ( ) ; logger . debug ( "Mapping declared types for Storm properties..." ) ; for ( Field field : result . getClass ( ) . getDeclaredFields ( ) ) { if ( field . getType ( ) != String . class ) continue ; if ( field . getName ( ) . endsWith ( CONFIGURATION_TYPE_FIELD_SUFFIX ) ) continue ; try { ... |
public class Client { /** * Initializes the { @ link SessionState } from a previous snapshot with specific state information .
* If a system needs to be built that withstands outages and needs to resume where left off , this method ,
* combined with the periodic persistence of the { @ link SessionState } provides r... | return Completable . create ( new Completable . OnSubscribe ( ) { @ Override public void call ( CompletableSubscriber subscriber ) { LOGGER . info ( "Recovering state from format {}" , format ) ; LOGGER . debug ( "PersistedState on recovery is: {}" , new String ( persistedState , CharsetUtil . UTF_8 ) ) ; try { if ( fo... |
public class QueryExecutor { /** * Execute the query passed using the selection of index definition provided .
* The index definitions are presumed to already exist and be up to date for the
* { @ link Database } and its underlying { @ link SQLDatabaseQueue } passed to the constructor .
* @ param query query to e... | // Validate inputs
fields = normaliseFields ( fields ) ; // will throw IllegalArgumentException if there are invalid fields
validateFields ( fields ) ; // normalise and validate query by passing into the executors
query = QueryValidator . normaliseAndValidateQuery ( query ) ; // Execute the query
Boolean [ ] indexesCov... |
public class HttpUtil { /** * Returns { @ code true } if the specified message contains an expect header specifying an expectation that is not
* supported . Note that this method returns { @ code false } if the expect header is not valid for the message
* ( e . g . , the message is a response , or the version on th... | if ( ! isExpectHeaderValid ( message ) ) { return false ; } final String expectValue = message . headers ( ) . get ( HttpHeaderNames . EXPECT ) ; return expectValue != null && ! HttpHeaderValues . CONTINUE . toString ( ) . equalsIgnoreCase ( expectValue ) ; |
public class QueryExecution { /** * Send request for more data for this query .
* NOTE : This method is always run in a background thread ! !
* @ param startRow
* Start row needed in return batch */
private void asyncMoreRequest ( int startRow ) { } } | try { DataRequest moreRequest = new DataRequest ( ) ; moreRequest . queryId = queryId ; moreRequest . startRow = startRow ; moreRequest . maxSize = maxBatchSize ; logger . debug ( "Client requesting {} .. {}" , startRow , ( startRow + maxBatchSize - 1 ) ) ; DataResponse response = server . data ( moreRequest ) ; logger... |
public class SelectExtension { /** * selects an item and remembers its position in the selections list
* @ param position the global position
* @ param fireEvent true if the onClick listener should be called
* @ param considerSelectableFlag true if the select method should not select an item if its not selectable... | FastAdapter . RelativeInfo < Item > relativeInfo = mFastAdapter . getRelativeInfo ( position ) ; if ( relativeInfo == null || relativeInfo . item == null ) { return ; } select ( relativeInfo . adapter , relativeInfo . item , position , fireEvent , considerSelectableFlag ) ; |
public class AsyncFacebookRunner { /** * Invalidate the current user session by removing the access token in
* memory , clearing the browser cookies , and calling auth . expireSession
* through the API . The application will be notified when logout is
* complete via the callback interface .
* Note that this met... | new Thread ( ) { @ Override public void run ( ) { try { String response = fb . logoutImpl ( context ) ; if ( response . length ( ) == 0 || response . equals ( "false" ) ) { listener . onFacebookError ( new FacebookError ( "auth.expireSession failed" ) , state ) ; return ; } listener . onComplete ( response , state ) ; ... |
public class AptUtil { /** * Returns the name of corresponding getter .
* @ param element the field
* @ return getter name
* @ author vvakame */
public static String getElementGetter ( Element element ) { } } | // TODO 型 ( boolean ) による絞り込みをするべき
String getterName1 = "get" + element . getSimpleName ( ) . toString ( ) ; String getterName2 = "is" + element . getSimpleName ( ) . toString ( ) ; String getterName3 = element . getSimpleName ( ) . toString ( ) ; Element getter = null ; for ( Element method : ElementFilter . methodsI... |
public class SamplingRuleRecordMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SamplingRuleRecord samplingRuleRecord , ProtocolMarshaller protocolMarshaller ) { } } | if ( samplingRuleRecord == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( samplingRuleRecord . getSamplingRule ( ) , SAMPLINGRULE_BINDING ) ; protocolMarshaller . marshall ( samplingRuleRecord . getCreatedAt ( ) , CREATEDAT_BINDING ) ; prot... |
public class AmazonECSClient { /** * Modifies the status of an Amazon ECS container instance .
* You can change the status of a container instance to < code > DRAINING < / code > to manually remove an instance from a
* cluster , for example to perform system updates , update the Docker daemon , or scale down the cl... | request = beforeClientExecution ( request ) ; return executeUpdateContainerInstancesState ( request ) ; |
public class OpenOAuth2s { /** * 获取access token
* @ param code
* @ return */
public AccessToken getAccessToken ( String code ) { } } | String url = WxEndpoint . get ( "url.oauth.accesstoken.get" ) ; String formatUrl = String . format ( url , wxClient . getClientId ( ) , wxClient . getClientSecret ( ) , code ) ; logger . debug ( "get access token: {}" , formatUrl ) ; String response = wxClient . get ( formatUrl , false ) ; return JsonMapper . defaultMa... |
public class LiKafkaSchemaRegistry { /** * Register a schema to the Kafka schema registry under the provided input name . This method will change the name
* of the schema to the provided name if configured to do so . This is useful because certain services ( like Gobblin kafka adaptor and
* Camus ) get the schema f... | PostMethod post = new PostMethod ( url ) ; if ( this . switchTopicNames ) { return register ( AvroUtils . switchName ( schema , name ) , post ) ; } else { post . addParameter ( "name" , name ) ; return register ( schema , post ) ; } |
public class DescribeDirectConnectGatewaysResult { /** * The Direct Connect gateways .
* @ return The Direct Connect gateways . */
public java . util . List < DirectConnectGateway > getDirectConnectGateways ( ) { } } | if ( directConnectGateways == null ) { directConnectGateways = new com . amazonaws . internal . SdkInternalList < DirectConnectGateway > ( ) ; } return directConnectGateways ; |
public class CmsListDateMacroFormatter { /** * Returns a default date formatter object . < p >
* @ return a default date formatter object */
public static I_CmsListFormatter getDefaultDateFormatter ( ) { } } | return new CmsListDateMacroFormatter ( Messages . get ( ) . container ( Messages . GUI_LIST_DATE_FORMAT_1 ) , Messages . get ( ) . container ( Messages . GUI_LIST_DATE_FORMAT_NEVER_0 ) ) ; |
public class Channel { /** * Join peer to channel
* @ param orderer The orderer to get the genesis block .
* @ param peer the peer to join the channel .
* @ param peerOptions see { @ link PeerOptions }
* @ return
* @ throws ProposalException */
public Channel joinPeer ( Orderer orderer , Peer peer , PeerOptio... | logger . debug ( format ( "Channel %s joining peer %s, url: %s" , name , peer . getName ( ) , peer . getUrl ( ) ) ) ; if ( shutdown ) { throw new ProposalException ( format ( "Channel %s has been shutdown." , name ) ) ; } Channel peerChannel = peer . getChannel ( ) ; if ( null != peerChannel && peerChannel != this ) { ... |
public class World { /** * Sets the { @ code defaultParent } { @ code Actor } as the default for this { @ code World } . ( INTERNAL ONLY )
* @ param defaultParent the { @ code Actor } to use as the default parent */
synchronized void setDefaultParent ( final Actor defaultParent ) { } } | if ( defaultParent != null && this . defaultParent != null ) { throw new IllegalStateException ( "Default parent already exists." ) ; } this . defaultParent = defaultParent ; |
public class DartSuperAccessorsPass { /** * Returns true if this node is or is enclosed by an instance member definition
* ( non - static method , getter or setter ) . */
private static boolean isInsideInstanceMember ( Node n ) { } } | while ( n != null ) { if ( n . isMemberFunctionDef ( ) || n . isGetterDef ( ) || n . isSetterDef ( ) || n . isComputedProp ( ) ) { return ! n . isStaticMember ( ) ; } if ( n . isClass ( ) ) { // Stop at the first enclosing class .
return false ; } n = n . getParent ( ) ; } return false ; |
public class CredentialFactory { /** * Returns shared staticHttpTransport instance ; initializes staticHttpTransport if it hasn ' t
* already been initialized . */
private static synchronized HttpTransport getStaticHttpTransport ( ) throws IOException , GeneralSecurityException { } } | if ( staticHttpTransport == null ) { staticHttpTransport = HttpTransportFactory . createHttpTransport ( HttpTransportType . JAVA_NET ) ; } return staticHttpTransport ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.