signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DTDValidator { /** * Internal methods */
protected void checkIdRefs ( ) throws XMLStreamException { } } | /* 02 - Oct - 2004 , TSa : Now we can also check that all id references
* pointed to ids that actually are defined */
if ( mIdMap != null ) { ElementId ref = mIdMap . getFirstUndefined ( ) ; if ( ref != null ) { // problem !
reportValidationProblem ( "Undefined id '" + ref . getId ( ) + "': referenced from element <"... |
public class DatabaseAccountsInner { /** * Regenerates an access key for the specified Azure Cosmos DB database account .
* @ param resourceGroupName Name of an Azure resource group .
* @ param accountName Cosmos DB database account name .
* @ param keyKind The access key to regenerate . Possible values include :... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( account... |
public class TinylogLoggingProvider { /** * Calculates for which tag a full stack trace element with method name , file name and line number is required .
* @ param logEntryValues
* Matrix with required log entry values
* @ return Each set bit represents a tag that requires a full stack trace element */
private s... | BitSet result = new BitSet ( logEntryValues . length ) ; for ( int i = 0 ; i < logEntryValues . length ; ++ i ) { Collection < LogEntryValue > values = logEntryValues [ i ] [ Level . ERROR . ordinal ( ) ] ; if ( values . contains ( LogEntryValue . METHOD ) || values . contains ( LogEntryValue . FILE ) || values . conta... |
public class AbstractServiceValidateController { /** * Validate service ticket assertion .
* @ param service the service
* @ param serviceTicketId the service ticket id
* @ return the assertion */
protected Assertion validateServiceTicket ( final WebApplicationService service , final String serviceTicketId ) { } ... | return serviceValidateConfigurationContext . getCentralAuthenticationService ( ) . validateServiceTicket ( serviceTicketId , service ) ; |
public class ConfigChangeListenerThread { /** * ( non - Javadoc )
* @ see java . lang . Thread # run ( ) */
@ Override public void run ( ) { } } | // Flag to avoid checking the very first time , when the request handler
// has just started .
boolean firstRun = true ; while ( continuePolling ) { try { // Must check before sleeping , otherwise stopPolling does not
// work .
if ( ! firstRun ) { if ( propertiesSource . configChanged ( ) ) { Properties props = propert... |
public class ContentPackage { /** * Adds a binary file with explicit mime type .
* @ param path Full content path and file name of file
* @ param file File with binary data
* @ param contentType Mime type , optionally with " ; charset = XYZ " extension
* @ throws IOException I / O exception */
public void addFi... | try ( InputStream is = new FileInputStream ( file ) ) { addFile ( path , is , contentType ) ; } |
public class DataJoinJob { /** * Submit / run a map / reduce job .
* @ param job
* @ return true for success
* @ throws IOException */
public static boolean runJob ( JobConf job ) throws IOException { } } | JobClient jc = new JobClient ( job ) ; boolean sucess = true ; RunningJob running = null ; try { running = jc . submitJob ( job ) ; JobID jobId = running . getID ( ) ; System . out . println ( "Job " + jobId + " is submitted" ) ; while ( ! running . isComplete ( ) ) { System . out . println ( "Job " + jobId + " is stil... |
public class CmsStringUtil { /** * Checks if the first path is a prefix of the second path , but not equivalent to it . < p >
* @ param firstPath the first path
* @ param secondPath the second path
* @ return true if the first path is a prefix path of the second path , but not equivalent */
public static boolean ... | firstPath = CmsStringUtil . joinPaths ( firstPath , "/" ) ; secondPath = CmsStringUtil . joinPaths ( secondPath , "/" ) ; return secondPath . startsWith ( firstPath ) && ! firstPath . equals ( secondPath ) ; |
public class DocumentBuilder { /** * Parse the content of the given URI as an XML document
* and return a new DOM { @ link Document } object .
* An < code > IllegalArgumentException < / code > is thrown if the
* URI is < code > null < / code > null .
* @ param uri The location of the content to be parsed .
* ... | if ( uri == null ) { throw new IllegalArgumentException ( "URI cannot be null" ) ; } InputSource in = new InputSource ( uri ) ; return parse ( in ) ; |
public class BaseMonetaryCurrenciesSingletonSpi { /** * Provide access to all currently known currencies .
* @ param providers the ( optional ) specification of providers to consider . If not set ( empty ) the providers
* as defined by # getDefaultRoundingProviderChain ( ) should be used .
* @ return a collection... | return getCurrencies ( CurrencyQueryBuilder . of ( ) . setProviderNames ( providers ) . build ( ) ) ; |
public class DockerFileUtil { /** * Extract all lines containing the given keyword
* @ param dockerFile dockerfile to examine
* @ param keyword keyword to extract the lines for
* @ param interpolator interpolator for replacing properties
* @ return list of matched lines or an empty list */
public static List < ... | List < String [ ] > ret = new ArrayList < > ( ) ; try ( BufferedReader reader = new BufferedReader ( new FileReader ( dockerFile ) ) ) { String line ; while ( ( line = reader . readLine ( ) ) != null ) { String lineInterpolated = interpolator . interpolate ( line ) ; String [ ] lineParts = lineInterpolated . split ( "\... |
public class SchemaParser { /** * Parse a reader of schema definitions and create a { @ link TypeDefinitionRegistry }
* @ param reader the reader to parse
* @ return registry of type definitions
* @ throws SchemaProblem if there are problems compiling the schema definitions */
public TypeDefinitionRegistry parse ... | try ( Reader input = reader ) { return parseImpl ( input ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } |
public class CertificateManager { /** * This method retrieves a public certificate from a key store .
* @ param keyStore The key store containing the certificate .
* @ param certificateName The name ( alias ) of the certificate .
* @ return The X509 format public certificate . */
public final X509Certificate retr... | try { logger . entry ( ) ; X509Certificate certificate = ( X509Certificate ) keyStore . getCertificate ( certificateName ) ; logger . exit ( ) ; return certificate ; } catch ( KeyStoreException e ) { RuntimeException exception = new RuntimeException ( "An unexpected exception occurred while attempting to retrieve a cer... |
public class Assert { /** * Asserts that { @ code runnable } throws an exception of type { @ code expectedThrowable } when
* executed . If it does , the exception object is returned . If it does not throw an exception , an
* { @ link AssertionError } is thrown . If it throws the wrong type of exception , an { @ cod... | try { runnable . run ( ) ; } catch ( Throwable actualThrown ) { if ( expectedThrowable . isInstance ( actualThrown ) ) { @ SuppressWarnings ( "unchecked" ) T retVal = ( T ) actualThrown ; return retVal ; } else { String expected = formatClass ( expectedThrowable ) ; Class < ? extends Throwable > actualThrowable = actua... |
public class ClassFile { /** * Specify what target virtual machine version classfile should generate
* for . Calling this method changes the major and minor version of the
* classfile format .
* @ param target VM version , 1.0 , 1.1 , etc .
* @ throws IllegalArgumentException if target is not supported */
publi... | int major , minor ; if ( target == null || "1.0" . equals ( target ) || "1.1" . equals ( target ) ) { major = 45 ; minor = 3 ; if ( target == null ) { target = "1.0" ; } } else if ( "1.2" . equals ( target ) ) { major = 46 ; minor = 0 ; } else if ( "1.3" . equals ( target ) ) { major = 47 ; minor = 0 ; } else if ( "1.4... |
public class HotSpotJavaDumperImpl { /** * Create a heap dump . This is the same as jmap - dump : file = . . .
* @ param outputDir the server output directory
* @ return the resulting file */
private File createHeapDump ( File outputDir ) { } } | if ( hotSpotDiagnosticName == null ) { return null ; } File outputFile ; try { // The default dump name is " java . hprof " .
outputFile = createNewFile ( outputDir , "java" , "hprof" ) ; platformMBeanServer . invoke ( hotSpotDiagnosticName , "dumpHeap" , new Object [ ] { outputFile . getAbsolutePath ( ) , false } , ne... |
public class InjectionBinding { /** * Merges a value specified in XML .
* < p > If an error occurs , { @ link # mergeError } will be called , which
* requires { @ link # getJNDIEnvironmentRefType } to be defined .
* @ param oldValue the old value
* @ param newValue the new value
* @ param elementName the name... | if ( newValue == null ) { return oldValue ; } if ( oldValue != null && ! newValue . equals ( oldValue ) ) { Object oldValueName = valueNames == null ? oldValue : valueNames . get ( oldValue ) ; Object newValueName = valueNames == null ? newValue : valueNames . get ( newValue ) ; mergeError ( oldValueName , newValueName... |
public class AbstractHTMLFilter { /** * Moves all child elements of the parent into destination element .
* @ param parent the parent { @ link Element } .
* @ param destination the destination { @ link Element } . */
protected void moveChildren ( Element parent , Element destination ) { } } | NodeList children = parent . getChildNodes ( ) ; while ( children . getLength ( ) > 0 ) { destination . appendChild ( parent . removeChild ( parent . getFirstChild ( ) ) ) ; } |
public class AbstractJcrNode { /** * Find the property definition for the property , given this node ' s primary type and mixin types .
* @ param property the property owned by this node ; may not be null
* @ param primaryType the name of the node ' s primary type ; may not be null
* @ param mixinTypes the names ... | // Figure out the JCR property type . . .
boolean single = property . isSingle ( ) ; boolean skipProtected = false ; JcrPropertyDefinition defn = findBestPropertyDefinition ( primaryType , mixinTypes , property , single , skipProtected , false , nodeTypes ) ; if ( defn != null ) return defn ; // See if there is a defin... |
public class FTPControlChannel { /** * Closes the control channel */
public void close ( ) throws IOException { } } | logger . debug ( "ftp socket closed" ) ; if ( ftpIn != null ) ftpIn . close ( ) ; if ( ftpOut != null ) ftpOut . close ( ) ; if ( socket != null ) socket . close ( ) ; hasBeenOpened = false ; |
public class TwoDScrollView { /** * < p > Scrolls the view to make the area defined by < code > top < / code > and
* < code > bottom < / code > visible . This method attempts to give the focus
* to a component visible in this area . If no component can be focused in
* the new visible area , the focus is reclaimed... | boolean handled = true ; int height = getHeight ( ) ; int containerTop = getScrollY ( ) ; int containerBottom = containerTop + height ; boolean up = directionY == View . FOCUS_UP ; int width = getWidth ( ) ; int containerLeft = getScrollX ( ) ; int containerRight = containerLeft + width ; boolean leftwards = directionX... |
public class CommerceDiscountRelUtil { /** * Returns the commerce discount rels before and after the current commerce discount rel in the ordered set where commerceDiscountId = & # 63 ; .
* @ param commerceDiscountRelId the primary key of the current commerce discount rel
* @ param commerceDiscountId the commerce d... | return getPersistence ( ) . findByCommerceDiscountId_PrevAndNext ( commerceDiscountRelId , commerceDiscountId , orderByComparator ) ; |
public class AmazonAppStreamClient { /** * Starts the specified fleet .
* @ param startFleetRequest
* @ return Result of the StartFleet operation returned by the service .
* @ throws ResourceNotFoundException
* The specified resource was not found .
* @ throws OperationNotPermittedException
* The attempted ... | request = beforeClientExecution ( request ) ; return executeStartFleet ( request ) ; |
public class ExceptionUtils { /** * Throws the given { @ code Throwable } in scenarios where the signatures do allow to
* throw a Exception . Errors and Exceptions are thrown directly , other " exotic "
* subclasses of Throwable are wrapped in an Exception .
* @ param t The throwable to be thrown . */
public stat... | if ( t instanceof Error ) { throw ( Error ) t ; } else if ( t instanceof Exception ) { throw ( Exception ) t ; } else { throw new Exception ( t . getMessage ( ) , t ) ; } |
public class JsDocInfoParser { /** * FieldTypeList : = FieldType | FieldType ' , ' FieldTypeList */
private Node parseFieldTypeList ( JsDocToken token ) { } } | Node fieldTypeList = newNode ( Token . LB ) ; Set < String > names = new HashSet < > ( ) ; do { Node fieldType = parseFieldType ( token ) ; if ( fieldType == null ) { return null ; } String name = fieldType . isStringKey ( ) ? fieldType . getString ( ) : fieldType . getFirstChild ( ) . getString ( ) ; if ( names . add ... |
public class XmlQueueExporter { /** * Exports all available queues to an XML file . */
static void export ( String path , DbConn cnx , List < String > qNames ) throws JqmXmlException { } } | if ( cnx == null ) { throw new IllegalArgumentException ( "database connection cannot be null" ) ; } if ( qNames == null || qNames . isEmpty ( ) ) { throw new IllegalArgumentException ( "queue names list name cannot be null or empty" ) ; } List < Queue > qList = new ArrayList < > ( ) ; for ( String qn : qNames ) { Queu... |
public class SipFactoryImpl { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipFactory # createAddress ( javax . servlet . sip . URI ) */
public Address createAddress ( URI uri ) { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Creating Address fromm URI[" + uri . toString ( ) + "]" ) ; } URIImpl uriImpl = ( URIImpl ) uri ; return new AddressImpl ( SipFactoryImpl . addressFactory . createAddress ( uriImpl . getURI ( ) ) , null , ModifiableRule . Modifiable ) ; |
public class DomainsInner { /** * Lists domain ownership identifiers .
* Lists domain ownership identifiers .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param domainName Name of domain .
* @ throws IllegalArgumentException thrown if parameters fail the validation ... | ServiceResponse < Page < DomainOwnershipIdentifierInner > > response = listOwnershipIdentifiersSinglePageAsync ( resourceGroupName , domainName ) . toBlocking ( ) . single ( ) ; return new PagedList < DomainOwnershipIdentifierInner > ( response . body ( ) ) { @ Override public Page < DomainOwnershipIdentifierInner > ne... |
public class Keys { /** * Gets the { @ code Key } hierarchy of the specified entity .
* The ancestor is the first entry .
* @ param key The { @ code Key } of the specified entity .
* @ return The { @ code Key } hierarchy of the specified entity . */
public static List < Key > hierarchy ( Key key ) { } } | List < Key > hierarchy = new ArrayList < Key > ( ) ; hierarchy . add ( key ) ; while ( key . getParent ( ) != null ) { key = key . getParent ( ) ; hierarchy . add ( key ) ; } Collections . reverse ( hierarchy ) ; return hierarchy ; |
public class CommonOps_DDRM { /** * < p > Performs the following operation : < br >
* < br >
* c = a + b < br >
* c < sub > ij < / sub > = a < sub > ij < / sub > + b < sub > ij < / sub > < br >
* Matrix C can be the same instance as Matrix A and / or B .
* @ param a A Matrix . Not modified .
* @ param b A M... | if ( a . numCols != b . numCols || a . numRows != b . numRows ) { throw new MatrixDimensionException ( "The matrices are not all the same dimension." ) ; } c . reshape ( a . numRows , a . numCols ) ; final int length = a . getNumElements ( ) ; for ( int i = 0 ; i < length ; i ++ ) { c . set ( i , a . get ( i ) + b . ge... |
public class AbstractMemberWriter { /** * Add use information to the documentation tree .
* @ param mems list of program elements for which the use information will be added
* @ param heading the section heading
* @ param tableSummary the summary for the use table
* @ param contentTree the content tree to which... | if ( mems == null ) { return ; } List < ? extends ProgramElementDoc > members = mems ; boolean printedUseTableHeader = false ; if ( members . size ( ) > 0 ) { Content table = HtmlTree . TABLE ( HtmlStyle . useSummary , 0 , 3 , 0 , tableSummary , writer . getTableCaption ( heading ) ) ; Content tbody = new HtmlTree ( Ht... |
public class AtomicRateLimiter { /** * { @ inheritDoc } */
@ Override public void changeTimeoutDuration ( final Duration timeoutDuration ) { } } | RateLimiterConfig newConfig = RateLimiterConfig . from ( state . get ( ) . config ) . timeoutDuration ( timeoutDuration ) . build ( ) ; state . updateAndGet ( currentState -> new State ( newConfig , currentState . activeCycle , currentState . activePermissions , currentState . nanosToWait ) ) ; |
public class PDPageContentStreamExt { /** * Writes a real real to the content stream .
* @ param real
* the value to be written
* @ throws IOException
* In case of IO error */
protected void writeOperand ( final float real ) throws IOException { } } | final int byteCount = NumberFormatUtil . formatFloatFast ( real , formatDecimal . getMaximumFractionDigits ( ) , formatBuffer ) ; if ( byteCount == - 1 ) { // Fast formatting failed
write ( formatDecimal . format ( real ) ) ; } else { m_aOS . write ( formatBuffer , 0 , byteCount ) ; } m_aOS . write ( ' ' ) ; |
public class TokenStream { /** * Attempt to consume this current token and the next tokens if and only if they match the expected values , and return whether
* this method was indeed able to consume all of the supplied tokens .
* This is < i > not < / i > the same as calling { @ link # canConsume ( String ) } for e... | if ( completed ) return false ; ListIterator < Token > iter = tokens . listIterator ( tokenIterator . previousIndex ( ) ) ; if ( ! iter . hasNext ( ) ) return false ; Token token = iter . next ( ) ; if ( currentExpected != ANY_VALUE && ! token . matches ( currentExpected ) ) return false ; for ( String nextExpected : e... |
public class TimeSeries { /** * Record events at a timestamp into the time series .
* @ param timeNano the time in nano seconds
* @ param numEvents the number of events happened at timeNano */
public void record ( long timeNano , int numEvents ) { } } | long leftEndPoint = bucket ( timeNano ) ; mSeries . put ( leftEndPoint , mSeries . getOrDefault ( leftEndPoint , 0 ) + numEvents ) ; |
public class CmsEditModelPageMenuEntry { /** * Checks if the model page menu entry should be visible . < p >
* @ param id the id of the model page
* @ return true if the entry should be visible */
public static boolean checkVisible ( CmsUUID id ) { } } | boolean show = false ; if ( CmsSitemapView . getInstance ( ) . getController ( ) . isEditable ( ) ) { CmsNewResourceInfo info = CmsSitemapView . getInstance ( ) . getController ( ) . getData ( ) . getNewResourceInfoById ( id ) ; show = CmsSitemapView . getInstance ( ) . isModelPageMode ( ) && ( ( ( info != null ) && in... |
public class PubSubOutputHandler { /** * Creates a NOTFLUSHED message for sending
* @ param target The target cellule ( er ME ) for the message .
* @ param stream The UUID of the stream the message should be sent on .
* @ param reqID The request ID that the message answers .
* @ return the new NOTFLUSHED messag... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createControlNotFlushed" , new Object [ ] { target , stream , new Long ( reqID ) } ) ; ControlNotFlushed notFlushedMsg ; // Create new message
try { notFlushedMsg = _cmf . createNewControlNotFlushed ( ) ; } catch ( MessageC... |
public class DateColumn { /** * Returns the count of missing values in this column */
@ Override public int countMissing ( ) { } } | int count = 0 ; for ( int i = 0 ; i < size ( ) ; i ++ ) { if ( getPackedDate ( i ) == DateColumnType . missingValueIndicator ( ) ) { count ++ ; } } return count ; |
public class AtomDeserializer { /** * Skips the next atom . */
public void skipNext ( ) throws IOException { } } | nameDeserializer . skipNext ( ) ; nextFlags = nextFlags == Integer . MIN_VALUE ? in . readUnsignedByte ( ) : nextFlags ; if ( ( nextFlags & ColumnSerializer . RANGE_TOMBSTONE_MASK ) != 0 ) type . rangeTombstoneSerializer ( ) . skipBody ( in , version ) ; else type . columnSerializer ( ) . skipColumnBody ( in , nextFlag... |
public class ControlBeanContextSupport { /** * This public api is necessary to allow a bean context with a peer to deserialize its children .
* This api is not part any standard api .
* @ param in ObjectInputStream
* @ throws IOException
* @ throws ClassNotFoundException */
public final void readChildren ( Obje... | int childCount = in . readInt ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { internalAdd ( in . readObject ( ) , false ) ; } |
public class TableProcessor { /** * Populate metadata .
* @ param < X >
* the generic type
* @ param < T >
* the generic type
* @ param metadata
* the metadata
* @ param clazz
* the clazz */
private < X extends Class , T extends Object > void populateMetadata ( EntityMetadata metadata , Class < X > claz... | // process for metamodelImpl
if ( metadata . getPersistenceUnit ( ) != null ) { MetaModelBuilder < X , T > metaModelBuilder = kunderaMetadata . getApplicationMetadata ( ) . getMetaModelBuilder ( metadata . getPersistenceUnit ( ) ) ; onBuildMetaModelSuperClass ( clazz . getSuperclass ( ) , metaModelBuilder ) ; metaModel... |
public class PkRSS { /** * Similar to { @ link PkRSS # get ( String ) } but also looks for the search term .
* @ param url Safe URL to look up loaded articles from .
* @ param search Search term .
* @ return A { @ link List } containing all loaded articles associated with that
* URL and query . May be null if n... | if ( search == null ) return articleMap . get ( url ) ; return articleMap . get ( url + "?s=" + Uri . encode ( search ) ) ; |
public class LazyUserTransaction { protected void suspendForcedlyBegunLazyTransactionIfNeeds ( ) throws SystemException { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "#lazyTx ...Suspending the outer forcedly-begun lazy transaction: {}" , buildLazyTxExp ( ) ) ; } final Transaction suspended = transactionManager . suspend ( ) ; arrangeForcedlyBegunResumer ( ( ) -> { if ( isHerarchyLevelFirst ( ) ) { if ( logger . isDebugEnabled ( ... |
public class ProjectUtils { /** * Creates a project for Roboconf .
* @ param targetDirectory the directory into which the Roboconf files must be copied
* @ param creationBean the creation properties
* @ throws IOException if something went wrong */
public static void createProjectSkeleton ( File targetDirectory ,... | if ( creationBean . isMavenProject ( ) ) createMavenProject ( targetDirectory , creationBean ) ; else createSimpleProject ( targetDirectory , creationBean ) ; |
public class JSConverter { /** * serialize a List ( as Array )
* @ param name
* @ param list List to serialize
* @ param sb
* @ param done
* @ return serialized list
* @ throws ConverterException */
private void _serializeList ( String name , List list , StringBuilder sb , Set < Object > done ) throws Conve... | if ( useShortcuts ) sb . append ( "[];" ) ; else sb . append ( "new Array();" ) ; ListIterator it = list . listIterator ( ) ; int index = - 1 ; while ( it . hasNext ( ) ) { // if ( index ! = - 1 ) sb . append ( " , " ) ;
index = it . nextIndex ( ) ; sb . append ( name + "[" + index + "]=" ) ; _serialize ( name + "[" + ... |
public class StAXEncoder { /** * Closes any start tags and writes corresponding end tags .
* ( non - Javadoc )
* @ see javax . xml . stream . XMLStreamWriter # writeEndDocument ( ) */
public void writeEndDocument ( ) throws XMLStreamException { } } | try { checkPendingATEvents ( ) ; encoder . encodeEndDocument ( ) ; encoder . flush ( ) ; } catch ( Exception e ) { throw new XMLStreamException ( e . getLocalizedMessage ( ) , e ) ; } |
public class AmazonIdentityManagementClient { /** * Lists the tags that are attached to the specified role . The returned list of tags is sorted by tag key . For more
* information about tagging , see < a href = " https : / / docs . aws . amazon . com / IAM / latest / UserGuide / id _ tags . html " > Tagging
* IAM ... | request = beforeClientExecution ( request ) ; return executeListRoleTags ( request ) ; |
public class ConvertImage { /** * Converts a { @ link Planar } into the equivalent { @ link InterleavedF32}
* @ param input ( Input ) Planar image that is being converted . Not modified .
* @ param output ( Optional ) The output image . If null a new image is created . Modified .
* @ return Converted image . */
p... | if ( output == null ) { output = new InterleavedF32 ( input . width , input . height , input . getNumBands ( ) ) ; } else { output . reshape ( input . width , input . height , input . getNumBands ( ) ) ; } if ( BoofConcurrency . USE_CONCURRENT ) { ImplConvertImage_MT . convert ( input , output ) ; } else { ImplConvertI... |
public class DistCp { /** * Sanity check for srcPath */
private static void checkSrcPath ( Configuration conf , List < Path > srcPaths ) throws IOException { } } | List < IOException > rslt = new ArrayList < IOException > ( ) ; List < Path > unglobbed = new LinkedList < Path > ( ) ; for ( Path p : srcPaths ) { FileSystem fs = p . getFileSystem ( conf ) ; FileStatus [ ] inputs = fs . globStatus ( p ) ; if ( inputs != null && inputs . length > 0 ) { for ( FileStatus onePath : input... |
public class NodePod { /** * Test if the server is the primary for the node . */
@ Override public boolean isServerPrimary ( ServerBartender server ) { } } | for ( int i = 0 ; i < Math . min ( 1 , _owners . length ) ; i ++ ) { ServerBartender serverBar = server ( i ) ; if ( serverBar == null ) { continue ; } else if ( serverBar . isSameServer ( server ) ) { return true ; } } return false ; |
public class LexemeDocumentImpl { /** * LexemeIdValue id ,
* ItemIdValue lexicalCategory ,
* ItemIdValue language ,
* Map < String , MonolingualTextValue > lemmas ,
* Map < String , List < Statement > > statements ,
* List < FormDocument > forms ,
* long revisionId
* ( non - Javadoc )
* @ see org . wiki... | Map < String , List < Statement > > newGroups = addStatementToGroups ( statement , claims ) ; return new LexemeDocumentImpl ( getEntityId ( ) , lexicalCategory , language , lemmas , newGroups , forms , revisionId ) ; |
public class FSM { /** * Process event . Will handle all retry attempts . If attempts exceed maximum retries ,
* it will throw a TooBusyException .
* @ param stateful The Stateful Entity
* @ param event The Event
* @ param args Optional parameters to pass into the Action
* @ return The current State
* @ thr... | int attempts = 0 ; while ( this . retryAttempts == - 1 || attempts < this . retryAttempts ) { try { State < T > current = this . getCurrentState ( stateful ) ; // Fetch the transition for this event from the current state
Transition < T > transition = this . getTransition ( event , current ) ; // Is there one ?
if ( tr... |
public class EthereumUtil { /** * Converts a long in a RLPElement to long
* @ param rpe RLP element containing a raw long
* @ return long or null if not long */
public static Long convertToLong ( RLPElement rpe ) { } } | Long result = 0L ; byte [ ] rawBytes = rpe . getRawData ( ) ; if ( ( rawBytes != null ) ) { // fill leading zeros
if ( rawBytes . length < EthereumUtil . LONG_SIZE ) { byte [ ] fullBytes = new byte [ EthereumUtil . LONG_SIZE ] ; int dtDiff = EthereumUtil . LONG_SIZE - rawBytes . length ; for ( int i = 0 ; i < rawBytes ... |
public class JsonUtils { /** * Attempt to decode a JSON string as a Java object
* @ param json The JSON string to decode
* @ param cls The class to decode as
* @ param < T > Class parameter
* @ return An instance of { @ code cls } , or an exception */
public static < T > T decode ( String json , Class < T > cls... | return GSON . fromJson ( json , cls ) ; |
public class Value { /** * Returns an { @ code ARRAY < FLOAT64 > } value .
* @ param v the source of element values , which may be null to produce a value for which { @ code
* isNull ( ) } is { @ code true } */
public static Value float64Array ( @ Nullable double [ ] v ) { } } | return float64Array ( v , 0 , v == null ? 0 : v . length ) ; |
public class StorageAccountsInner { /** * Asynchronously creates a new storage account with the specified parameters . If an account is already created and a subsequent create request is issued with different properties , the account properties will be updated . If an account is already created and a subsequent create ... | return beginCreateWithServiceResponseAsync ( resourceGroupName , accountName , parameters ) . map ( new Func1 < ServiceResponse < StorageAccountInner > , StorageAccountInner > ( ) { @ Override public StorageAccountInner call ( ServiceResponse < StorageAccountInner > response ) { return response . body ( ) ; } } ) ; |
public class ParamConvertUtils { /** * Creates a converter function that converts a path segment into the given result type .
* Current implementation doesn ' t follow the { @ link PathParam } specification to maintain backward compatibility . */
public static Converter < String , Object > createPathParamConverter ( ... | if ( ! ( resultType instanceof Class ) ) { throw new IllegalArgumentException ( "Unsupported @PathParam type " + resultType ) ; } return new Converter < String , Object > ( ) { @ Override public Object convert ( String value ) { return ConvertUtils . convert ( value , ( Class < ? > ) resultType ) ; } } ; |
public class SelfExtractRun { /** * Run server extracted from jar
* If environment variable WLP _ JAR _ DEBUG is set , use ' server debug ' instead
* @ param extractDirectory
* @ param serverName
* @ return server run return code
* @ throws IOException
* @ throws InterruptedException */
private static int r... | int rc = 0 ; Runtime rt = Runtime . getRuntime ( ) ; String action = "run" ; if ( System . getenv ( "WLP_JAR_DEBUG" ) != null ) action = "debug" ; // unless user specifies to enable 2PC , disable it
if ( System . getenv ( "WLP_JAR_ENABLE_2PC" ) == null ) disable2PC ( extractDirectory , serverName ) ; String cmd = extra... |
public class AmazonKinesisVideoClient { /** * Adds one or more tags to a stream . A < i > tag < / i > is a key - value pair ( the value is optional ) that you can define
* and assign to AWS resources . If you specify a tag that already exists , the tag value is replaced with the value
* that you specify in the requ... | request = beforeClientExecution ( request ) ; return executeTagStream ( request ) ; |
public class Scope { /** * 自内向外在作用域栈中查找变量是否存在 */
public boolean exists ( Object key ) { } } | for ( Scope cur = this ; cur != null ; cur = cur . parent ) { if ( cur . data != null && cur . data . containsKey ( key ) ) { return true ; } } return false ; |
public class SlotManager { /** * Registers a slot for the given task manager at the slot manager . The slot is identified by
* the given slot id . The given resource profile defines the available resources for the slot .
* The task manager connection can be used to communicate with the task manager .
* @ param sl... | if ( slots . containsKey ( slotId ) ) { // remove the old slot first
removeSlot ( slotId ) ; } final TaskManagerSlot slot = createAndRegisterTaskManagerSlot ( slotId , resourceProfile , taskManagerConnection ) ; final PendingTaskManagerSlot pendingTaskManagerSlot ; if ( allocationId == null ) { pendingTaskManagerSlot =... |
public class JSONWriter { /** * Pop an array or object scope .
* @ param c The scope to close . */
protected void pop ( Mode c ) { } } | if ( this . stack . size ( ) == 0 || this . stack . pop ( ) != c ) { throw new JSONException ( "Nesting error." ) ; } if ( this . stack . size ( ) > 0 ) this . mode = this . stack . peek ( ) ; else this . mode = DONE ; |
public class ComponentAPI { /** * 获取预授权码
* @ param component _ access _ token component _ access _ token
* @ param component _ appid 公众号第三方平台appid
* @ return 预授权码 */
public static PreAuthCode api_create_preauthcode ( String component_access_token , String component_appid ) { } } | String postJsonData = String . format ( "{\"component_appid\":\"%1$s\"}" , component_appid ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( jsonHeader ) . setUri ( BASE_URI + "/cgi-bin/component/api_create_preauthcode" ) . addParameter ( "component_access_token" , API . componentAccessToken (... |
public class Message { /** * Determines if an RRset with the given name and type is already
* present in the given section .
* @ see RRset
* @ see Section */
public boolean findRRset ( Name name , int type , int section ) { } } | if ( sections [ section ] == null ) return false ; for ( int i = 0 ; i < sections [ section ] . size ( ) ; i ++ ) { Record r = ( Record ) sections [ section ] . get ( i ) ; if ( r . getType ( ) == type && name . equals ( r . getName ( ) ) ) return true ; } return false ; |
public class RemoveFromQueryRecordOnCloseHandler { /** * Remove this record from the query record . */
public void removeIt ( ) { } } | if ( m_queryRecord != null ) if ( this . getOwner ( ) != null ) m_queryRecord . removeRecord ( this . getOwner ( ) ) ; m_queryRecord = null ; |
public class ImageScaling { /** * Scaling region of bitmap to destination bitmap region
* @ param src source bitmap
* @ param dest destination bitmap
* @ param x source x
* @ param y source y
* @ param sw source width
* @ param sh source height
* @ param dx destination x
* @ param dy destination y
* @... | scale ( src , dest , CLEAR_COLOR , x , y , sw , sh , dx , dy , dw , dh ) ; |
public class WarningsDescriptor { /** * Returns the URL of the warning project for the specified parser .
* @ param group
* the parser group
* @ return a unique URL */
public static String getProjectUrl ( final String group ) { } } | if ( group == null ) { // prior 4.0
return PLUGIN_ID ; } else { return PLUGIN_ID + ParserRegistry . getUrl ( group ) ; } |
public class AbstractLog { /** * Report a lint warning , unless suppressed by the - nowarn option or the
* maximum number of warnings has been reached .
* @ param lc The lint category for the diagnostic
* @ param warningKey The key for the localized warning message . */
public void warning ( LintCategory lc , War... | report ( diags . warning ( lc , null , null , warningKey ) ) ; |
public class ClasspathScanDescriptorProvider { /** * Resolve the given jar file URL into a JarFile object . */
private JarFile getJarFile ( String jarFileUrl ) throws IOException { } } | if ( jarFileUrl . startsWith ( "file:" ) ) { try { final URI uri = new URI ( jarFileUrl . replaceAll ( " " , "\\%20" ) ) ; final String jarFileName = uri . getSchemeSpecificPart ( ) ; logger . info ( "Creating new JarFile based on URI-scheme filename: {}" , jarFileName ) ; return new JarFile ( jarFileName ) ; } catch (... |
public class CommerceAddressPersistenceImpl { /** * Returns the first commerce address in the ordered set where commerceCountryId = & # 63 ; .
* @ param commerceCountryId the commerce country ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the f... | CommerceAddress commerceAddress = fetchByCommerceCountryId_First ( commerceCountryId , orderByComparator ) ; if ( commerceAddress != null ) { return commerceAddress ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "commerceCountryId=" ) ; msg . append ( commer... |
public class ComputeNodeGetRemoteDesktopHeaders { /** * Set the time at which the resource was last modified .
* @ param lastModified the lastModified value to set
* @ return the ComputeNodeGetRemoteDesktopHeaders object itself . */
public ComputeNodeGetRemoteDesktopHeaders withLastModified ( DateTime lastModified ... | if ( lastModified == null ) { this . lastModified = null ; } else { this . lastModified = new DateTimeRfc1123 ( lastModified ) ; } return this ; |
public class ExpirationDate { /** * Gets the card expiration date , as a java . util . Date object . Returns
* null if no date is available .
* @ return Card expiration date . */
public Date getExpirationDateAsDate ( ) { } } | if ( hasExpirationDate ( ) ) { final LocalDateTime endOfMonth = expirationDate . atEndOfMonth ( ) . atStartOfDay ( ) . plus ( 1 , ChronoUnit . DAYS ) . minus ( 1 , ChronoUnit . NANOS ) ; final Instant instant = endOfMonth . atZone ( ZoneId . systemDefault ( ) ) . toInstant ( ) ; final Date date = new Date ( instant . t... |
public class MongoNativeExtractor { /** * Gets chunks .
* @ param collection the collection
* @ return the chunks */
private DBCursor getChunks ( DBCollection collection ) { } } | DB config = collection . getDB ( ) . getSisterDB ( "config" ) ; DBCollection configChunks = config . getCollection ( "chunks" ) ; return configChunks . find ( new BasicDBObject ( "ns" , collection . getFullName ( ) ) ) ; |
public class ResourceFinder { /** * Executes mapAllStrings assuming the value of each entry in the
* map is the name of a class that should be loaded .
* Any class that cannot be loaded will be cause an exception to be thrown .
* Example classpath :
* META - INF / xmlparsers / xerces
* META - INF / xmlparsers... | Map < String , Class > classes = new HashMap < > ( ) ; Map < String , String > map = mapAllStrings ( uri ) ; for ( Iterator iterator = map . entrySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { Map . Entry entry = ( Map . Entry ) iterator . next ( ) ; String string = ( String ) entry . getKey ( ) ; String classNa... |
public class BeanInfoIntrospector { /** * apply the base fields to other views if configured to do so . */
private static Map < String , Set < String > > expand ( Map < String , Set < String > > viewToPropNames ) { } } | Set < String > baseProps = viewToPropNames . get ( PropertyView . BASE_VIEW ) ; if ( baseProps == null ) { baseProps = ImmutableSet . of ( ) ; } if ( ! SquigglyConfig . isFilterImplicitlyIncludeBaseFieldsInView ( ) ) { // make an exception for full view
Set < String > fullView = viewToPropNames . get ( PropertyView . F... |
public class AgreementSeeker { /** * Adds alive and dead graph information
* @ param reportingHsid site reporting failures
* @ param failures seen by the reporting site */
void add ( long reportingHsid , final Map < Long , Boolean > failed ) { } } | // skip if the reporting site did not belong to the pre
// failure mesh
if ( ! m_hsids . contains ( reportingHsid ) ) return ; // ship if the reporting site is reporting itself dead
Boolean harakiri = failed . get ( reportingHsid ) ; if ( harakiri != null && harakiri . booleanValue ( ) ) return ; Set < Long > dead = Se... |
public class CommerceRegionUtil { /** * Returns a range of all the commerce regions where commerceCountryId = & # 63 ; and active = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys ... | return getPersistence ( ) . findByC_A ( commerceCountryId , active , start , end ) ; |
public class CelebrityDetailMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CelebrityDetail celebrityDetail , ProtocolMarshaller protocolMarshaller ) { } } | if ( celebrityDetail == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( celebrityDetail . getUrls ( ) , URLS_BINDING ) ; protocolMarshaller . marshall ( celebrityDetail . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( celebri... |
public class ZipkinScribeCollectorAutoConfiguration { /** * The init method will block until the scribe port is listening , or crash on port conflict */
@ Bean ( initMethod = "start" ) ScribeCollector scribe ( ZipkinScribeCollectorProperties scribe , CollectorSampler sampler , CollectorMetrics metrics , StorageComponen... | return scribe . toBuilder ( ) . sampler ( sampler ) . metrics ( metrics ) . storage ( storage ) . build ( ) ; |
public class OpenApiDeploymentProcessor { /** * Process the deployment in order to produce an OpenAPI document .
* @ see org . wildfly . swarm . spi . api . DeploymentProcessor # process ( ) */
@ Override public void process ( ) throws Exception { } } | // if the deployment is Implicit , we don ' t want to process it
if ( deploymentContext != null && deploymentContext . isImplicit ( ) ) { return ; } try { // First register OpenApiServletContextListener which triggers the final init
WARArchive warArchive = archive . as ( WARArchive . class ) ; warArchive . findWebXmlAs... |
public class VertexArrayList { /** * Utility method used to convert the list of vertices into a list of vertex ids ( assuming all vertices have ids )
* @ param vertices
* @ return */
private static final LongArrayList toLongList ( List < TitanVertex > vertices ) { } } | LongArrayList result = new LongArrayList ( vertices . size ( ) ) ; for ( TitanVertex n : vertices ) { result . add ( n . longId ( ) ) ; } return result ; |
public class Version { /** * Returns whether the given String is a valid build meta data identifier . That is ,
* this method returns < code > true < / code > if , and only if the { @ code buildMetaData }
* parameter is either the empty string or properly formatted as a build meta data
* identifier according to t... | if ( buildMetaData == null ) { return false ; } else if ( buildMetaData . isEmpty ( ) ) { return true ; } return parseID ( buildMetaData . toCharArray ( ) , buildMetaData , 0 , true , true , false , null , "" ) != FAILURE ; |
public class ArgParser { /** * Registers all the @ Opt annotations on a class with this ArgParser . */
public void registerClass ( Class < ? > clazz ) { } } | registeredClasses . add ( clazz ) ; for ( Field field : clazz . getFields ( ) ) { if ( field . isAnnotationPresent ( Opt . class ) ) { int mod = field . getModifiers ( ) ; if ( ! Modifier . isPublic ( mod ) ) { throw new IllegalStateException ( "@" + Opt . class . getName ( ) + " on non-public field: " + field ) ; } if... |
public class MessageFormat { /** * < strong > [ icu ] < / strong > Converts an ' apostrophe - friendly ' pattern into a standard
* pattern .
* < em > This is obsolete for ICU 4.8 and higher MessageFormat pattern strings . < / em >
* It can still be useful together with { @ link java . text . MessageFormat } .
*... | StringBuilder buf = new StringBuilder ( pattern . length ( ) * 2 ) ; int state = STATE_INITIAL ; int braceCount = 0 ; for ( int i = 0 , j = pattern . length ( ) ; i < j ; ++ i ) { char c = pattern . charAt ( i ) ; switch ( state ) { case STATE_INITIAL : switch ( c ) { case SINGLE_QUOTE : state = STATE_SINGLE_QUOTE ; br... |
public class DonutOptions { /** * Converts a list of { @ link BrowserUsageData } into a list of
* { @ link PointSeries } containing the data about the browser versions . */
private PointSeries toVersionSeries ( final List < BrowserUsageData > browserUsage ) { } } | PointSeries versionSeries = new PointSeries ( ) ; for ( BrowserUsageData browserData : browserUsage ) { for ( VersionUsageData versionData : browserData . getVersionUsageData ( ) ) { versionSeries . addPoint ( new Point ( versionData . getName ( ) , versionData . getMarketShare ( ) , versionData . getColor ( ) ) ) ; } ... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcElectricCurrentMeasure ( ) { } } | if ( ifcElectricCurrentMeasureEClass == null ) { ifcElectricCurrentMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 672 ) ; } return ifcElectricCurrentMeasureEClass ; |
public class CmsSearchReplaceThread { /** * Renames a nested container within a container page XML . < p >
* @ param targetContainerPage the target container page
* @ param layoutResource the container element resource generating the nested container
* @ param oldName the old container name
* @ param newName th... | byte [ ] contents = targetContainerPage . getContents ( ) ; Set < String > replaceElementIds = new HashSet < String > ( ) ; try { CmsXmlContainerPage page = CmsXmlContainerPageFactory . unmarshal ( getCms ( ) , targetContainerPage ) ; for ( CmsContainerElementBean element : page . getContainerPage ( getCms ( ) ) . getE... |
public class StandardConversions { /** * Converts a java object to a text / plain representation .
* @ param source Object to convert .
* @ param sourceMediaType The MediaType for the source object .
* @ param destinationMediaType The required text / plain specification .
* @ return byte [ ] with the text / pla... | if ( source == null ) return null ; if ( sourceMediaType == null || destinationMediaType == null ) { throw new NullPointerException ( "sourceMediaType and destinationMediaType cannot be null!" ) ; } Object decoded = decodeObjectContent ( source , sourceMediaType ) ; if ( decoded instanceof byte [ ] ) { return convertCh... |
public class LHS { /** * Reflect Field is not serializable , hide it .
* @ param s serializer
* @ throws IOException mandatory throwing exception */
private synchronized void writeObject ( final ObjectOutputStream s ) throws IOException { } } | if ( null != field ) { this . object = field . getDeclaringClass ( ) ; this . varName = field . getName ( ) ; this . field = null ; } s . defaultWriteObject ( ) ; |
public class CassQuery { /** * Append in clause .
* @ param queryBuilder
* the query builder
* @ param translator
* the translator
* @ param value
* the value
* @ param fieldClazz
* the field clazz
* @ param columnName
* the column name
* @ param isPresent
* the is present
* @ return true , if... | isPresent = appendIn ( queryBuilder , translator , columnName ) ; queryBuilder . append ( "(" ) ; for ( Object objectvalue : value ) { translator . appendValue ( queryBuilder , fieldClazz , objectvalue , isPresent , false ) ; queryBuilder . append ( ", " ) ; } queryBuilder . deleteCharAt ( queryBuilder . lastIndexOf ( ... |
public class FailurePolicy { /** * Returns a predicate that returns whether any of the { @ code failures } are assignable from an execution failure . */
static < R > BiPredicate < R , Throwable > failurePredicateFor ( List < Class < ? extends Throwable > > failures ) { } } | return ( t , u ) -> { if ( u == null ) return false ; for ( Class < ? extends Throwable > failureType : failures ) if ( failureType . isAssignableFrom ( u . getClass ( ) ) ) return true ; return false ; } ; |
public class Serializer { /** * serializes object to byte [ ]
* @ param o the object to serialize
* @ param zip true if the data should be compressed
* @ return the serialized bytes
* @ throws IOException thrown when an error is encountered writing the data */
public static byte [ ] serialize ( final Object o ,... | final ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; OutputStream os = baos ; ObjectOutputStream oos = null ; try { if ( zip ) { os = new GZIPOutputStream ( os ) ; } oos = new ObjectOutputStream ( os ) ; oos . writeObject ( o ) ; oos . flush ( ) ; } finally { if ( oos != null ) { oos . close ( ) ; } os . ... |
public class ClientAsynchEventThreadPool { /** * Dispatches the data to be sent to the connection event listeners on a thread .
* @ param eventId
* @ param conversation */
public void dispatchAsynchEvent ( short eventId , Conversation conversation ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "dispatchAsynchEvent" , new Object [ ] { "" + eventId , conversation } ) ; // Create a runnable with the data
AsynchEventThread thread = new AsynchEventThread ( eventId , conversation ) ; dispatchThread ( thread ) ; i... |
public class FormRequestParser { /** * Stuff whatever GET / POST arguments are sent up into the returned
* WaybackRequest object , except the Submit button argument . */
public WaybackRequest parse ( HttpServletRequest httpRequest , AccessPoint accessPoint ) throws BetterRequestException { } } | WaybackRequest wbRequest = null ; @ SuppressWarnings ( "unchecked" ) Map < String , String [ ] > queryMap = httpRequest . getParameterMap ( ) ; if ( queryMap . size ( ) > 0 ) { wbRequest = new WaybackRequest ( ) ; String base = accessPoint . translateRequestPath ( httpRequest ) ; if ( base . startsWith ( REPLAY_BASE ) ... |
public class PseudoClassSpecifierChecker { /** * Add { @ code : first - child } elements .
* @ see < a href = " http : / / www . w3 . org / TR / css3 - selectors / # first - child - pseudo " > < code > : first - child < / code > pseudo - class < / a > */
private void addFirstChildElements ( ) { } } | for ( Node node : nodes ) { if ( DOMHelper . getPreviousSiblingElement ( node ) == null ) { result . add ( node ) ; } } |
public class ApacheMultipartParser { /** * Parses the < code > header - part < / code > and returns as key / value pairs .
* If there are multiple headers of the same names , the name will map to a
* comma - separated list containing the values .
* @ param headerPart The < code > header - part < / code > of the c... | final int len = headerPart . length ( ) ; Map < String , String > headers = new HashMap < String , String > ( ) ; int start = 0 ; for ( ; ; ) { int end = parseEndOfLine ( headerPart , start ) ; if ( start == end ) { break ; } String header = headerPart . substring ( start , end ) ; start = end + 2 ; while ( start < len... |
public class TypeValidator { /** * Expect the type to be an object . Unlike expectObject , a type convertible to object is not
* acceptable . */
void expectActualObject ( Node n , JSType type , String msg ) { } } | if ( ! type . isObject ( ) ) { mismatch ( n , msg , type , OBJECT_TYPE ) ; } |
public class CmsSiteDetailDialog { /** * Initializes the dialog site object . < p > */
private void initSite ( ) { } } | Object o = null ; if ( CmsStringUtil . isEmpty ( getParamAction ( ) ) || CmsDialog . DIALOG_INITIAL . equals ( getParamAction ( ) ) ) { // this is the initial dialog call
if ( CmsStringUtil . isNotEmpty ( m_paramSites ) ) { // edit an existing site , get it from manager
o = OpenCms . getSiteManager ( ) . getSiteForSite... |
public class DAOValidatorHelper { /** * Methode permettant d ' extraire le nom de la fonction
* @ param functionTokenTopken de fonction
* @ returnNom de la fonction */
public static String extractFunctionName ( String functionToken ) { } } | // Si le Token est null
if ( functionToken == null || functionToken . trim ( ) . length ( ) == 0 ) { // On retourne la chaine
return functionToken ; } int index0 = functionToken . indexOf ( SIMPLE_FUNCTION_LEFT_DELIMITER ) ; int index1 = functionToken . indexOf ( SIMPLE_FUNCTION_OPEN ) ; // Extraction du nom de la fonc... |
public class AbstractIoBuffer { /** * { @ inheritDoc } */
@ Override public final IoBuffer putFloat ( int index , float value ) { } } | autoExpand ( index , 4 ) ; buf ( ) . putFloat ( index , value ) ; return this ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.