signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ResourceHandler { /** * Creates a resource handler that serves from the file system if the directory exists ; otherwise from the class path .
* A common use case is for when you want to serve from the file path at development time ( so you can update
* files without restarting ) but at deploy time reso... | Path path = Paths . get ( fileRootIfExists ) ; if ( Files . isDirectory ( path ) ) { return fileHandler ( path ) ; } else { return classpathHandler ( classpathRoot ) ; } |
public class ChannelOutboundBuffer { /** * Add a flush to this { @ link ChannelOutboundBuffer } . This means all previous added messages are marked as flushed
* and so you will be able to handle them . */
public void addFlush ( ) { } } | // There is no need to process all entries if there was already a flush before and no new messages
// where added in the meantime .
// See https : / / github . com / netty / netty / issues / 2577
Entry entry = unflushedEntry ; if ( entry != null ) { if ( flushedEntry == null ) { // there is no flushedEntry yet , so sta... |
public class URepeated { /** * Gets the binding of the underlying identifier in the unifier . */
public JCExpression getUnderlyingBinding ( Unifier unifier ) { } } | return ( unifier == null ) ? null : unifier . getBinding ( new UFreeIdent . Key ( identifier ( ) ) ) ; |
public class IOUtil { /** * Open a { @ link javax . swing . JFileChooser } , and return the selected file , or null if closed or cancelled .
* @ param title The title of the file - chooser window .
* @ param currentDir The root directory . If null , { @ code new File ( " . " ) } will be used .
* @ return The chos... | if ( currentDir == null ) currentDir = new File ( "." ) ; JFileChooser fileChooser = new JFileChooser ( ) ; fileChooser . setCurrentDirectory ( currentDir ) ; fileChooser . setDialogTitle ( title ) ; fileChooser . setMultiSelectionEnabled ( false ) ; int result = fileChooser . showOpenDialog ( null ) ; if ( result == J... |
public class InternalXbaseWithAnnotationsParser { /** * Delegated rules */
public final boolean synpred149_InternalXbaseWithAnnotations ( ) { } } | state . backtracking ++ ; int start = input . mark ( ) ; try { synpred149_InternalXbaseWithAnnotations_fragment ( ) ; // can never throw exception
} catch ( RecognitionException re ) { System . err . println ( "impossible: " + re ) ; } boolean success = ! state . failed ; input . rewind ( start ) ; state . backtracking... |
public class WebhookResourcesImpl { /** * Gets the list of all Webhooks that the user owns ( if a user generated token was used to make the request )
* or the list of all Webhooks associated with the third - party app ( if a third - party app made the request ) . Items
* in the response are ordered by API Client na... | String path = "webhooks" ; HashMap < String , Object > parameters = new HashMap < String , Object > ( ) ; if ( paging != null ) { parameters = paging . toHashMap ( ) ; } path += QueryUtil . generateUrl ( null , parameters ) ; return this . listResourcesWithWrapper ( path , Webhook . class ) ; |
public class InHttp { /** * priority */
private boolean readPriority ( ReadStream is , int length , int streamId ) throws IOException { } } | int streamRef = BitsUtil . readInt ( is ) ; int weight = is . read ( ) ; is . skip ( length - 5 ) ; return true ; |
public class ConfigurationUtils { /** * Returns a unified message for cases when the master hostname cannot be determined .
* @ param serviceName the name of the service that couldn ' t run . i . e . Alluxio worker , fsadmin
* shell , etc .
* @ return a string with the message */
public static String getMasterHos... | return getHostNotConfiguredMessage ( serviceName , "master" , PropertyKey . MASTER_HOSTNAME , PropertyKey . MASTER_EMBEDDED_JOURNAL_ADDRESSES ) ; |
public class JTSCurveExpression { /** * The start Point of this Curve .
* @ return start point */
public JTSPointExpression < Point > startPoint ( ) { } } | if ( startPoint == null ) { startPoint = JTSGeometryExpressions . pointOperation ( SpatialOps . START_POINT , mixin ) ; } return startPoint ; |
public class XMLChecker { /** * Determines if the specified character matches the < em > Extender < / em > production .
* See : < a href = " http : / / www . w3 . org / TR / REC - xml # NT - Extender " > Definition of Extender < / a > .
* @ param c the character to check .
* @ return < code > true < / code > if t... | int n = c ; return n == 0x00B7 || n == 0x02D0 || n == 0x02D1 || n == 0x0387 || n == 0x0640 || n == 0x0E46 || n == 0x0EC6 || n == 0x3005 || n >= 0x3031 && n <= 0x3035 || n >= 0x309D && n <= 0x309E || n >= 0x30FC && n <= 0x30FE ; |
public class CliClient { /** * DROP INDEX ON < CF > . < COLUMN > */
private void executeDropIndex ( Tree statement ) throws TException , SchemaDisagreementException , InvalidRequestException , NotFoundException { } } | if ( ! CliMain . isConnected ( ) || ! hasKeySpace ( ) ) return ; // getColumnFamily will check if CF exists for us
String columnFamily = CliCompiler . getColumnFamily ( statement , currentCfDefs ( ) ) ; String rawColumName = CliUtils . unescapeSQLString ( statement . getChild ( 1 ) . getText ( ) ) ; CfDef cfDef = getCf... |
public class Handler { /** * { @ inheritDoc } */
public void start ( ) { } } | String existingProtocolPathPkgs = PrivilegedSystemHelper . getProperty ( "java.protocol.handler.pkgs" ) ; if ( existingProtocolPathPkgs == null ) PrivilegedSystemHelper . setProperty ( "java.protocol.handler.pkgs" , protocolPathPkg ) ; else if ( existingProtocolPathPkgs . indexOf ( protocolPathPkg ) == - 1 ) Privileged... |
public class AmazonConfigClient { /** * Returns a list of compliant and noncompliant rules with the number of resources for compliant and noncompliant
* rules .
* < note >
* The results can return an empty result page , but if you have a nextToken , the results are displayed on the next
* page .
* < / note > ... | request = beforeClientExecution ( request ) ; return executeDescribeAggregateComplianceByConfigRules ( request ) ; |
public class DBAccessFactory { /** * create an IDBAccess ( an accessor ) for a specific database .
* @ param dbType the type of database to access . Can be
* < br / > DBType . REMOTE or DBType . EMBEDDED or DBType . IN _ MEMORY
* @ param properties to configure the database connection .
* < br / > The appropria... | return createDBAccess ( dbType , properties , null , null , null ) ; |
public class HandleMetaClass { /** * this method mimics EMC behavior */
public Object getProperty ( String property ) { } } | if ( ExpandoMetaClass . isValidExpandoProperty ( property ) ) { if ( property . equals ( ExpandoMetaClass . STATIC_QUALIFIER ) || property . equals ( ExpandoMetaClass . CONSTRUCTOR ) || myMetaClass . hasProperty ( this , property ) == null ) { return replaceDelegate ( ) . getProperty ( property ) ; } } return myMetaCla... |
public class GenericDraweeHierarchy { /** * Sets a new failure drawable with scale type . */
public void setFailureImage ( Drawable drawable , ScalingUtils . ScaleType scaleType ) { } } | setChildDrawableAtIndex ( FAILURE_IMAGE_INDEX , drawable ) ; getScaleTypeDrawableAtIndex ( FAILURE_IMAGE_INDEX ) . setScaleType ( scaleType ) ; |
public class TransactionWriteRequest { /** * Adds put operation ( to be executed on object ) to the list of transaction write operations .
* transactionWriteExpression is used to conditionally put object .
* returnValuesOnConditionCheckFailure specifies which attributes values ( of existing item ) should be returne... | transactionWriteOperations . add ( new TransactionWriteOperation ( object , TransactionWriteOperationType . Put , transactionWriteExpression , returnValuesOnConditionCheckFailure ) ) ; return this ; |
public class JavaSerializationTranscoder { /** * { @ inheritDoc } */
@ Override public byte [ ] serializeAttributes ( final MemcachedBackupSession session , final ConcurrentMap < String , Object > attributes ) { } } | if ( attributes == null ) { throw new NullPointerException ( "Can't serialize null" ) ; } ByteArrayOutputStream bos = null ; ObjectOutputStream oos = null ; try { bos = new ByteArrayOutputStream ( ) ; oos = new ObjectOutputStream ( bos ) ; writeAttributes ( session , attributes , oos ) ; return bos . toByteArray ( ) ; ... |
public class DialogPreference { /** * Obtains the maximum height of the preference ' s dialog from a specific typed array .
* @ param typedArray
* The typed array , the maximum height should be obtained from , as an instance of the
* class { @ link TypedArray } . The typed array may not be null */
private void ob... | try { int maxHeight = typedArray . getDimensionPixelSize ( R . styleable . DialogPreference_dialogMaxHeight , - 1 ) ; if ( maxHeight != - 1 ) { setDialogMaxHeight ( maxHeight ) ; } } catch ( Resources . NotFoundException | UnsupportedOperationException e ) { // No need to handle
} |
public class ApiOvhDedicatedserver { /** * Alter this object properties
* REST : PUT / dedicated / server / { serviceName } / spla / { id }
* @ param body [ required ] New object properties
* @ param serviceName [ required ] The internal name of your dedicated server
* @ param id [ required ] License id */
publ... | String qPath = "/dedicated/server/{serviceName}/spla/{id}" ; StringBuilder sb = path ( qPath , serviceName , id ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ; |
public class RestServerEndpoint { /** * Creates the upload dir if needed . */
@ VisibleForTesting static void createUploadDir ( final Path uploadDir , final Logger log , final boolean initialCreation ) throws IOException { } } | if ( ! Files . exists ( uploadDir ) ) { if ( initialCreation ) { log . info ( "Upload directory {} does not exist. " + uploadDir ) ; } else { log . warn ( "Upload directory {} has been deleted externally. " + "Previously uploaded files are no longer available." , uploadDir ) ; } checkAndCreateUploadDir ( uploadDir , lo... |
public class druidGLexer { /** * $ ANTLR start " VALUES " */
public final void mVALUES ( ) throws RecognitionException { } } | try { int _type = VALUES ; int _channel = DEFAULT_TOKEN_CHANNEL ; // druidG . g : 585:17 : ( ( ' VALUES ' | ' values ' ) )
// druidG . g : 585:18 : ( ' VALUES ' | ' values ' )
{ // druidG . g : 585:18 : ( ' VALUES ' | ' values ' )
int alt5 = 2 ; int LA5_0 = input . LA ( 1 ) ; if ( ( LA5_0 == 'V' ) ) { alt5 = 1 ; } else... |
public class Element { /** * Find elements that have attributes whose values match the supplied regular expression .
* @ param key name of the attribute
* @ param pattern compiled regular expression to match against attribute values
* @ return elements that have attributes matching this regular expression */
publ... | return Collector . collect ( new Evaluator . AttributeWithValueMatching ( key , pattern ) , this ) ; |
public class EventReaderFactory { /** * Validate input parameters . */
private void validate ( ) { } } | LibraryUtils . checkArgumentNotNull ( config , "Configuration is null." ) ; LibraryUtils . checkArgumentNotNull ( eventsProcessor , "Events Processor is null." ) ; LibraryUtils . checkArgumentNotNull ( sourceFilter , "Source Filter is null." ) ; LibraryUtils . checkArgumentNotNull ( eventFilter , "Event Filter is null.... |
public class HtmlReport { /** * returns null if no failure */
private RunFailure getRunFailure ( RootMethodRunResult runResult ) { } } | if ( runResult == null || runResult . getRunFailures ( ) . size ( ) == 0 ) { return null ; // no failure
} // multiple run failures in one test method are not supported yet
return runResult . getRunFailures ( ) . get ( 0 ) ; |
public class HashUtilities { /** * Generates a MD5 Hash for a specific byte [ ]
* @ param input The byte [ ] to be converted into an MD5 hash .
* @ return The MD5 Hash string of the input string . */
public static String generateMD5 ( final byte [ ] input ) { } } | try { final MessageDigest messageDigest = MessageDigest . getInstance ( "MD5" ) ; messageDigest . reset ( ) ; byte [ ] digest = messageDigest . digest ( input ) ; return new String ( Hex . encodeHex ( digest ) ) ; } catch ( Exception e ) { LOG . debug ( "An error occurred generating the MD5 Hash of the input string" , ... |
public class MpscRelaxedArrayQueue { /** * Validate a producer claim to find out if is an overclaim ( beyond the producer limit ) .
* @ return { @ code true } if the claim is valid , { @ code false } otherwise . */
private boolean validateProducerClaim ( final int activeCycleIndex , final long producerCycleClaim , fi... | final long producerPosition = producerPosition ( positionOnCycle , cycleId , cycleLengthLog2 ) ; final long claimLimit = lvProducerLimit ( ) ; if ( producerPosition >= claimLimit ) { // it is really full ?
if ( isFull ( producerPosition ) ) { return fixProducerOverClaim ( activeCycleIndex , producerCycleClaim , slowPro... |
public class PrimaryBackupServerContext { /** * Registers message listeners . */
private void registerListeners ( ) { } } | protocol . registerExecuteHandler ( this :: execute ) ; protocol . registerBackupHandler ( this :: backup ) ; protocol . registerRestoreHandler ( this :: restore ) ; protocol . registerCloseHandler ( this :: close ) ; protocol . registerMetadataHandler ( this :: metadata ) ; |
public class URI { /** * Set the raw - escaped fragment .
* @ param escapedFragment the raw - escaped fragment
* @ throws URIException escaped fragment not valid */
public void setRawFragment ( char [ ] escapedFragment ) throws URIException { } } | if ( escapedFragment == null || escapedFragment . length == 0 ) { _fragment = escapedFragment ; hash = 0 ; return ; } if ( ! validate ( escapedFragment , fragment ) ) { throw new URIException ( URIException . ESCAPING , "escaped fragment not valid" ) ; } _fragment = escapedFragment ; hash = 0 ; |
public class MapPropertyGroup { /** * ~ - - - set methods - - - - - */
@ Override public void setGroupedProperties ( SecurityContext securityContext , PropertyMap source , GraphObject destination ) throws FrameworkException { } } | if ( source == null ) { for ( PropertyKey key : propertyKeys ) { destination . setProperty ( key , null ) ; } return ; } for ( Entry < PropertyKey , Object > entry : source . entrySet ( ) ) { destination . setProperty ( entry . getKey ( ) , entry . getValue ( ) ) ; } |
public class DTMDefaultBase { /** * Given a node identity for an attribute , advance to the next attribute .
* @ param identity int identity of the attribute node . This
* < strong > must < / strong > be an attribute node .
* @ return int DTM node - identity of the resolved attr ,
* or DTM . NULL to indicate no... | // Assume that attributes and namespace nodes immediately follow the element
while ( DTM . NULL != ( identity = getNextNodeIdentity ( identity ) ) ) { int type = _type ( identity ) ; if ( type == DTM . ATTRIBUTE_NODE ) { return identity ; } else if ( type != DTM . NAMESPACE_NODE ) { break ; } } return DTM . NULL ; |
public class QueryRunner { /** * Throws a new exception with a more informative error message .
* @ param cause The original exception that will be chained to the new
* exception when it ' s rethrown .
* @ param sql The query that was executing when the exception happened .
* @ param params The query replacemen... | StringBuffer msg = new StringBuffer ( cause . getMessage ( ) ) ; msg . append ( " Query: " ) ; msg . append ( sql ) ; msg . append ( " Parameters: " ) ; if ( params == null ) { msg . append ( "[]" ) ; } else { msg . append ( Arrays . asList ( params ) ) ; } SQLException e = new SQLException ( msg . toString ( ) , cause... |
public class ApiClient { /** * Execute HTTP call and deserialize the HTTP response body into the given return type .
* @ param returnType The return type used to deserialize HTTP response body
* @ param < T > The return type corresponding to ( same with ) returnType
* @ param call Call
* @ return ApiResponse ob... | try { Response response = call . execute ( ) ; T data = handleResponse ( response , returnType ) ; return new ApiResponse < T > ( response . code ( ) , response . headers ( ) . toMultimap ( ) , data ) ; } catch ( IOException e ) { throw new ApiException ( e ) ; } |
public class DatabaseAccountsInner { /** * Offline the specified region for the specified Azure Cosmos DB database account .
* @ param resourceGroupName Name of an Azure resource group .
* @ param accountName Cosmos DB database account name .
* @ param region Cosmos DB region , with spaces between words and each ... | return ServiceFuture . fromResponse ( offlineRegionWithServiceResponseAsync ( resourceGroupName , accountName , region ) , serviceCallback ) ; |
public class StaticTypeCheckingVisitor { /** * Given a field node , checks if we are calling a private field from an inner class . */
private void checkOrMarkPrivateAccess ( Expression source , FieldNode fn ) { } } | if ( fn != null && Modifier . isPrivate ( fn . getModifiers ( ) ) && ( fn . getDeclaringClass ( ) != typeCheckingContext . getEnclosingClassNode ( ) || typeCheckingContext . getEnclosingClosure ( ) != null ) && fn . getDeclaringClass ( ) . getModule ( ) == typeCheckingContext . getEnclosingClassNode ( ) . getModule ( )... |
public class CommerceSubscriptionEntryLocalServiceWrapper { /** * Returns a range of all the commerce subscription entries .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes... | return _commerceSubscriptionEntryLocalService . getCommerceSubscriptionEntries ( start , end ) ; |
public class ServletContextAccess { /** * / * ( non - Javadoc )
* @ see com . att . cadi . PropAccess # log ( com . att . cadi . Access . Level , java . lang . Object [ ] ) */
@ Override public void log ( Level level , Object ... elements ) { } } | if ( willLog ( level ) ) { StringBuilder sb = buildMsg ( level , elements ) ; context . log ( sb . toString ( ) ) ; } |
public class SearchQuery { /** * Exports the whole query as a { @ link JsonObject } .
* @ see # injectParams ( JsonObject ) for the part that deals with global parameters
* @ see AbstractFtsQuery # injectParamsAndBoost ( JsonObject ) for the part that deals with the " query " entry */
public JsonObject export ( ) {... | JsonObject result = JsonObject . create ( ) ; injectParams ( result ) ; JsonObject queryJson = JsonObject . create ( ) ; queryPart . injectParamsAndBoost ( queryJson ) ; return result . put ( "query" , queryJson ) ; |
public class QueryParserKraken { /** * Parses an AND expression . */
private ExprKraken parseAndExpr ( ) { } } | // AndExpr oldAndExpr = _ andExpr ;
AndExpr andExpr = new AndExpr ( ) ; // _ andExpr = andExpr ;
andExpr . add ( parseNotExpr ( ) ) ; while ( true ) { Token token = scanToken ( ) ; switch ( token ) { case AND : andExpr . add ( parseNotExpr ( ) ) ; break ; default : _token = token ; // _ andExpr = oldAndExpr ;
return an... |
public class LinkedTransferQueue { /** * Version of xfer for poll ( ) and tryTransfer , which simplifies control paths both here and in
* xfer */
private Object fulfill ( Object e ) { } } | boolean isData = e != null ; final PaddedAtomicReference < QNode > head = this . head ; final PaddedAtomicReference < QNode > tail = this . tail ; for ( ; ; ) { QNode t = tail . get ( ) ; QNode h = head . get ( ) ; if ( t != null && ( t == h || t . isData == isData ) ) { QNode last = t . next ; if ( t == tail . get ( )... |
public class Collections { /** * Reverses the order of the elements in the specified list . < p >
* This method runs in linear time .
* @ param list the list whose elements are to be reversed .
* @ throws UnsupportedOperationException if the specified list or
* its list - iterator does not support the < tt > se... | "rawtypes" , "unchecked" } ) public static void reverse ( List < ? > list ) { int size = list . size ( ) ; if ( size < REVERSE_THRESHOLD || list instanceof RandomAccess ) { for ( int i = 0 , mid = size >> 1 , j = size - 1 ; i < mid ; i ++ , j -- ) swap ( list , i , j ) ; } else { // instead of using a raw type here , i... |
public class GetReservedInstancesExchangeQuoteRequest { /** * The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved
* Instances .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setTargetConfiguratio... | if ( this . targetConfigurations == null ) { setTargetConfigurations ( new com . amazonaws . internal . SdkInternalList < TargetConfigurationRequest > ( targetConfigurations . length ) ) ; } for ( TargetConfigurationRequest ele : targetConfigurations ) { this . targetConfigurations . add ( ele ) ; } return this ; |
public class StartContainersInner { /** * Starts the exec command for a specific container instance .
* Starts the exec command for a specified container instance in a specified resource group and container group .
* @ param resourceGroupName The name of the resource group .
* @ param containerGroupName The name ... | return launchExecWithServiceResponseAsync ( resourceGroupName , containerGroupName , containerName , containerExecRequest ) . map ( new Func1 < ServiceResponse < ContainerExecResponseInner > , ContainerExecResponseInner > ( ) { @ Override public ContainerExecResponseInner call ( ServiceResponse < ContainerExecResponseI... |
public class CFFFontSubset { /** * The function builds the new output stream according to the subset process
* @ param Font the font
* @ return the subsetted font stream */
protected byte [ ] BuildNewFile ( int Font ) { } } | // Prepare linked list for new font components
OutputList = new LinkedList ( ) ; // copy the header of the font
CopyHeader ( ) ; // create a name index
BuildIndexHeader ( 1 , 1 , 1 ) ; OutputList . addLast ( new UInt8Item ( ( char ) ( 1 + fonts [ Font ] . name . length ( ) ) ) ) ; OutputList . addLast ( new StringItem ... |
public class DeviceProxy { public List < PipeInfo > getPipeConfig ( String [ ] pipeNames ) throws DevFailed { } } | ArrayList < String > list = new ArrayList < String > ( pipeNames . length ) ; Collections . addAll ( list , pipeNames ) ; return getPipeConfig ( list ) ; |
public class BaseRichMediaStudioCreative { /** * Sets the billingAttribute value for this BaseRichMediaStudioCreative .
* @ param billingAttribute * The billing attribute associated with this creative . This attribute
* is read only . */
public void setBillingAttribute ( com . google . api . ads . admanager . axis ... | this . billingAttribute = billingAttribute ; |
public class SetTopBoxCreative { /** * Sets the licenseWindowEndDateTime value for this SetTopBoxCreative .
* @ param licenseWindowEndDateTime * The date and time that this creative can no longer be served
* from a local cable video - on - demand
* server . This attribute is optional . */
public void setLicenseWi... | this . licenseWindowEndDateTime = licenseWindowEndDateTime ; |
public class BaiduChannelResponseMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BaiduChannelResponse baiduChannelResponse , ProtocolMarshaller protocolMarshaller ) { } } | if ( baiduChannelResponse == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( baiduChannelResponse . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( baiduChannelResponse . getCreationDate ( ) , CREATIONDATE_BI... |
public class FastList { /** * Adds specified object to the list and increments size
* @ param object
* the object to add to the list
* @ throws NullPointerException
* if a null object is supplied */
public synchronized int add ( E object ) { } } | if ( object == null ) throw new NullPointerException ( "FastList add called with null" ) ; if ( ( count + 1 ) >= maxCount ) resize ( capacity * 2 ) ; int initialAddIndex = addIndex ; // find right spot to add to - start with addIndex and look
// for first open spot . give up if we get back to initialAddIndex
while ( li... |
public class DeploymentGroupInfoMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeploymentGroupInfo deploymentGroupInfo , ProtocolMarshaller protocolMarshaller ) { } } | if ( deploymentGroupInfo == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deploymentGroupInfo . getApplicationName ( ) , APPLICATIONNAME_BINDING ) ; protocolMarshaller . marshall ( deploymentGroupInfo . getDeploymentGroupId ( ) , DEPLOYMEN... |
public class LookupTable { /** * Remove the object from the LookupTable which is referenced by the
* supplied Index value .
* @ param theIndex
* an int containing the index value of the element to remove
* from the LookupTable
* @ return the Object which was removed from the LookupTable - null if no
* objec... | if ( theIndex < 0 || theIndex > currentCapacity - 1 ) { throw new IllegalArgumentException ( "Index is out of range." ) ; } Object theElement = theElementArray [ theIndex ] ; if ( theElement != null ) { theElementArray [ theIndex ] = null ; elementCount -- ; occupiedSlots . clear ( theIndex ) ; } return theElement ; |
public class AssimilateForeignLogging { /** * Assimilate a small set of logging frameworks . */
public static synchronized void assimilate ( ) { } } | if ( assimilated ) { return ; } assimilated = true ; // Assimilate java . util . logging
final Logger rootLogger = LogManager . getLogManager ( ) . getLogger ( "" ) ; final Handler [ ] handlers = rootLogger . getHandlers ( ) ; if ( handlers != null ) { for ( Handler handler : handlers ) { rootLogger . removeHandler ( h... |
public class FSEditLog { /** * Retrieve the implementation class for a Journal scheme .
* @ param conf The configuration to retrieve the information from
* @ param uriScheme The uri scheme to look up .
* @ return the class of the journal implementation
* @ throws IllegalArgumentException if no class is configur... | String key = "dfs.name.edits.journal-plugin" + "." + uriScheme ; Class < ? extends JournalManager > clazz = null ; try { clazz = conf . getClass ( key , null , JournalManager . class ) ; } catch ( RuntimeException re ) { throw new IllegalArgumentException ( "Invalid class specified for " + uriScheme , re ) ; } if ( cla... |
public class ChunkMapReader { /** * Before combining topics in a branch , ensure any descendant topicref with @ chunk and no @ href has a stub */
private void createChildTopicrefStubs ( final List < Element > topicrefs ) { } } | if ( ! topicrefs . isEmpty ( ) ) { for ( final Element currentElem : topicrefs ) { final String href = getValue ( currentElem , ATTRIBUTE_NAME_HREF ) ; final String chunk = getValue ( currentElem , ATTRIBUTE_NAME_CHUNK ) ; if ( href == null && chunk != null ) { generateStumpTopic ( currentElem ) ; } createChildTopicref... |
public class UpdateAppProfileRequest { /** * Builds a new update request using an existing AppProfile .
* < p > This variant is recommended over { @ link # of ( String , String ) } because it provides optimistic
* concurrency control using etags . */
public static UpdateAppProfileRequest of ( @ Nonnull AppProfile a... | return new UpdateAppProfileRequest ( appProfile . getInstanceId ( ) , appProfile . getId ( ) , com . google . bigtable . admin . v2 . UpdateAppProfileRequest . newBuilder ( ) . setAppProfile ( appProfile . toProto ( ) ) ) ; |
public class SegmentedJournal { /** * Opens a new Raft log reader with the given reader mode .
* @ param index The index from which to begin reading entries .
* @ param mode The mode in which to read entries .
* @ return The Raft log reader . */
public SegmentedJournalReader < E > openReader ( long index , Segmen... | SegmentedJournalReader < E > reader = new SegmentedJournalReader < > ( this , index , mode ) ; readers . add ( reader ) ; return reader ; |
public class R2RMLManager { /** * Get OBDA mapping body terms from R2RML TriplesMap
* @ param tm
* @ return
* @ throws Exception */
private ImmutableList < TargetAtom > getMappingTripleAtoms ( TriplesMap tm ) throws Exception { } } | // the body to return
ImmutableList . Builder < TargetAtom > bodyBuilder = ImmutableList . builder ( ) ; // get subject
ImmutableTerm subjectAtom = r2rmlParser . getSubjectAtom ( tm ) ; // get any class predicates , construct atom Class ( subject ) , add to body
List < ImmutableFunctionalTerm > classPredicates = r2rmlP... |
public class SivMode { /** * First bit 1 , following bits 0. */
private static byte [ ] pad ( byte [ ] in ) { } } | final byte [ ] result = Arrays . copyOf ( in , 16 ) ; new ISO7816d4Padding ( ) . addPadding ( result , in . length ) ; return result ; |
public class Scs_sqr { /** * Symbolic QR or LU ordering and analysis .
* @ param order
* ordering method to use ( 0 to 3)
* @ param A
* column - compressed matrix
* @ param qr
* analyze for QR if true or LU if false
* @ return symbolic analysis for QR or LU , null on error */
public static Scss cs_sqr ( i... | int n , k , post [ ] ; Scss S ; boolean ok = true ; if ( ! Scs_util . CS_CSC ( A ) ) return ( null ) ; /* check inputs */
n = A . n ; S = new Scss ( ) ; /* allocate result S */
S . q = Scs_amd . cs_amd ( order , A ) ; /* fill - reducing ordering */
if ( order > 0 && S . q == null ) return ( null ) ; if ( qr ) /* QR sym... |
public class WebDriverHelper { /** * Waits until an element will be displayed into the page .
* @ param by
* the method of identifying the element
* @ param maximumSeconds
* maximum number of methods to wait for the element to be
* present */
public void waitForElementPresent ( final By by , final int maximum... | WebDriverWait wait = new WebDriverWait ( driver , maximumSeconds ) ; wait . until ( ExpectedConditions . presenceOfElementLocated ( ( by ) ) ) ; |
public class AmazonRoute53Client { /** * Authorizes the AWS account that created a specified VPC to submit an < code > AssociateVPCWithHostedZone < / code >
* request to associate the VPC with a specified hosted zone that was created by a different account . To submit a
* < code > CreateVPCAssociationAuthorization ... | request = beforeClientExecution ( request ) ; return executeCreateVPCAssociationAuthorization ( request ) ; |
public class Error { /** * Compose error message by inserting the strings in the add variables
* in placeholders within the error message . The message string contains
* $ $ markers for each context variable . Context variables are supplied in
* the add parameter . ( by Loic Lefevre )
* @ param message message ... | StringBuffer sb = new StringBuffer ( message . length ( ) + 32 ) ; int lastIndex = 0 ; int escIndex = message . length ( ) ; // removed test : i < add . length
// because if mainErrorMessage is equal to " blabla $ $ "
// then the statement escIndex = mainErrorMessage . length ( ) ;
// is never reached ! ? ? ?
for ( int... |
public class ChunkStepControllerImpl { /** * Reads an item from the reader
* @ return the item read */
private Object readItem ( ) { } } | Object itemRead = null ; try { currentChunkStatus . incrementItemsTouchedInCurrentChunk ( ) ; // call read listeners before and after the actual read
for ( ItemReadListenerProxy readListenerProxy : itemReadListeners ) { readListenerProxy . beforeRead ( ) ; } itemRead = readerProxy . readItem ( ) ; for ( ItemReadListene... |
public class RxFile { /** * Create a copy of the files found under the provided ArrayList of Uris , in the Library ' s cache folder .
* The mime type of the resource will be determined by URLConnection . guessContentTypeFromName ( ) method . */
public static Observable < List < File > > createFileFromUri ( final Cont... | return createFileFromUri ( context , uris , MimeMap . UrlConnection ) ; |
public class HashSet { /** * Save the state of this < tt > HashSet < / tt > instance to a stream ( that is ,
* serialize it ) .
* @ serialData The capacity of the backing < tt > HashMap < / tt > instance
* ( int ) , and its load factor ( float ) are emitted , followed by
* the size of the set ( the number of el... | // Write out any hidden serialization magic
s . defaultWriteObject ( ) ; // Write out HashMap capacity and load factor
s . writeInt ( map . capacity ( ) ) ; s . writeFloat ( map . loadFactor ( ) ) ; // Write out size
s . writeInt ( map . size ( ) ) ; // Write out all elements in the proper order .
for ( E e : map . key... |
public class ProcessFaxClientSpi { /** * This function formats the provided template .
* @ param template
* The template
* @ param faxJob
* The fax job object
* @ return The formatted template */
protected String formatTemplate ( String template , FaxJob faxJob ) { } } | return SpiUtil . formatTemplate ( template , faxJob , null , false , true ) ; |
public class MarketApi { /** * List historical orders by a character List cancelled and expired market
* orders placed by a character up to 90 days in the past . - - - This route is
* cached for up to 3600 seconds SSO Scope :
* esi - markets . read _ character _ orders . v1
* @ param characterId
* An EVE char... | com . squareup . okhttp . Call call = getCharactersCharacterIdOrdersHistoryValidateBeforeCall ( characterId , datasource , ifNoneMatch , page , token , null ) ; Type localVarReturnType = new TypeToken < List < CharacterOrdersHistoryResponse > > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnT... |
public class UpdateCenter { /** * Checks if the restart operation is scheduled
* ( which means in near future Jenkins will restart by itself )
* @ see # isRestartRequiredForCompletion ( ) */
public boolean isRestartScheduled ( ) { } } | for ( UpdateCenterJob job : getJobs ( ) ) { if ( job instanceof RestartJenkinsJob ) { RestartJenkinsJob . RestartJenkinsJobStatus status = ( ( RestartJenkinsJob ) job ) . status ; if ( status instanceof RestartJenkinsJob . Pending || status instanceof RestartJenkinsJob . Running ) { return true ; } } } return false ; |
public class TCPMemcachedNodeImpl { /** * ( non - Javadoc )
* @ see net . spy . memcached . MemcachedNode # setupResend ( ) */
public final void setupResend ( ) { } } | // First , reset the current write op , or cancel it if we should
// be authenticating
Operation op = getCurrentWriteOp ( ) ; if ( shouldAuth && op != null ) { op . cancel ( ) ; } else if ( op != null ) { ByteBuffer buf = op . getBuffer ( ) ; if ( buf != null ) { buf . reset ( ) ; } else { getLogger ( ) . info ( "No bu... |
public class AppEngineTaskQueue { /** * VisibleForTesting */
List < TaskHandle > addToQueue ( final Collection < Task > tasks ) { } } | List < TaskHandle > handles = new ArrayList < > ( ) ; Map < String , List < TaskOptions > > queueNameToTaskOptions = new HashMap < > ( ) ; for ( Task task : tasks ) { logger . finest ( "Enqueueing: " + task ) ; String queueName = task . getQueueSettings ( ) . getOnQueue ( ) ; TaskOptions taskOptions = toTaskOptions ( t... |
public class Validate { /** * Checks if the given object is < code > null < / code >
* @ param o The object to validate .
* @ throws ParameterException if the given object is < code > null < / code > . */
public static < O extends Object > void notNull ( O o ) { } } | if ( ! validation ) return ; if ( o == null ) throw new ParameterException ( ErrorCode . NULLPOINTER ) ; |
public class LinkerDeclarationsManager { /** * Return a set of all the Declaration matching the DeclarationFilter of the .
* Linker .
* @ return a set of all the Declaration matching the DeclarationFilter of the
* Linker . */
public Set < D > getMatchedDeclaration ( ) { } } | Set < D > bindedSet = new HashSet < D > ( ) ; for ( Map . Entry < ServiceReference < D > , Boolean > e : declarations . entrySet ( ) ) { if ( e . getValue ( ) ) { bindedSet . add ( getDeclaration ( e . getKey ( ) ) ) ; } } return bindedSet ; |
public class CreateHITTypeRequest { /** * Conditions that a Worker ' s Qualifications must meet in order to accept the HIT . A HIT can have between zero and
* ten Qualification requirements . All requirements must be met in order for a Worker to accept the HIT .
* Additionally , other actions can be restricted usin... | if ( qualificationRequirements == null ) { this . qualificationRequirements = null ; return ; } this . qualificationRequirements = new java . util . ArrayList < QualificationRequirement > ( qualificationRequirements ) ; |
public class UpdateApnsVoipChannelRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateApnsVoipChannelRequest updateApnsVoipChannelRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateApnsVoipChannelRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateApnsVoipChannelRequest . getAPNSVoipChannelRequest ( ) , APNSVOIPCHANNELREQUEST_BINDING ) ; protocolMarshaller . marshall ( updateApnsVoipChannelReque... |
public class AloneBoltClientConnectionManager { /** * 关闭长连接
* @ param rpcClient bolt客户端
* @ param transportConfig 传输层配置
* @ param url 传输层地址 */
public void closeConnection ( RpcClient rpcClient , ClientTransportConfig transportConfig , Url url ) { } } | if ( rpcClient == null || transportConfig == null || url == null ) { return ; } // TODO do not close |
public class MetricReducerOrMappingTransform { /** * Mapping a list of metric , only massage its datapoints .
* @ param metrics The list of metrics to be mapped . constants The list of constants used for mapping
* @ param constants constants input
* @ return A list of metrics after mapping . */
protected List < M... | SystemAssert . requireArgument ( metrics != null , "Cannot transform null metrics" ) ; if ( metrics . isEmpty ( ) ) { return metrics ; } List < Metric > newMetricsList = new ArrayList < Metric > ( ) ; for ( Metric metric : metrics ) { metric . setDatapoints ( this . valueReducerOrMapping . mapping ( metric . getDatapoi... |
public class JPAEMPool { /** * Prohibit access to factory properties via the pool .
* @ throws UnsupportedOperationException */
@ Override public Map < String , Object > getProperties ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getProperties : " + this ) ; throw new UnsupportedOperationException ( "This operation is not supported on a pooling EntityManagerFactory." ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getPGPRGPgFlgs ( ) { } } | if ( pgprgPgFlgsEEnum == null ) { pgprgPgFlgsEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 127 ) ; } return pgprgPgFlgsEEnum ; |
public class AbstractStaticSourceImporter { /** * This Method extracts the UUID from the source .
* @ return UUID of the source */
@ Override protected UUID evalUUID ( ) { } } | UUID uuid = null ; final Pattern uuidPattern = Pattern . compile ( "@eFapsUUID[\\s]*[0-9a-z\\-]*" ) ; final Matcher uuidMatcher = uuidPattern . matcher ( getCode ( ) ) ; if ( uuidMatcher . find ( ) ) { final String uuidStr = uuidMatcher . group ( ) . replaceFirst ( "^@eFapsUUID" , "" ) ; uuid = UUID . fromString ( uuid... |
public class ListSkillsStoreSkillsByCategoryResult { /** * The skill store skills .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setSkillsStoreSkills ( java . util . Collection ) } or { @ link # withSkillsStoreSkills ( java . util . Collection ) } if
* y... | if ( this . skillsStoreSkills == null ) { setSkillsStoreSkills ( new java . util . ArrayList < SkillsStoreSkill > ( skillsStoreSkills . length ) ) ; } for ( SkillsStoreSkill ele : skillsStoreSkills ) { this . skillsStoreSkills . add ( ele ) ; } return this ; |
public class CmsEncoder { /** * Creates a String out of a byte array with the specified encoding , falling back
* to the system default in case the encoding name is not valid . < p >
* Use this method as a replacement for < code > new String ( byte [ ] , encoding ) < / code >
* to avoid possible encoding problems... | String enc = encoding . intern ( ) ; if ( enc != OpenCms . getSystemInfo ( ) . getDefaultEncoding ( ) ) { enc = lookupEncoding ( enc , null ) ; } if ( enc != null ) { try { return new String ( bytes , enc ) ; } catch ( UnsupportedEncodingException e ) { // this can _ never _ happen since the charset was looked up first... |
public class CmsSearchIndexTable { /** * Handles the table item clicks , including clicks on images inside of a table item . < p >
* @ param event the click event
* @ param itemId of the clicked row
* @ param propertyId column id */
void onItemClick ( MouseEvents . ClickEvent event , Object itemId , Object proper... | if ( ! event . isCtrlKey ( ) && ! event . isShiftKey ( ) ) { changeValueIfNotMultiSelect ( itemId ) ; // don ' t interfere with multi - selection using control key
if ( event . getButton ( ) . equals ( MouseButton . RIGHT ) || ( propertyId == null ) ) { m_menu . setEntries ( getMenuEntries ( ) , getSearchIndexNames ( )... |
public class BeanMethodActionRule { /** * Adds a new argument rule with the specified name and returns it .
* @ param argumentName the argument name
* @ return the argument item rule */
public ItemRule newArgumentItemRule ( String argumentName ) { } } | ItemRule itemRule = new ItemRule ( ) ; itemRule . setName ( argumentName ) ; addArgumentItemRule ( itemRule ) ; return itemRule ; |
public class DefaultHistoryReferencesTableModel { /** * Returns the history reference with the given ID . If the history reference is not found { @ code null } is returned .
* @ param historyReferenceId the ID of the history reference that will be searched
* @ return the history reference , or { @ code null } if no... | DefaultHistoryReferencesTableEntry entry = getEntryWithHistoryId ( historyReferenceId ) ; if ( entry != null ) { return entry . getHistoryReference ( ) ; } return null ; |
public class Try { /** * Convenience overload of { @ link Try # withResources ( CheckedSupplier , CheckedFn1 ) withResources } that cascades
* dependent resource creation via nested calls .
* @ param aSupplier the first resource supplier
* @ param bFn the dependent resource function
* @ param fn the function bo... | return withResources ( aSupplier , a -> withResources ( ( ) -> bFn . apply ( a ) , fn :: apply ) ) ; |
public class Types { /** * Is t assignable to s ? < br >
* Equivalent to subtype except for constant values and raw
* types . < br >
* ( not defined for Method and ForAll types ) */
public boolean isAssignable ( Type t , Type s , Warner warn ) { } } | if ( t . hasTag ( ERROR ) ) return true ; if ( t . getTag ( ) . isSubRangeOf ( INT ) && t . constValue ( ) != null ) { int value = ( ( Number ) t . constValue ( ) ) . intValue ( ) ; switch ( s . getTag ( ) ) { case BYTE : if ( Byte . MIN_VALUE <= value && value <= Byte . MAX_VALUE ) return true ; break ; case CHAR : if... |
public class ESInnerHitSerialThreadLocal { /** * 设置父子查询 , 子的类型信息和orm class对象
* @ param type
* @ param refs */
public static void setESInnerTypeReferences ( String type , Class < ? > refs ) { } } | Map < String , ESClass > typeRefs = innerHitTypeLocalsByType . get ( ) ; if ( typeRefs == null ) { typeRefs = new HashMap < String , ESClass > ( ) ; innerHitTypeLocalsByType . set ( typeRefs ) ; } typeRefs . put ( type , new ESClassType ( refs ) ) ; |
public class CommercePriceListAccountRelUtil { /** * Returns the commerce price list account rel where commerceAccountId = & # 63 ; and commercePriceListId = & # 63 ; or throws a { @ link NoSuchPriceListAccountRelException } if it could not be found .
* @ param commerceAccountId the commerce account ID
* @ param co... | return getPersistence ( ) . findByC_C ( commerceAccountId , commercePriceListId ) ; |
public class SessionDialog { /** * Reset the UI shared Context copies . The effect is that previous copies are discarded and new
* copies are created .
* @ param session the session */
public void recreateUISharedContexts ( Session session ) { } } | uiContexts . clear ( ) ; for ( Context context : session . getContexts ( ) ) { Context uiContext = context . duplicate ( ) ; uiContexts . put ( context . getIndex ( ) , uiContext ) ; } |
public class SubnetsInner { /** * Gets all subnets in a virtual network .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; SubnetInner & gt ; obje... | return listNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < SubnetInner > > , Page < SubnetInner > > ( ) { @ Override public Page < SubnetInner > call ( ServiceResponse < Page < SubnetInner > > response ) { return response . body ( ) ; } } ) ; |
public class TagResourceRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( TagResourceRequest tagResourceRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( tagResourceRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( tagResourceRequest . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( tagResourceRequest . getTags ( ) , TAGS_BINDING ) ; } catch ( Exception e ) { throw ... |
public class InitialMatching0 { /** * Sets a { @ link Supplier } to execute if this matches . */
public < R > FluentMatchingR < T , R > get ( Supplier < R > supplier ) { } } | return get ( new FluentMatchingR < > ( value ) , supplier ) ; |
public class QueryFormat { /** * - - - - - < QueryNodeVisitor interface > - - - - - */
public Object visit ( QueryRootNode node , Object data ) throws RepositoryException { } } | StringBuilder sb = ( StringBuilder ) data ; try { sb . append ( "SELECT" ) ; InternalQName [ ] selectProps = node . getSelectProperties ( ) ; if ( selectProps . length == 0 ) { sb . append ( " *" ) ; } else { String comma = "" ; for ( int i = 0 ; i < selectProps . length ; i ++ ) { sb . append ( comma ) . append ( " " ... |
public class MongoDBClient { /** * Executes on list of entities to be persisted .
* @ param collections
* collection containing list of db objects .
* @ param entity
* entity in question .
* @ param id
* entity id .
* @ param metadata
* entity metadata
* @ param relationHolders
* relation holders . ... | persistenceUnit = metadata . getPersistenceUnit ( ) ; Map < String , DBObject > documents = handler . getDocumentFromEntity ( metadata , entity , relationHolders , kunderaMetadata ) ; if ( isUpdate ) { for ( String documentName : documents . keySet ( ) ) { BasicDBObject query = new BasicDBObject ( ) ; MetamodelImpl met... |
public class ServicesInner { /** * Delete DMS Service Instance .
* The services resource is the top - level resource that represents the Data Migration Service . The DELETE method deletes a service . Any running tasks will be canceled .
* @ param groupName Name of the resource group
* @ param serviceName Name of ... | deleteWithServiceResponseAsync ( groupName , serviceName ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class DateUtils { /** * 不考虑时间求天数差
* @ param startDate 开始时间
* @ param endDate 结束时间 */
public static long getDaysBetweenIgnoreTime ( Date startDate , Date endDate ) { } } | startDate = getRoundedDay ( startDate ) ; endDate = getNextDay ( endDate ) ; return getBetweenDate ( startDate , endDate ) ; |
public class SS { /** * Returns an < code > AddAction < / code > for building expression that would
* append the specified values to this string set ; or if the attribute does
* not already exist , add the new attribute and the value ( s ) to the item .
* In general , DynamoDB recommends using SET rather than ADD... | return new AddAction ( this , new LiteralOperand ( new LinkedHashSet < String > ( Arrays . asList ( values ) ) ) ) ; |
public class SgUtils { /** * Checks if the modifiers are valid for a class . If any of the modifiers is
* not valid an < code > IllegalArgumentException < / code > is thrown .
* @ param modifiers
* Modifiers .
* @ param isInterface
* Are the modifiers from an interface ?
* @ param isInnerClass
* Is it an ... | // Basic checks
final int type ; if ( isInterface ) { if ( isInnerClass ) { type = INNER_INTERFACE ; } else { type = OUTER_INTERFACE ; } } else { if ( isInnerClass ) { type = INNER_CLASS ; } else { type = OUTER_CLASS ; } } checkModifiers ( type , modifiers ) ; // Abstract and final check
if ( Modifier . isAbstract ( mo... |
public class RequestSignerRegistry { /** * Register an requestSigner
* @ param requestSigner
* an instance of an RequestSigner to use for a given type
* @ param signerType
* the type of requestSigner that this instance will be used for */
public RequestSignerRegistry register ( RequestSigner requestSigner , Cla... | Map < Class < ? extends RequestSigner > , RequestSigner > registeredSigners = new HashMap < > ( ) ; registeredSigners . putAll ( signerForType ) ; registeredSigners . put ( signerType , requestSigner ) ; return new RequestSignerRegistry ( registeredSigners ) ; |
public class AmazonHttpClient { /** * Ensures the response handler is not null . If it is this method returns a dummy response
* handler .
* @ return Either original response handler or dummy response handler . */
private < T > HttpResponseHandler < T > getNonNullResponseHandler ( HttpResponseHandler < T > response... | if ( responseHandler != null ) { return responseHandler ; } else { // Return a Dummy , No - Op handler
return new HttpResponseHandler < T > ( ) { @ Override public T handle ( HttpResponse response ) throws Exception { return null ; } @ Override public boolean needsConnectionLeftOpen ( ) { return false ; } } ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.