signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Search { /** * Get the runtime of the < i > current < / i > ( or last ) run , in milliseconds . The precise return value
* depends on the status of the search :
* < ul >
* < li >
* If the search is either RUNNING or TERMINATING , this method returns the time elapsed since
* the current run was st... | // depends on status : synchronize with status updates
synchronized ( statusLock ) { if ( status == SearchStatus . INITIALIZING ) { // initializing
return JamesConstants . INVALID_TIME_SPAN ; } else if ( status == SearchStatus . IDLE || status == SearchStatus . DISPOSED ) { // idle or disposed : check if ran before
if ... |
public class StoreImpl { /** * / * ( non - Javadoc )
* @ see com . att . env . Store # slot ( java . lang . String ) */
public synchronized Slot slot ( String name ) { } } | name = name == null ? "" : name . trim ( ) ; Slot slot = localMap . get ( name ) ; if ( slot == null ) { slot = new Slot ( local ++ , name ) ; localMap . put ( name , slot ) ; } return slot ; |
public class Base64 { /** * Decodes a BASE64 encoded char array that is known to be reasonably well formatted . The preconditions are : < br >
* + The array must have a line length of 76 chars OR no line separators at all ( one line ) . < br >
* + Line separator must be " \ r \ n " , as specified in RFC 2045
* + ... | // Check special case
int sLen = sArr != null ? sArr . length : 0 ; if ( sLen == 0 ) { return new byte [ 0 ] ; } int sIx = 0 , eIx = sLen - 1 ; // Start and end index after trimming .
// Trim illegal chars from start
while ( sIx < eIx && IALPHABET [ sArr [ sIx ] ] < 0 ) { sIx ++ ; } // Trim illegal chars from end
while... |
public class ConnectionImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . MPCoreConnection # systemReceiveNoWait ( com . ibm . wsspi . sib . core . SITransaction , com . ibm . websphere . sib . Reliability ,
* com . ibm . websphere . sib . SIDestinationAddress , com . ibm . wsspi . sib . core... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "systemReceiveNoWait" , new Object [ ] { tran , unrecoverableReliability , destAddress , destinationType , criteria , reliability } ) ; if ( destAddress == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEnt... |
public class MediaAPI { /** * 新增临时素材
* 媒体文件在后台保存时间为3天 , 即3天后media _ id失效 。
* @ param access _ token access _ token
* @ param mediaType mediaType
* @ param inputStream 多媒体文件有格式和大小限制 , 如下 :
* 图片 ( image ) : 2M , 支持bmp / png / jpeg / jpg / gif格式
* 语音 ( voice ) : 2M , 播放长度不超过60s , 支持AMR \ MP3格式
* 视频 ( video )... | HttpPost httpPost = new HttpPost ( BASE_URI + "/cgi-bin/media/upload" ) ; byte [ ] data = null ; try { data = StreamUtils . copyToByteArray ( inputStream ) ; } catch ( IOException e ) { logger . error ( "" , e ) ; } HttpEntity reqEntity = MultipartEntityBuilder . create ( ) . addBinaryBody ( "media" , data , ContentTyp... |
public class HostProcess { /** * Complete the current plugin and update statistics
* @ param plugin the plugin that need to be marked as completed */
void pluginCompleted ( Plugin plugin ) { } } | PluginStats pluginStats = mapPluginStats . get ( plugin . getId ( ) ) ; if ( pluginStats == null ) { // Plugin was not processed
return ; } StringBuilder sb = new StringBuilder ( ) ; if ( isStop ( ) ) { sb . append ( "stopped host/plugin " ) ; // ZAP : added skipping notifications
} else if ( pluginStats . isSkipped ( ... |
public class EmailTarget { /** * TODO implement me */
@ Override protected void publish ( LogEntry entry ) { } } | Email mail = this . mapper . apply ( entry ) ; CompletableFuture . runAsync ( ( ) -> { try { mail . send ( ) ; } catch ( EmailException e ) { throw new LogTargetException ( e ) ; } } ) ; |
public class MethodConstructor { /** * ejb ' s method creating must at first get service ' s EJB Object ;
* pojo ' s method creating can only need service ' s class .
* @ param targetServiceFactory
* @ param targetMetaRequest
* @ param methodMetaArgs
* @ return */
public Method createMethod ( TargetServiceFac... | Method method = null ; Debug . logVerbose ( "[JdonFramework] enter create the Method " , module ) ; try { TargetMetaRequest targetMetaRequest = targetMetaRequestsHolder . getTargetMetaRequest ( ) ; if ( targetMetaRequest . getTargetMetaDef ( ) . isEJB ( ) ) { Object obj = methodInvokerUtil . createTargetObject ( target... |
public class SearchHelper { /** * Set up a standard filter attribute name and value pair .
* < table border = " 1 " > < caption > Example Values < / caption >
* < tr > < td > < b > Attribute < / b > < / td > < td > < b > Value < / b > < / td > < / tr >
* < tr > < td > givenName < / td > < td > John < / td > < / t... | filter = new FilterSequence ( attributeName , value ) . toString ( ) ; |
public class Lists { /** * Returns a reversed view of the specified list . For example , { @ code
* Lists . reverse ( Arrays . asList ( 1 , 2 , 3 ) ) } returns a list containing { @ code 3,
* 2 , 1 } . The returned list is backed by this list , so changes in the returned
* list are reflected in this list , and vi... | if ( list instanceof ImmutableList ) { return ( ( ImmutableList < T > ) list ) . reverse ( ) ; } else if ( list instanceof ReverseList ) { return ( ( ReverseList < T > ) list ) . getForwardList ( ) ; } else if ( list instanceof RandomAccess ) { return new RandomAccessReverseList < T > ( list ) ; } else { return new Rev... |
public class CPInstancePersistenceImpl { /** * Removes the cp instance where companyId = & # 63 ; and externalReferenceCode = & # 63 ; from the database .
* @ param companyId the company ID
* @ param externalReferenceCode the external reference code
* @ return the cp instance that was removed */
@ Override public... | CPInstance cpInstance = findByC_ERC ( companyId , externalReferenceCode ) ; return remove ( cpInstance ) ; |
public class ExceptionProxy { /** * Checks whether an exception has been set via { @ link # reportError ( Throwable ) } .
* If yes , that exception if re - thrown by this method .
* @ throws Exception This method re - throws the exception , if set . */
public void checkAndThrowException ( ) throws Exception { } } | Throwable t = exception . get ( ) ; if ( t != null ) { if ( t instanceof Exception ) { throw ( Exception ) t ; } else if ( t instanceof Error ) { throw ( Error ) t ; } else { throw new Exception ( t ) ; } } |
public class OjbTagsHandler { /** * Processes the template for all class definitions .
* @ param template The template
* @ param attributes The attributes of the tag
* @ exception XDocletException if an error occurs
* @ doc . tag type = " block " */
public void forAllClassDefinitions ( String template , Propert... | for ( Iterator it = _model . getClasses ( ) ; it . hasNext ( ) ; ) { _curClassDef = ( ClassDescriptorDef ) it . next ( ) ; generate ( template ) ; } _curClassDef = null ; LogHelper . debug ( true , OjbTagsHandler . class , "forAllClassDefinitions" , "Processed " + _model . getNumClasses ( ) + " types" ) ; |
public class AbstractRasMethodAdapter { /** * Visit a stack map frame . */
@ Override public void visitFrame ( int type , int numLocals , Object [ ] locals , int stackSize , Object [ ] stack ) { } } | if ( ! isVisitFrameRequired ( ) ) return ; super . visitFrame ( type , numLocals , locals , stackSize , stack ) ; |
public class ModelsImpl { /** * Create an entity role for an entity in the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param cEntityId The composite entity extractor ID .
* @ param createCompositeEntityRoleOptionalParameter the object representing the optional par... | return createCompositeEntityRoleWithServiceResponseAsync ( appId , versionId , cEntityId , createCompositeEntityRoleOptionalParameter ) . map ( new Func1 < ServiceResponse < UUID > , UUID > ( ) { @ Override public UUID call ( ServiceResponse < UUID > response ) { return response . body ( ) ; } } ) ; |
public class CouchDatabaseBase { /** * Removes a document from the database .
* < p > The object must have the correct < code > _ id < / code > and < code > _ rev < / code > values .
* @ param object The document to remove as object .
* @ return { @ link Response }
* @ throws NoDocumentException If the document... | assertNotEmpty ( object , "object" ) ; JsonObject jsonObject = getGson ( ) . toJsonTree ( object ) . getAsJsonObject ( ) ; final String id = getAsString ( jsonObject , "_id" ) ; final String rev = getAsString ( jsonObject , "_rev" ) ; return remove ( id , rev ) ; |
public class ExtendedTypeBuilderImpl { /** * Internal helper that resolves all the invokers using the given resolvers .
* @ param contextType
* the type of context the invokers use
* @ param resolvers
* list of resolvers
* @ param typeToExtend
* interface or abstract class to extend */
private static < CT ,... | // Resolve generics
ResolvedTypeWithMembers withMembers = Types . resolveMembers ( typeToExtend ) ; Map < Method , MethodInvocationHandler < CT > > handlers = new HashMap < > ( ) ; try { // Go through methods and create invokers for each of them
for ( ResolvedMethod method : withMembers . getMemberMethods ( ) ) { // On... |
public class AbstractClientOptionsBuilder { /** * Sets the { @ link ContentPreviewerFactory } for a request and a response . */
public B contentPreviewerFactory ( ContentPreviewerFactory factory ) { } } | requireNonNull ( factory , "factory" ) ; requestContentPreviewerFactory ( factory ) ; responseContentPreviewerFactory ( factory ) ; return self ( ) ; |
public class SwitchCase { /** * Visits this node , then the case expression if present , then
* each statement ( if any are specified ) . */
@ Override public void visit ( NodeVisitor v ) { } } | if ( v . visit ( this ) ) { if ( expression != null ) { expression . visit ( v ) ; } if ( statements != null ) { for ( AstNode s : statements ) { s . visit ( v ) ; } } } |
public class JCasUtil2 { /** * Sets the end value of the annotation , updating indexes appropriately
* @ param annotation the annotation
* @ param end the new end value */
public static void updateEnd ( final Annotation annotation , final int end ) { } } | annotation . removeFromIndexes ( ) ; annotation . setEnd ( end ) ; annotation . addToIndexes ( ) ; |
public class CrystalCell { /** * Gets the maximum dimension of the unit cell .
* @ return */
public double getMaxDimension ( ) { } } | if ( maxDimension != 0 ) { return maxDimension ; } Point3d vert0 = new Point3d ( 0 , 0 , 0 ) ; Point3d vert1 = new Point3d ( 1 , 0 , 0 ) ; transfToOrthonormal ( vert1 ) ; Point3d vert2 = new Point3d ( 0 , 1 , 0 ) ; transfToOrthonormal ( vert2 ) ; Point3d vert3 = new Point3d ( 0 , 0 , 1 ) ; transfToOrthonormal ( vert3 )... |
public class LazyReact { /** * Create a steam from provided Suppliers , e . g . Supplier will be executed asynchronously
* < pre >
* { @ code
* LazyReact . parallelCommonBuilder ( )
* . ofAsync ( ( ) - > loadFromDb ( ) , ( ) - > loadFromService1 ( ) ,
* ( ) - > loadFromService2 ( ) )
* . map ( this : : conv... | return reactI ( actions ) ; |
public class LocalDateCLA { /** * { @ inheritDoc } */
@ Override public LocalDate convert ( final String valueStr , final boolean _caseSensitive , final Object target ) throws ParseException { } } | if ( dtf == null ) if ( getFormat ( ) != null ) try { dtf = DateTimeFormatter . ofPattern ( getFormat ( ) ) ; } catch ( final Exception e ) { throw new ParseException ( "date format: " + e . getMessage ( ) , 0 ) ; } try { if ( dtf == null ) return TemporalHelper . parseWithPredefinedParsers ( valueStr ) . toLocalDate (... |
public class appfwpolicylabel_binding { /** * Use this API to fetch appfwpolicylabel _ binding resource of given name . */
public static appfwpolicylabel_binding get ( nitro_service service , String labelname ) throws Exception { } } | appfwpolicylabel_binding obj = new appfwpolicylabel_binding ( ) ; obj . set_labelname ( labelname ) ; appfwpolicylabel_binding response = ( appfwpolicylabel_binding ) obj . get_resource ( service ) ; return response ; |
public class CommitLog { /** * Forces a disk flush on the commit log files that need it . Blocking . */
public void sync ( boolean syncAllSegments ) { } } | CommitLogSegment current = allocator . allocatingFrom ( ) ; for ( CommitLogSegment segment : allocator . getActiveSegments ( ) ) { if ( ! syncAllSegments && segment . id > current . id ) return ; segment . sync ( ) ; } |
public class OIDMap { /** * Add a name to lookup table .
* @ param name the name of the attr
* @ param oid the string representation of the object identifier for
* the class .
* @ param clazz the Class object associated with this attribute
* @ exception CertificateException on errors . */
public static void a... | ObjectIdentifier objId ; try { objId = new ObjectIdentifier ( oid ) ; } catch ( IOException ioe ) { throw new CertificateException ( "Invalid Object identifier: " + oid ) ; } OIDInfo info = new OIDInfo ( name , objId , clazz ) ; if ( oidMap . put ( objId , info ) != null ) { throw new CertificateException ( "Object ide... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getComment ( ) { } } | if ( commentEClass == null ) { commentEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 351 ) ; } return commentEClass ; |
public class HudsonPrivateSecurityRealm { /** * Show the sign up page with the data from the identity . */
@ Override public HttpResponse commenceSignup ( final FederatedIdentity identity ) { } } | // store the identity in the session so that we can use this later
Stapler . getCurrentRequest ( ) . getSession ( ) . setAttribute ( FEDERATED_IDENTITY_SESSION_KEY , identity ) ; return new ForwardToView ( this , "signupWithFederatedIdentity.jelly" ) { @ Override public void generateResponse ( StaplerRequest req , Stap... |
public class AbsQuery { /** * Convenient method for chaining several select queries together .
* This method makes it easier to select multiple properties from one method call . It calls
* select for all of its arguments .
* @ param selections field names to be requested .
* @ return the calling query for chain... | checkNotNull ( selections , "Selections cannot be null. Please specify at least one." ) ; if ( selections . length == 0 ) { throw new IllegalArgumentException ( "Please provide a selection to be selected." ) ; } for ( int i = 0 ; i < selections . length ; i ++ ) { try { select ( selections [ i ] ) ; } catch ( IllegalSt... |
public class ConsumerSecurityVoter { /** * Votes on giving access to the specified authentication based on the security attributes .
* @ param authentication The authentication .
* @ param object The object .
* @ param configAttributes the ConfigAttributes .
* @ return The vote . */
public int vote ( Authentica... | int result = ACCESS_ABSTAIN ; if ( authentication . getDetails ( ) instanceof OAuthAuthenticationDetails ) { OAuthAuthenticationDetails details = ( OAuthAuthenticationDetails ) authentication . getDetails ( ) ; for ( Object configAttribute : configAttributes ) { ConfigAttribute attribute = ( ConfigAttribute ) configAtt... |
public class Grid { /** * Method declaration
* @ param head */
public void setHead ( String [ ] head ) { } } | iColCount = head . length ; sColHead = new String [ iColCount ] ; iColWidth = new int [ iColCount ] ; for ( int i = 0 ; i < iColCount ; i ++ ) { sColHead [ i ] = head [ i ] ; iColWidth [ i ] = 100 ; } iRowCount = 0 ; iRowHeight = 0 ; vData = new Vector ( ) ; |
public class ContentStoreServiceImpl { /** * Returns the content store item for the given url , returning null if not found .
* < p > After acquiring the item from the { @ link ContentStoreAdapter } , the item ' s descriptor is merged ( according
* to its { @ link org . craftercms . core . xml . mergers . Descripto... | // Add a leading slash if not present at the beginning of the url . This is done because although the store
// adapter normally ignores a leading slash , the merge strategies don ' t , and they need it to return the
// correct set of descriptor files to merge ( like all the impl of AbstractInheritFromHierarchyMergeStra... |
public class OkHttpStack { /** * / * package */
static void setConnectionParametersForRequest ( com . squareup . okhttp . Request . Builder builder , Request < ? > request ) throws IOException , AuthFailureError { } } | byte [ ] postBody = null ; if ( VolleyLog . DEBUG ) { VolleyLog . d ( "request.method = %1$s" , request . getMethod ( ) ) ; } switch ( request . getMethod ( ) ) { case Method . DEPRECATED_GET_OR_POST : // This is the deprecated way that needs to be handled for backwards compatibility .
// If the request ' s post body i... |
public class AccountsApi { /** * Update Consumer Disclosure .
* @ param accountId The external account number ( int ) or account ID Guid . ( required )
* @ param langCode The simple type enumeration the language used in the response . The supported languages , with the language value shown in parenthesis , are : Ar... | return updateConsumerDisclosure ( accountId , langCode , consumerDisclosure , null ) ; |
public class LogicalZipFile { /** * Key matches at position .
* @ param manifest
* the manifest
* @ param key
* the key
* @ param pos
* the position to try matching
* @ return true if the key matches at this position */
private static boolean keyMatchesAtPosition ( final byte [ ] manifest , final byte [ ]... | if ( pos + key . length + 1 > manifest . length || manifest [ pos + key . length ] != ':' ) { return false ; } for ( int i = 0 ; i < key . length ; i ++ ) { // Manifest keys are case insensitive
if ( toLowerCase [ manifest [ i + pos ] ] != key [ i ] ) { return false ; } } return true ; |
public class PHPMethods { /** * It flips the key and values of a map .
* @ param < K >
* @ param < V >
* @ param map
* @ return */
public static < K , V > Map < V , K > array_flip ( Map < K , V > map ) { } } | Map < V , K > flipped = new HashMap < > ( ) ; for ( Map . Entry < K , V > entry : map . entrySet ( ) ) { flipped . put ( entry . getValue ( ) , entry . getKey ( ) ) ; } return flipped ; |
public class Text { /** * Determines if the < code > descendant < / code > path is hierarchical a descendant of
* < code > path < / code > or equal to it .
* @ param path
* the path to check
* @ param descendant
* the potential descendant
* @ return < code > true < / code > if the < code > descendant < / co... | if ( path . equals ( descendant ) ) { return true ; } else { String pattern = path . endsWith ( "/" ) ? path : path + "/" ; return descendant . startsWith ( pattern ) ; } |
public class HighlightGenerator { /** * Create the shape which will highlight the provided bond .
* @ param bond the bond to highlight
* @ param radius the specified radius
* @ return the shape which will highlight the atom */
private static Shape createBondHighlight ( IBond bond , double radius ) { } } | double x1 = bond . getBegin ( ) . getPoint2d ( ) . x ; double x2 = bond . getEnd ( ) . getPoint2d ( ) . x ; double y1 = bond . getBegin ( ) . getPoint2d ( ) . y ; double y2 = bond . getEnd ( ) . getPoint2d ( ) . y ; double dx = x2 - x1 ; double dy = y2 - y1 ; double mag = Math . sqrt ( ( dx * dx ) + ( dy * dy ) ) ; dx ... |
public class DriverStatusManager { /** * Helper method to set the status .
* This also checks whether the transition from the current status to the new one is legal .
* @ param toStatus Driver status to transition to . */
private synchronized void setStatus ( final DriverStatus toStatus ) { } } | if ( this . driverStatus . isLegalTransition ( toStatus ) ) { this . driverStatus = toStatus ; } else { LOG . log ( Level . WARNING , "Illegal state transition: {0} -> {1}" , new Object [ ] { this . driverStatus , toStatus } ) ; } |
public class ViewImpl { /** * Parses the date interval from the given date / time definition node .
* @ param node the node to examine
* @ return the node ' s date interval , or < tt > null < / tt > if none is defined or
* it ' s invalid */
private static Interval < DateUnit > parseDateInterval ( JsonNode node ) ... | try { if ( node . hasNonNull ( "dateInterval" ) && node . get ( "dateInterval" ) . hasNonNull ( "aggregationType" ) ) { JsonNode dateInterval = node . get ( "dateInterval" ) ; DateUnit unit = DateUnit . valueOf ( dateInterval . get ( "aggregationType" ) . asText ( ) . toUpperCase ( Locale . ENGLISH ) ) ; JsonNode inter... |
public class Guid { /** * Reverse of { @ link # toString } . Deserializes a { @ link Guid } from a previously serialized one .
* @ param str Serialized { @ link Guid } .
* @ return deserialized { @ link Guid } .
* @ throws IOException */
public static Guid deserialize ( String str ) throws IOException { } } | if ( str . length ( ) != 2 * GUID_LENGTH ) { throw new IOException ( "String is not an encoded guid." ) ; } try { return new Guid ( Hex . decodeHex ( str . toCharArray ( ) ) , true ) ; } catch ( DecoderException de ) { throw new IOException ( de ) ; } |
public class AbstractNode { /** * Attempts to retrieve the object stored in this node ' s object field ; the
* result will be cast to the appropriate class , as per the user ' s input .
* @ param object
* the object owning the field represented by this node object . s
* @ param field
* the field containing th... | boolean reprotect = false ; if ( object == null ) { return null ; } try { if ( ! field . isAccessible ( ) ) { field . setAccessible ( true ) ; reprotect = true ; } Object value = field . get ( object ) ; if ( value != null ) { logger . trace ( "field '{}' has value '{}'" , field . getName ( ) , value ) ; return clazz .... |
public class SymbolTable { /** * Make sure all the given scopes in { @ code otherSymbolTable } are in this symbol table . */
< S extends StaticScope > void addScopes ( Collection < S > scopes ) { } } | for ( S scope : scopes ) { createScopeFrom ( scope ) ; } |
public class FileHelper { /** * Rename with retry .
* @ param from
* @ param to
* @ return < tt > true < / tt > if the file was successfully renamed . */
public boolean rename ( final File from , final File to ) { } } | boolean renamed = false ; if ( this . isWriteable ( from ) ) { renamed = from . renameTo ( to ) ; } else { LogLog . debug ( from + " is not writeable for rename (retrying)" ) ; } if ( ! renamed ) { from . renameTo ( to ) ; renamed = ( ! from . exists ( ) ) ; } return renamed ; |
public class EvidenceCollection { /** * Used to iterate over evidence of the specified type and confidence .
* @ param type the evidence type to iterate over
* @ param confidence the confidence level for the evidence to be iterated
* over .
* @ return Iterable & lt ; Evidence & gt ; an iterable collection of ev... | if ( null != confidence && null != type ) { final Set < Evidence > list ; switch ( type ) { case VENDOR : list = Collections . unmodifiableSet ( new HashSet < > ( vendors ) ) ; break ; case PRODUCT : list = Collections . unmodifiableSet ( new HashSet < > ( products ) ) ; break ; case VERSION : list = Collections . unmo... |
public class StringBufferWriter { /** * Write a portion of a string .
* @ param text the text to be written
* @ param offset offset from which to start writing characters
* @ param length Number of characters to write */
public void write ( String text , int offset , int length ) { } } | buffer . append ( text , offset , offset + length ) ; |
public class ICUHumanize { /** * Formats a date according to the given pattern .
* @ param value
* Date to be formatted
* @ param pattern
* The pattern . See { @ link dateFormatInstance ( String ) }
* @ return a formatted date / time string */
public static String formatDate ( final Date value , final String ... | return new SimpleDateFormat ( pattern , context . get ( ) . getLocale ( ) ) . format ( value ) ; |
public class Detector { /** * Finds a candidate center point of an Aztec code from an image
* @ return the center point */
private Point getMatrixCenter ( ) { } } | ResultPoint pointA ; ResultPoint pointB ; ResultPoint pointC ; ResultPoint pointD ; // Get a white rectangle that can be the border of the matrix in center bull ' s eye or
try { ResultPoint [ ] cornerPoints = new WhiteRectangleDetector ( image ) . detect ( ) ; pointA = cornerPoints [ 0 ] ; pointB = cornerPoints [ 1 ] ;... |
public class CodeAttr { /** * Indicate a local variable ' s use information be recorded in the
* ClassFile as a debugging aid . If the LocalVariable doesn ' t provide
* both a start and end location , then its information is not recorded .
* This method should be called at most once per LocalVariable instance . *... | if ( mLocalVariableTable == null ) { addAttribute ( new LocalVariableTableAttr ( getConstantPool ( ) ) ) ; } mLocalVariableTable . addEntry ( localVar ) ; |
public class ClassUtils { /** * Produces an array with all the instance fields of the specified class which match the supplied rules
* @ param c The class specified
* @ param excludePublic Exclude public fields if true
* @ param excludeProtected Exclude protected fields if true
* @ param excludePrivate Exclude ... | int inclusiveModifiers = 0 ; int exclusiveModifiers = Modifier . STATIC ; if ( excludePrivate ) { exclusiveModifiers += Modifier . PRIVATE ; } if ( excludePublic ) { exclusiveModifiers += Modifier . PUBLIC ; } if ( excludeProtected ) { exclusiveModifiers += Modifier . PROTECTED ; } return collectFields ( c , inclusiveM... |
public class StreamProviderHDFS { /** * Returns an array of the file statuses of the files / directories in the given
* path if it is a directory and an empty array otherwise . */
private FileStatus [ ] getFileStatusList ( final String pathString ) throws HadoopSecurityManagerException , IOException { } } | ensureHdfs ( ) ; final Path path = new Path ( pathString ) ; FileStatus pathStatus = null ; try { pathStatus = this . hdfs . getFileStatus ( path ) ; } catch ( final IOException e ) { cleanUp ( ) ; } if ( pathStatus != null && pathStatus . isDir ( ) ) { return this . hdfs . listStatus ( path ) ; } return new FileStatus... |
public class MPJwtBadMPConfigAsSystemProperties { /** * The server will be started with all mp - config properties incorrectly configured in the jvm . options file .
* The server . xml has a valid mp _ jwt config specified .
* The config settings should come from server . xml .
* The test should run successfully ... | resourceServer . reconfigureServerUsingExpandedConfiguration ( _testName , "rs_server_AltConfigNotInApp_goodServerXmlConfig.xml" ) ; standardTestFlow ( resourceServer , MpJwtFatConstants . NO_MP_CONFIG_IN_APP_ROOT_CONTEXT , MpJwtFatConstants . NO_MP_CONFIG_IN_APP_APP , MpJwtFatConstants . MPJWT_APP_CLASS_NO_MP_CONFIG_I... |
public class GlobToRegex { /** * Appends the regex form of the given normal character from the glob . */
private void appendNormal ( char c ) { } } | if ( REGEX_RESERVED . matches ( c ) ) { builder . append ( '\\' ) ; } builder . append ( c ) ; |
public class ExternalScriptable { /** * Sets the value of the named property , creating it if need be .
* @ param name the name of the property
* @ param start the object whose property is being set
* @ param value value to set the property to */
public void put ( String name , Scriptable start , Object value ) {... | if ( start == this ) { synchronized ( this ) { if ( isEmpty ( name ) ) { indexedProps . put ( name , value ) ; } else { synchronized ( context ) { int scope = context . getAttributesScope ( name ) ; if ( scope == - 1 ) { scope = ScriptContext . ENGINE_SCOPE ; } context . setAttribute ( name , jsToJava ( value ) , scope... |
public class CollapsedRequestSubject { /** * When set any client thread blocking on get ( ) will immediately be unblocked and receive the exception .
* @ throws IllegalStateException
* if called more than once or after setResponse .
* @ param e received exception that gets set on the initial command */
@ Override... | if ( ! isTerminated ( ) ) { subject . onError ( e ) ; } else { throw new IllegalStateException ( "Response has already terminated so exception can not be set" , e ) ; } |
public class PassCallPlan { /** * ( non - Javadoc )
* @ see jadex . bdi . runtime . Plan # body ( ) */
@ Override public void body ( ) { } } | IMessageEvent msg = ( IMessageEvent ) getReason ( ) ; String content = ( String ) msg . getParameter ( "content" ) . getValue ( ) ; if ( content . equalsIgnoreCase ( "UnknownLanguageCall" ) ) { this . getBeliefbase ( ) . getBelief ( "operatorTalking" ) . setFact ( true ) ; try { String type = ( String ) msg . getParame... |
public class BuildContext { /** * Pull the value of an element from a configuration tree . This can either
* be an absolute , relative , or external path .
* @ param path
* path to lookup
* @ param errorIfNotFound
* if true an EvaluationException will be thrown if the path
* can ' t be found
* @ return El... | // Set the initial node to use .
Element node = null ; // The initial element to use depends on the type of path . Define the
// correct root element .
switch ( path . getType ( ) ) { case ABSOLUTE : // Typical , very easy case . All absolute paths refer to this object .
node = root ; break ; case RELATIVE : // Check t... |
public class MessageItem { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . store . Item # itemReferencesDroppedToZero ( ) */
@ Override public void itemReferencesDroppedToZero ( ) { } } | super . itemReferencesDroppedToZero ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "itemReferencesDroppedToZero" ) ; if ( failedInitInRestore ) { try { initialiseNonPersistent ( true ) ; } catch ( SevereMessageStoreException e ) { FFDCFilter . processExcepti... |
public class Evaluation { /** * Returns the precision for a given label
* @ param classLabel the label
* @ param edgeCase What to output in case of 0/0
* @ return the precision for the label */
public double precision ( Integer classLabel , double edgeCase ) { } } | double tpCount = truePositives . getCount ( classLabel ) ; double fpCount = falsePositives . getCount ( classLabel ) ; return EvaluationUtils . precision ( ( long ) tpCount , ( long ) fpCount , edgeCase ) ; |
public class StepExecution { /** * Strategies used when step fails , we support Continue and Abort . Abort will fail the automation when the step
* fails . Continue will ignore the failure of current step and allow automation to run the next step . With
* conditional branching , we add step : stepName to support th... | if ( validNextSteps == null ) { validNextSteps = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return validNextSteps ; |
public class Serial { /** * < p > Sends one or more ASCII CharBuffers to the serial port / device identified by the given file descriptor . < / p >
* @ param fd
* The file descriptor of the serial port / device .
* @ param data
* One or more ASCII CharBuffers ( or an array ) of data to be transmitted . ( variab... | write ( fd , StandardCharsets . US_ASCII , data ) ; |
public class DescribeEnvironmentsResult { /** * Returns an < a > EnvironmentDescription < / a > list .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setEnvironments ( java . util . Collection ) } or { @ link # withEnvironments ( java . util . Collection ) }... | if ( this . environments == null ) { setEnvironments ( new com . amazonaws . internal . SdkInternalList < EnvironmentDescription > ( environments . length ) ) ; } for ( EnvironmentDescription ele : environments ) { this . environments . add ( ele ) ; } return this ; |
public class Formatter { /** * 将String转换成Double
* @ param string 需要转换为字符串
* @ return 转换结果 , 如果数值非法 , 则返回 - 1 */
public static double stringToDouble ( String string ) { } } | string = string . trim ( ) ; if ( Checker . isDecimal ( string ) ) { return Double . parseDouble ( string ) ; } return - 1 ; |
public class AbstractAuditDeleteBuilderImpl { /** * service methods */
protected JPAAuditLogService getJpaAuditLogService ( ) { } } | JPAAuditLogService jpaAuditLogService = this . jpaAuditService ; if ( jpaAuditLogService == null ) { jpaAuditLogService = this . executor . execute ( getJpaAuditLogServiceCommand ) ; } return jpaAuditLogService ; |
public class IntHashMap { /** * Returns < tt > true < / tt > if this map maps one or more keys to the
* specified value .
* @ param value value whose presence in this map is to be tested .
* @ return < tt > true < / tt > if this map maps one or more keys to the
* specified value . */
public boolean containsValu... | Entry tab [ ] = table ; if ( value == null ) { for ( int i = tab . length ; i -- > 0 ; ) { for ( Entry e = tab [ i ] ; e != null ; e = e . next ) { if ( e . value == null ) { return true ; } } } } else { for ( int i = tab . length ; i -- > 0 ; ) { for ( Entry e = tab [ i ] ; e != null ; e = e . next ) { if ( value . eq... |
public class policymap { /** * Use this API to delete policymap resources of given names . */
public static base_responses delete ( nitro_service client , String mappolicyname [ ] ) throws Exception { } } | base_responses result = null ; if ( mappolicyname != null && mappolicyname . length > 0 ) { policymap deleteresources [ ] = new policymap [ mappolicyname . length ] ; for ( int i = 0 ; i < mappolicyname . length ; i ++ ) { deleteresources [ i ] = new policymap ( ) ; deleteresources [ i ] . mappolicyname = mappolicyname... |
public class NioChildDatagramChannel { /** * Leave the specified multicast group at the specified interface using the specified source . */
public ChannelFuture leaveGroup ( InetAddress multicastAddress , NetworkInterface networkInterface , InetAddress source ) { } } | if ( DetectionUtil . javaVersion ( ) < 7 ) { throw new UnsupportedOperationException ( ) ; } else { if ( multicastAddress == null ) { throw new NullPointerException ( "multicastAddress" ) ; } if ( networkInterface == null ) { throw new NullPointerException ( "networkInterface" ) ; } synchronized ( this ) { if ( members... |
public class AbstractJaxbMojo { /** * Prints out the system properties to the Maven Log at Debug level . */
protected void logSystemPropertiesAndBasedir ( ) { } } | if ( getLog ( ) . isDebugEnabled ( ) ) { final StringBuilder builder = new StringBuilder ( ) ; builder . append ( "\n+=================== [System properties]\n" ) ; builder . append ( "|\n" ) ; // Sort the system properties
final SortedMap < String , Object > props = new TreeMap < String , Object > ( ) ; props . put ( ... |
public class Pays { /** * app支付
* @ param request 支付请求对象
* @ return AppPayResponse对象 , 或抛WepayException */
public AppPayResponse appPay ( PayRequest request ) { } } | checkPayParams ( request ) ; Map < String , Object > respData = doAppPay ( request , TradeType . APP ) ; return buildAppPayResp ( respData ) ; |
public class AutoListPage { /** * Prints an unordered list of the available pages . */
public static void printPageList ( ChainWriter out , WebSiteRequest req , HttpServletResponse resp , WebPage parent , WebPageLayout layout ) throws IOException , SQLException { } } | printPageList ( out , req , resp , parent . getCachedPages ( req ) , layout ) ; |
public class RallyCollectorTask { /** * Clean up unused rally collector items
* @ param collector
* the { @ link RallyCollector } */
@ SuppressWarnings ( "PMD.AvoidDeeplyNestedIfStmts" ) // agreed PMD , fixme
private void clean ( RallyCollector collector , List < RallyProject > existingProjects ) { } } | Set < ObjectId > uniqueIDs = new HashSet < > ( ) ; for ( com . capitalone . dashboard . model . Component comp : dbComponentRepository . findAll ( ) ) { if ( comp . getCollectorItems ( ) != null && ! comp . getCollectorItems ( ) . isEmpty ( ) ) { List < CollectorItem > itemList = comp . getCollectorItems ( ) . get ( Co... |
public class DetachSecurityProfileRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DetachSecurityProfileRequest detachSecurityProfileRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( detachSecurityProfileRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( detachSecurityProfileRequest . getSecurityProfileName ( ) , SECURITYPROFILENAME_BINDING ) ; protocolMarshaller . marshall ( detachSecurityProfileRequest . g... |
public class GroupsApi { /** * Search for groups . 18 + groups will only be returned for authenticated calls where the authenticated user is over 18.
* < br >
* This method does not require authentication .
* < br >
* @ param text ( Required ) The text to search for .
* @ param perPage ( Optional ) Number of ... | JinxUtils . validateParams ( text ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.groups.search" ) ; params . put ( "text" , text ) ; if ( perPage > 0 ) { params . put ( "per_page" , Integer . toString ( perPage ) ) ; } if ( page > 0 ) { params . put ( "page" , Integer . toS... |
public class RESTReflect { /** * Finds the path of a method . If the declaring class and the method are both
* annotated with { @ literal @ } Path , the paths will be concatenated .
* Leading or ending slashes in paths are not taken in account . The method
* will always add a leading slash and strip the ending sl... | Path pathFromClass = method . getDeclaringClass ( ) . getAnnotation ( Path . class ) ; Path pathFromMethod = method . getAnnotation ( Path . class ) ; String path = concatenatePathValues ( pathFromClass , pathFromMethod ) ; if ( path == null ) { return null ; } else { path = addLeadingSlash ( path ) ; return UriBuilder... |
public class PoolDeleteOptions { /** * Set a timestamp indicating the last modified time of the resource known to the client . The operation will be performed only if the resource on the service has not been modified since the specified time .
* @ param ifUnmodifiedSince the ifUnmodifiedSince value to set
* @ retur... | if ( ifUnmodifiedSince == null ) { this . ifUnmodifiedSince = null ; } else { this . ifUnmodifiedSince = new DateTimeRfc1123 ( ifUnmodifiedSince ) ; } return this ; |
public class Uris { /** * Perform am URI fragment identifier < strong > escape < / strong > operation
* on a { @ code String } input .
* This method simply calls the equivalent method in the { @ code UriEscape } class from the
* < a href = " http : / / www . unbescape . org " > Unbescape < / a > library .
* The... | return UriEscape . escapeUriFragmentId ( text , encoding ) ; |
public class AbstractResourceRegistration { /** * { @ inheritDoc } */
@ Override public final ManagementResourceRegistration getOverrideModel ( String name ) { } } | Assert . checkNotNullParam ( "name" , name ) ; if ( parent == null ) { throw ControllerLogger . ROOT_LOGGER . cannotOverrideRootRegistration ( ) ; } if ( ! PathElement . WILDCARD_VALUE . equals ( valueString ) ) { throw ControllerLogger . ROOT_LOGGER . cannotOverrideNonWildCardRegistration ( valueString ) ; } PathEleme... |
public class TokenStream { /** * Return the value of this token and move to the next token .
* @ return the value of the current token
* @ throws ParsingException if there is no such token to consume
* @ throws IllegalStateException if this method was called before the stream was { @ link # start ( ) started } */... | if ( completed ) throwNoMoreContent ( ) ; // Get the value from the current token . . .
String result = currentToken ( ) . value ( ) ; moveToNextToken ( ) ; return result ; |
public class RemovingSEofNBMechanism { /** * Initiates the process for the given mechanism . The atoms to apply are mapped between
* reactants and products .
* @ param atomContainerSet
* @ param atomList The list of atoms taking part in the mechanism . Only allowed one atom
* @ param bondList The list of bonds ... | CDKAtomTypeMatcher atMatcher = CDKAtomTypeMatcher . getInstance ( atomContainerSet . getBuilder ( ) ) ; if ( atomContainerSet . getAtomContainerCount ( ) != 1 ) { throw new CDKException ( "RemovingSEofNBMechanism only expects one IAtomContainer" ) ; } if ( atomList . size ( ) != 1 ) { throw new CDKException ( "Removing... |
public class RequiredRuleNameComputer { /** * Return the containing group if it contains exactly one element .
* @ since 2.14 */
protected AbstractElement getEnclosingSingleElementGroup ( AbstractElement elementToParse ) { } } | EObject container = elementToParse . eContainer ( ) ; if ( container instanceof Group ) { if ( ( ( Group ) container ) . getElements ( ) . size ( ) == 1 ) { return ( AbstractElement ) container ; } } return null ; |
public class GeographyValue { /** * Given a column of type GEOGRAPHY ( nbytes ) , return an upper bound on the
* number of characters needed to represent any entity of this type in WKT .
* @ param numBytes The size of the GEOGRAPHY value in bytes
* @ return Upper bound of characters needed for WKT string */
publi... | if ( numBytes < MIN_SERIALIZED_LENGTH ) { throw new IllegalArgumentException ( "Cannot compute max display size for a GEOGRAPHY value of size " + numBytes + " bytes, since minimum allowed size is " + MIN_SERIALIZED_LENGTH ) ; } // Vertices will dominate the WKT output , so compute the maximum
// number of vertices give... |
public class HThriftClient { /** * { @ inheritDoc } */
public HThriftClient close ( ) { } } | if ( log . isDebugEnabled ( ) ) { log . debug ( "Closing client {}" , this ) ; } if ( isOpen ( ) ) { try { transport . flush ( ) ; } catch ( Exception e ) { log . error ( "Could not flush transport (to be expected if the pool is shutting down) in close for client: " + toString ( ) , e ) ; } finally { try { transport . ... |
public class CopyFileExtensions { /** * Copies the given source file to the given destination file .
* @ param source
* The source file .
* @ param destination
* The destination file .
* @ return ' s true if the file is copied , otherwise false .
* @ throws IOException
* Is thrown if an error occurs by re... | return copyFile ( source , destination , true ) ; |
public class TypedVisitor { /** * Get the actual type arguments a child class has used to extend a generic base class .
* @ param baseClass the base class
* @ param childClass the child class
* @ return a list of the raw classes for the actual type arguments . */
static < T > List < Class > getTypeArguments ( Cla... | Map < Type , Type > resolvedTypes = new LinkedHashMap < Type , Type > ( ) ; Type type = childClass ; // start walking up the inheritance hierarchy until we hit baseClass
while ( ! getClass ( type ) . equals ( baseClass ) ) { if ( type instanceof Class ) { // there is no useful information for us in raw types , so just ... |
public class ProjectEntityExtensionController { /** * Gets the list of actions for an entity */
@ RequestMapping ( value = "actions/{entityType}/{id}" , method = RequestMethod . GET ) public Resources < Action > getActions ( @ PathVariable ProjectEntityType entityType , @ PathVariable ID id ) { } } | return Resources . of ( extensionManager . getExtensions ( ProjectEntityActionExtension . class ) . stream ( ) . map ( x -> x . getAction ( getEntity ( entityType , id ) ) . map ( action -> resolveExtensionAction ( x , action ) ) ) . filter ( Optional :: isPresent ) . map ( Optional :: get ) . collect ( Collectors . to... |
public class NetworkUtils { /** * Utility method for accessing public interfaces .
* @ return The { @ link Collection } of public interfaces .
* @ throws SocketException If there ' s a socket error accessing the
* interfaces . */
public static Collection < InetAddress > getNetworkInterfaces ( ) throws SocketExcep... | final Collection < InetAddress > addresses = new ArrayList < InetAddress > ( ) ; final Enumeration < NetworkInterface > e = NetworkInterface . getNetworkInterfaces ( ) ; while ( e . hasMoreElements ( ) ) { final NetworkInterface ni = e . nextElement ( ) ; final Enumeration < InetAddress > niAddresses = ni . getInetAddr... |
public class SequenceValueGenerator { /** * Reset the sequence .
* @ param initialValue first value produced by sequence */
public void reset ( int initialValue ) throws FetchException , PersistException { } } | synchronized ( mStoredSequence ) { Transaction txn = mRepository . enterTopTransaction ( null ) ; txn . setForUpdate ( true ) ; try { boolean doUpdate = mStoredSequence . tryLoad ( ) ; mStoredSequence . setInitialValue ( initialValue ) ; // Start as small as possible to allow signed long comparisons to work .
mStoredSe... |
public class LocalConnectionManager { /** * Opens the project specified by the file path or URI given in
* the constructor .
* @ return a Protege { @ link Project } .
* @ see ConnectionManager # initProject ( ) */
@ SuppressWarnings ( "unchecked" ) @ Override protected Project initProject ( ) { } } | Collection errors = new ArrayList ( ) ; String projectFilePathOrURI = getProjectIdentifier ( ) ; return new Project ( projectFilePathOrURI , errors ) ; |
public class RuleBasedCollator { /** * Sets the case first mode to the initial mode set during construction of the RuleBasedCollator . See
* setUpperCaseFirst ( boolean ) and setLowerCaseFirst ( boolean ) for more details .
* @ see # isLowerCaseFirst
* @ see # isUpperCaseFirst
* @ see # setLowerCaseFirst ( bool... | checkNotFrozen ( ) ; CollationSettings defaultSettings = getDefaultSettings ( ) ; if ( settings . readOnly ( ) == defaultSettings ) { return ; } CollationSettings ownedSettings = getOwnedSettings ( ) ; ownedSettings . setCaseFirstDefault ( defaultSettings . options ) ; setFastLatinOptions ( ownedSettings ) ; |
public class AggregationState { /** * visibleForTest */
SortedMap < PrimaryKey , RangeTree < PrimaryKey , AggregationChunk > > groupByPartition ( int partitioningKeyLength ) { } } | SortedMap < PrimaryKey , RangeTree < PrimaryKey , AggregationChunk > > partitioningKeyToTree = new TreeMap < > ( ) ; Set < AggregationChunk > allChunks = prefixRanges [ 0 ] . getAll ( ) ; for ( AggregationChunk chunk : allChunks ) { PrimaryKey minKeyPrefix = chunk . getMinPrimaryKey ( ) . prefix ( partitioningKeyLength... |
public class TransactionService { /** * This function returns a { @ link List } of PAYMILL { @ link Transaction } objects . In which order this list is returned depends on
* the optional parameters . If < code > null < / code > is given , no filter or order will be applied , overriding the default count and
* offse... | return RestfulUtils . list ( TransactionService . PATH , filter , order , count , offset , Transaction . class , super . httpClient ) ; |
public class OrtcMessage { /** * CAUSE : Prefer throwing / catching meaningful exceptions instead of Exception */
public static OrtcMessage parseMessage ( String message ) throws IOException { } } | OrtcOperation operation = null ; String JSONMessage = null ; String parsedMessage = null ; String filteredByServer = null ; String seqId = null ; String messageChannel = null ; String messageId = null ; int messagePart = - 1 ; int messageTotalParts = - 1 ; Matcher matcher = operationPattern . matcher ( message ) ; if (... |
public class CmsImageScaler { /** * Initializes the crop area setting . < p >
* Only if all 4 required parameters have been set , the crop area is set accordingly .
* Moreover , it is not required to specify the target image width and height when using crop ,
* because these parameters can be calculated from the ... | if ( isCropping ( ) ) { // crop area is set up correctly
// adjust target image height or width if required
if ( m_width < 0 ) { m_width = m_cropWidth ; } if ( m_height < 0 ) { m_height = m_cropHeight ; } if ( ( getType ( ) != 6 ) && ( getType ( ) != 7 ) && ( getType ( ) != 8 ) ) { // cropping type can only be 6 or 7 (... |
public class UserAgentParser { /** * 解析引擎类型
* @ param userAgentString User - Agent字符串
* @ return 引擎类型 */
private static Engine parseEngine ( String userAgentString ) { } } | for ( Engine engine : Engine . engines ) { if ( engine . isMatch ( userAgentString ) ) { return engine ; } } return Engine . Unknown ; |
public class OGNLShortcutExpression { /** * Translation from ' execInfo ' context variable ( $ { execInfo } ) to ' execInfo ' expression object ( $ { # execInfo } ) , needed
* since 3.0.0.
* Note this is expressed as a separate method in order to mark this as deprecated and make it easily locatable .
* @ param pr... | if ( "execInfo" . equals ( propertyName ) ) { LOGGER . warn ( "[THYMELEAF][{}] Found Thymeleaf Standard Expression containing a call to the context variable " + "\"execInfo\" (e.g. \"${execInfo.templateName}\"), which has been deprecated. The " + "Execution Info should be now accessed as an expression object instead " ... |
public class AbstractRadial { /** * Returns the image with the given lcd color .
* @ param BOUNDS
* @ param LCD _ COLOR
* @ param CUSTOM _ LCD _ BACKGROUND
* @ param IMAGE
* @ return buffered image containing the lcd with the selected lcd color */
protected BufferedImage createLcdImage ( final Rectangle2D BOU... | return LCD_FACTORY . create_LCD_Image ( BOUNDS , LCD_COLOR , CUSTOM_LCD_BACKGROUND , IMAGE ) ; |
public class SasFileParser { /** * The function to read the pointer with the subheaderPointerIndex index from the list of { @ link SubheaderPointer }
* located at the subheaderPointerOffset offset .
* @ param subheaderPointerOffset the offset before the list of { @ link SubheaderPointer } .
* @ param subheaderPoi... | int intOrLongLength = sasFileProperties . isU64 ( ) ? BYTES_IN_LONG : BYTES_IN_INT ; int subheaderPointerLength = sasFileProperties . isU64 ( ) ? SUBHEADER_POINTER_LENGTH_X64 : SUBHEADER_POINTER_LENGTH_X86 ; long totalOffset = subheaderPointerOffset + subheaderPointerLength * ( ( long ) subheaderPointerIndex ) ; Long [... |
public class SchemasInner { /** * Gets a list of integration account schemas .
* @ 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 ; IntegrationAccount... | return listByIntegrationAccountsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < IntegrationAccountSchemaInner > > , Page < IntegrationAccountSchemaInner > > ( ) { @ Override public Page < IntegrationAccountSchemaInner > call ( ServiceResponse < Page < IntegrationAccountSchemaI... |
public class AbstractItem { /** * If the receiver is currently ' in ' an { @ link ItemStream } then remove
* it from the { @ link ItemStream } . The removal is performed under the
* aegis of a transaction , and is subject to the item being removable .
* An item is removable if either :
* < ul >
* < li > The i... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "remove" ) ; Membership membership = _getMembership ( ) ; if ( null == membership ) { throw new NotInMessageStore ( ) ; } else { membership . cmdRemove ( lockID , transaction ) ; } if ( TraceComponent . isAnyTracingEn... |
public class ClassDocImpl { /** * Return true if this is a ordinary class ,
* not an enumeration , exception , an error , or an interface . */
@ Override public boolean isOrdinaryClass ( ) { } } | if ( isEnum ( ) || isInterface ( ) || isAnnotationType ( ) ) { return false ; } for ( Type t = type ; t . hasTag ( CLASS ) ; t = env . types . supertype ( t ) ) { if ( t . tsym == env . syms . errorType . tsym || t . tsym == env . syms . exceptionType . tsym ) { return false ; } } return true ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.