signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CompressionCodec { /** * A { @ link RedisCodec } that compresses values from a delegating { @ link RedisCodec } .
* @ param delegate codec used for key - value encoding / decoding , must not be { @ literal null } .
* @ param compressionType the compression type , must not be { @ literal null } .
* @ ... | "rawtypes" , "unchecked" } ) public static < K , V > RedisCodec < K , V > valueCompressor ( RedisCodec < K , V > delegate , CompressionType compressionType ) { LettuceAssert . notNull ( delegate , "RedisCodec must not be null" ) ; LettuceAssert . notNull ( compressionType , "CompressionType must not be null" ) ; return... |
public class UASparser { /** * Searches in the os regex table . if found a match copies the os data
* @ param useragent
* @ param retObj */
private void processOsRegex ( String useragent , UserAgentInfo retObj ) { } } | try { lock . lock ( ) ; for ( Map . Entry < Pattern , Long > entry : osRegMap . entrySet ( ) ) { Matcher matcher = entry . getKey ( ) . matcher ( useragent ) ; if ( matcher . find ( ) ) { // simply copy the OS data into the result object
Long idOs = entry . getValue ( ) ; OsEntry os = osMap . get ( idOs ) ; if ( os != ... |
public class LBiObjBoolFunctionBuilder { /** * One of ways of creating builder . In most cases ( considering all _ functional _ builders ) it requires to provide generic parameters ( in most cases redundantly ) */
@ Nonnull public static < T1 , T2 , R > LBiObjBoolFunctionBuilder < T1 , T2 , R > biObjBoolFunction ( ) { ... | return new LBiObjBoolFunctionBuilder ( ) ; |
public class AnnotatedCallablePreparableBase { /** * Executes a method named " doPrepare " by mapping blocks by name to blocks
* annotated with the Named annotation
* @ see com . impossibl . stencil . api . Named */
public Object prepare ( Map < String , ? > params ) throws Throwable { } } | return AnnotatedExtensions . exec ( getPrepareMethod ( ) , getParameterNames ( ) , params , this ) ; |
public class FulltextIndex { /** * CALL apoc . index . addNodeByName ( ' name ' , joe , [ ' name ' , ' age ' , ' city ' ] ) */
@ Procedure ( mode = Mode . WRITE ) @ Description ( "apoc.index.addNodeByName('name',node,['prop1',...]) add node to an index for the given name" ) public void addNodeByName ( @ Name ( "name" )... | Index < Node > index = getNodeIndex ( name , null ) ; indexEntityProperties ( node , propKeys , index ) ; |
public class StreamHelper { /** * Read all bytes from the passed input stream into a byte array .
* @ param aISP
* The input stream provider to read from . May be < code > null < / code > .
* @ return The byte array or < code > null < / code > if the parameter or the resolved
* input stream is < code > null < /... | if ( aISP == null ) return null ; return getAllBytes ( aISP . getInputStream ( ) ) ; |
public class OntopRepositoryConfig { /** * This method has two roles :
* - Validating in depth the configuration : basic field validation + consistency of
* the OWL and mapping files ( the latter is done when initializing the repository ) .
* - Building the repository ( as an ordinary factory ) .
* This method ... | /* * Cache ( computed only once ) */
if ( repository != null ) return repository ; /* * Common validation .
* May throw a RepositoryConfigException */
validateFields ( ) ; try { /* * Creates the repository according to the Quest type . */
OntopSQLOWLAPIConfiguration . Builder configurationBuilder = OntopSQLOWLAPIConf... |
public class HttpSupport { /** * Returns a collection of uploaded files and form fields from a multi - part request .
* This method uses < a href = " http : / / commons . apache . org / proper / commons - fileupload / apidocs / org / apache / commons / fileupload / disk / DiskFileItemFactory . html " > DiskFileItemFa... | // we are thread safe , because controllers are pinned to a thread and discarded after each request .
if ( RequestContext . getFormItems ( ) != null ) { return RequestContext . getFormItems ( ) ; } HttpServletRequest req = RequestContext . getHttpRequest ( ) ; if ( req instanceof AWMockMultipartHttpServletRequest ) { /... |
public class ProcessThread { /** * Match thread that is waiting on lock identified by < tt > className < / tt > . */
public static @ Nonnull Predicate waitingToLock ( final @ Nonnull String className ) { } } | return new Predicate ( ) { @ Override public boolean isValid ( @ Nonnull ProcessThread < ? , ? , ? > thread ) { final ThreadLock lock = thread . getWaitingToLock ( ) ; return lock != null && lock . getClassName ( ) . equals ( className ) ; } } ; |
public class SystemProperties { /** * Gets a system property int , or a replacement value if the property is
* null or blank or not parseable
* @ param key
* @ param valueIfNullOrNotParseable
* @ return */
public static long getInt ( String key , int valueIfNullOrNotParseable ) { } } | String value = System . getProperty ( key ) ; if ( Strings . isNullOrEmpty ( value ) ) { return valueIfNullOrNotParseable ; } try { return Integer . parseInt ( value ) ; } catch ( NumberFormatException e ) { return valueIfNullOrNotParseable ; } |
public class GrailsPrintWriter { /** * Print an object . The string produced by the < code > { @ link
* java . lang . String # valueOf ( Object ) } < / code > method is translated into bytes
* according to the platform ' s default character encoding , and these bytes
* are written in exactly the manner of the < c... | if ( trouble || obj == null ) { usageFlag = true ; return ; } Class < ? > clazz = obj . getClass ( ) ; if ( clazz == String . class ) { write ( ( String ) obj ) ; } else if ( clazz == StreamCharBuffer . class ) { write ( ( StreamCharBuffer ) obj ) ; } else if ( clazz == GStringImpl . class ) { write ( ( Writable ) obj ... |
public class HostMessenger { /** * Get a unique ID for this cluster
* @ return */
public InstanceId getInstanceId ( ) { } } | if ( m_instanceId == null ) { try { byte [ ] data = m_zk . getData ( CoreZK . instance_id , false , null ) ; JSONObject idJSON = new JSONObject ( new String ( data , "UTF-8" ) ) ; m_instanceId = new InstanceId ( idJSON . getInt ( "coord" ) , idJSON . getLong ( "timestamp" ) ) ; } catch ( Exception e ) { String msg = "U... |
public class Token { /** * Decrypt a message with this token .
* @ param msg The message to decrypt .
* @ return The encrypted message . Null if decryption failed . */
public byte [ ] decrypt ( byte [ ] msg ) { } } | if ( msg == null ) return null ; try { Cipher cipher = Cipher . getInstance ( ENCRYPTION_ALGORITHM_IMPLEMENTATION ) ; SecretKeySpec key = new SecretKeySpec ( getMd5 ( ) , ENCRYPTION_ALGORITHM ) ; IvParameterSpec iv = new IvParameterSpec ( getIv ( ) ) ; cipher . init ( Cipher . DECRYPT_MODE , key , iv ) ; return cipher ... |
public class NamedJdbcCursorItemReader { /** * Obtain a parsed representation of the given SQL statement .
* < p > The default implementation uses an LRU cache with an upper limit
* of 256 entries .
* @ param sql the original SQL
* @ return a representation of the parsed SQL statement */
protected ExposedParsed... | if ( getCacheLimit ( ) <= 0 ) { return new ExposedParsedSql ( NamedParameterUtils . parseSqlStatement ( sql ) ) ; } synchronized ( this . parsedSqlCache ) { ExposedParsedSql parsedSql = this . parsedSqlCache . get ( sql ) ; if ( parsedSql == null ) { parsedSql = new ExposedParsedSql ( NamedParameterUtils . parseSqlStat... |
public class MetadataService { /** * Removes the specified { @ code member } from the { @ link ProjectMetadata } in the specified
* { @ code projectName } . It also removes permission of the specified { @ code member } from every
* { @ link RepositoryMetadata } . */
public CompletableFuture < Revision > removeMembe... | requireNonNull ( author , "author" ) ; requireNonNull ( projectName , "projectName" ) ; requireNonNull ( member , "member" ) ; final String commitSummary = "Remove the member '" + member . id ( ) + "' from the project " + projectName ; return metadataRepo . push ( projectName , Project . REPO_DOGMA , author , commitSum... |
public class LastaPrepareFilter { protected void saveMessageResourcesToHolder ( ServletContext context ) { } } | final MessageResources resources = getMessageResources ( context ) ; final RutsMessageResourceGateway gateway = newRutsMessageResourceGateway ( resources ) ; getMessageResourceHolder ( ) . acceptGateway ( gateway ) ; |
public class nstrafficdomain { /** * Use this API to clear nstrafficdomain . */
public static base_response clear ( nitro_service client , nstrafficdomain resource ) throws Exception { } } | nstrafficdomain clearresource = new nstrafficdomain ( ) ; clearresource . td = resource . td ; return clearresource . perform_operation ( client , "clear" ) ; |
public class ReviewsImpl { /** * The reviews created would show up for Reviewers on your team . As Reviewers complete reviewing , results of the Review would be POSTED ( i . e . HTTP POST ) on the specified CallBackEndpoint .
* & lt ; h3 & gt ; CallBack Schemas & lt ; / h3 & gt ;
* & lt ; h4 & gt ; Review Completio... | if ( this . client . baseUrl ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.baseUrl() is required and cannot be null." ) ; } if ( teamName == null ) { throw new IllegalArgumentException ( "Parameter teamName is required and cannot be null." ) ; } if ( contentType == null ) { throw new Illeg... |
public class BuilderImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . security . jwt . internal . Builder # signWith ( java . lang . String , java . lang . String ) */
@ Override public Builder signWith ( String algorithm , String key ) throws KeyException { } } | if ( algorithm == null || algorithm . isEmpty ( ) || ! algorithm . equals ( Constants . SIGNATURE_ALG_HS256 ) ) { String err = Tr . formatMessage ( tc , "JWT_INVALID_ALGORITHM_ERR" , new Object [ ] { algorithm , Constants . SIGNATURE_ALG_HS256 } ) ; throw new KeyException ( err ) ; } if ( key == null || key . isEmpty (... |
public class AzureBatchJobSubmissionHandler { /** * Invoked when JobSubmissionEvent is triggered .
* @ param jobSubmissionEvent triggered job submission event . */
@ Override public void onNext ( final JobSubmissionEvent jobSubmissionEvent ) { } } | LOG . log ( Level . FINEST , "Submitting job: {0}" , jobSubmissionEvent ) ; try { this . applicationId = createApplicationId ( jobSubmissionEvent ) ; final String folderName = this . azureBatchFileNames . getStorageJobFolder ( this . applicationId ) ; LOG . log ( Level . FINE , "Creating a job folder on Azure at: {0}."... |
public class UIComponentClassicTagBase { /** * Invoke encodeBegin on the associated UIComponent . Subclasses can override this method to perform custom
* processing before or after the UIComponent method invocation . */
protected void encodeBegin ( ) throws IOException { } } | if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Entered encodeBegin for client-Id: " + _componentInstance . getClientId ( getFacesContext ( ) ) ) ; } _componentInstance . encodeBegin ( getFacesContext ( ) ) ; if ( log . isLoggable ( Level . FINE ) ) { log . fine ( "Exited encodeBegin" ) ; } |
public class LambdaToMethod { /** * Translate a lambda into a method to be inserted into the class .
* Then replace the lambda site with an invokedynamic call of to lambda
* meta - factory , which will use the lambda method .
* @ param tree */
@ Override public void visitLambda ( JCLambda tree ) { } } | LambdaTranslationContext localContext = ( LambdaTranslationContext ) context ; MethodSymbol sym = localContext . translatedSym ; MethodType lambdaType = ( MethodType ) sym . type ; { Symbol owner = localContext . owner ; ListBuffer < Attribute . TypeCompound > ownerTypeAnnos = new ListBuffer < Attribute . TypeCompound ... |
public class PrcRefreshItemsInList { /** * < p > Retrieve I18nItem list . < / p >
* @ param < T > item type
* @ param pReqVars additional param
* @ param pI18nItemClass I18nItem Class
* @ param pItemIdsIn Item ' s IDs
* @ return list
* @ throws Exception - an exception */
public final < T extends AI18nName ... | pReqVars . put ( pI18nItemClass . getSimpleName ( ) + "hasNamedeepLevel" , 1 ) ; pReqVars . put ( pI18nItemClass . getSimpleName ( ) + "langdeepLevel" , 1 ) ; List < T > i18nItemLst = getSrvOrm ( ) . retrieveListWithConditions ( pReqVars , pI18nItemClass , "where HASNAME in " + pItemIdsIn ) ; pReqVars . remove ( pI18nI... |
public class LayoutMap { /** * Returns { @ code true } if this map or a parent map - if any - contains a mapping for the
* specified key .
* @ param key key whose presence in this LayoutMap chain is to be tested .
* @ return { @ code true } if this map contains a column mapping for the specified key .
* @ throw... | String resolvedKey = resolveColumnKey ( key ) ; return columnMap . containsKey ( resolvedKey ) || parent != null && parent . columnContainsKey ( resolvedKey ) ; |
public class CalendarPanel { /** * setSizeOfWeekNumberLabels , This sets the minimum and preferred size of the week number
* labels , to be able to hold largest week number in the current week number label font .
* Note : The week number labels need to be added to the panel before this method can be called . */
pri... | JLabel firstLabel = weekNumberLabels . get ( 0 ) ; Font font = firstLabel . getFont ( ) ; FontMetrics fontMetrics = firstLabel . getFontMetrics ( font ) ; int width = fontMetrics . stringWidth ( "53 " ) ; width += constantWeekNumberLabelInsets . left ; width += constantWeekNumberLabelInsets . right ; Dimension size = n... |
public class CodeBuilderUtil { /** * Returns true if a public final method exists which matches the given
* specification . */
public static boolean isPublicMethodFinal ( Class clazz , String name , TypeDesc retType , TypeDesc [ ] params ) { } } | if ( ! clazz . isInterface ( ) ) { Class [ ] paramClasses ; if ( params == null || params . length == 0 ) { paramClasses = null ; } else { paramClasses = new Class [ params . length ] ; for ( int i = 0 ; i < params . length ; i ++ ) { paramClasses [ i ] = params [ i ] . toClass ( ) ; } } try { Method existing = clazz .... |
public class SerializationUtil { /** * Writes a collection to an { @ link ObjectDataOutput } . The collection ' s size is written
* to the data output , then each object in the collection is serialized .
* The collection is allowed to be null .
* @ param items collection of items to be serialized
* @ param out ... | // write true when the collection is NOT null
out . writeBoolean ( items != null ) ; if ( items == null ) { return ; } writeCollection ( items , out ) ; |
public class CmsLocaleManager { /** * Returns the the appropriate locale / encoding for a request ,
* using the " right " locale handler for the given resource . < p >
* Certain system folders ( like the Workplace ) require a special
* locale handler different from the configured handler .
* Use this method if ... | CmsI18nInfo i18nInfo = null ; // check if this is a request against a Workplace folder
if ( OpenCms . getSiteManager ( ) . isWorkplaceRequest ( req ) ) { // The list of configured localized workplace folders
List < String > wpLocalizedFolders = OpenCms . getWorkplaceManager ( ) . getLocalizedFolders ( ) ; for ( int i =... |
public class Strings { /** * Joins the { @ linkplain String } representation of multiple { @ linkplain Object } s into a single { @ linkplain String } .
* The { @ linkplain Object # toString ( ) } is used to retrieve the Objects ' { @ linkplain String } representation .
* @ param objects the { @ linkplain Objects }... | return join ( Arrays . asList ( objects ) , delim , Integer . MAX_VALUE , ELLIPSIS ) ; |
public class DefaultGroovyMethods { /** * Truncate the value
* @ param number a BigDecimal
* @ param precision the number of decimal places to keep
* @ return a BigDecimal truncated to the number of decimal places specified by precision
* @ see # trunc ( java . math . BigDecimal )
* @ since 2.5.0 */
public st... | return number . setScale ( precision , RoundingMode . DOWN ) ; |
public class VisitUrl { /** * Get Resource Url for GetVisit
* @ param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object . This parameter should only be used to retrieve data . Attempting to update data using this parameter may cause data l... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/customer/visits/{visitId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; formatter . formatUrl ( "visitId" , visitId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD... |
public class DownloadFilesActionListener { /** * Cancels the file download .
* @ param hideWindowImmediately
* determines if the download progress window should be hidden
* immediately or only when the progress of cancelling the
* download has occurred gracefully . */
public void cancelDownload ( final boolean ... | logger . info ( "Cancel of download requested" ) ; _cancelled = true ; if ( hideWindowImmediately && _downloadProgressWindow != null ) { WidgetUtils . invokeSwingAction ( _downloadProgressWindow :: close ) ; } |
public class ReceiptTemplate { /** * Set Element
* @ param title the receipt element title
* @ param subtitle the receipt element subtitle
* @ param quantity the receipt element quantity
* @ param price the receipt element price
* @ param currency the receipt element currency
* @ param image _ url the recei... | HashMap < String , String > element = new HashMap < String , String > ( ) ; element . put ( "title" , title ) ; element . put ( "subtitle" , subtitle ) ; element . put ( "quantity" , quantity ) ; element . put ( "price" , price ) ; element . put ( "currency" , currency ) ; element . put ( "image_url" , image_url ) ; th... |
public class ObstacleAvoidanceQuery { /** * vector normalization that ignores the y - component . */
void dtNormalize2D ( float [ ] v ) { } } | float d = ( float ) Math . sqrt ( v [ 0 ] * v [ 0 ] + v [ 2 ] * v [ 2 ] ) ; if ( d == 0 ) return ; d = 1.0f / d ; v [ 0 ] *= d ; v [ 2 ] *= d ; |
public class RtfPageSetting { /** * Writes the page size / page margin definition */
public void writeDefinition ( final OutputStream result ) throws IOException { } } | result . write ( PAGE_WIDTH ) ; result . write ( intToByteArray ( pageWidth ) ) ; result . write ( PAGE_HEIGHT ) ; result . write ( intToByteArray ( pageHeight ) ) ; result . write ( MARGIN_LEFT ) ; result . write ( intToByteArray ( marginLeft ) ) ; result . write ( MARGIN_RIGHT ) ; result . write ( intToByteArray ( ma... |
public class KeyVaultClientBaseImpl { /** * Lists deleted secrets for the specified vault .
* The Get Deleted Secrets operation returns the secrets that have been deleted for a vault enabled for soft - delete . This operation requires the secrets / list permission .
* @ param vaultBaseUrl The vault name , for examp... | if ( vaultBaseUrl == null ) { throw new IllegalArgumentException ( "Parameter vaultBaseUrl is required and cannot be null." ) ; } if ( this . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.apiVersion() is required and cannot be null." ) ; } String parameterizedHost = Joiner . on ( ", " ... |
public class ColorBuilder { /** * Build a Gray color .
* @ param gColor the gray color enum
* @ return the javafx color */
private Color buildGrayColor ( final GrayColor gColor ) { } } | Color color = null ; if ( gColor . opacity ( ) >= 1.0 ) { color = Color . gray ( gColor . gray ( ) ) ; } else { color = Color . gray ( gColor . gray ( ) , gColor . opacity ( ) ) ; } return color ; |
public class DetectPolygonFromContour { /** * Returns the undistorted contour for a shape . Data is potentially recycled the next time
* any function in this class is invoked .
* @ param info Which shape
* @ return List of points in the contour */
public List < Point2D_I32 > getContour ( Info info ) { } } | contourTmp . reset ( ) ; contourFinder . loadContour ( info . contour . externalIndex , contourTmp ) ; return contourTmp . toList ( ) ; |
public class ContentsDao { /** * Get or create a Geometry Columns DAO
* @ return geometry columns dao
* @ throws SQLException
* upon dao creation failure */
private GeometryColumnsDao getGeometryColumnsDao ( ) throws SQLException { } } | if ( geometryColumnsDao == null ) { geometryColumnsDao = DaoManager . createDao ( connectionSource , GeometryColumns . class ) ; } return geometryColumnsDao ; |
public class LinkedDeque { /** * Unlinks the non - null last element . */
E unlinkLast ( ) { } } | final E l = last ; final E prev = l . getPrevious ( ) ; l . setPrevious ( null ) ; last = prev ; if ( prev == null ) { first = null ; } else { prev . setNext ( null ) ; } return l ; |
public class QNotIn { /** * { @ inheritDoc } */
@ Override public QNotIn appendSQL ( final SQLSelect _sql ) throws EFapsException { } } | getAttribute ( ) . appendSQL ( _sql ) ; _sql . addPart ( SQLPart . NOT ) . addPart ( SQLPart . IN ) . addPart ( SQLPart . PARENTHESIS_OPEN ) ; getValue ( ) . appendSQL ( _sql ) ; _sql . addPart ( SQLPart . PARENTHESIS_CLOSE ) ; return this ; |
public class NumberStyleHelper { /** * Append the 19.348 number : grouping attribute . Default = false .
* @ param util a util for XML writing
* @ param appendable where to write
* @ throws IOException If an I / O error occurs */
private void appendGroupingAttribute ( final XMLUtil util , final Appendable appenda... | if ( this . grouping ) util . appendAttribute ( appendable , "number:grouping" , "true" ) ; |
public class MonetaryFormat { /** * Prefix formatted output by currency code . This configuration is not relevant for parsing . */
public MonetaryFormat prefixCode ( ) { } } | if ( codePrefixed ) return this ; else return new MonetaryFormat ( negativeSign , positiveSign , zeroDigit , decimalMark , minDecimals , decimalGroups , shift , roundingMode , codes , codeSeparator , true ) ; |
public class NettyNetworkManager { /** * { @ inheritDoc }
* @ throws IllegalStateException If manager is already closed . */
@ Override public Channel openChannel ( ) throws IOException , IllegalStateException { } } | assertOpen ( ) ; try { return this . bootstrap . clone ( ) . register ( ) . sync ( ) . channel ( ) ; } catch ( Exception e ) { throw new IOException ( "Could not open channel." , e ) ; } |
public class Binder { /** * Catch the given exception type from the downstream chain and handle it with the
* given function .
* @ param throwable the exception type to catch
* @ param function the function to use for handling the exception
* @ return a new Binder */
public Binder catchException ( Class < ? ext... | return new Binder ( this , new Catch ( throwable , function ) ) ; |
public class SynonymsLibrary { /** * 刷新一个 , 将值设置为null
* @ param key
* @ return */
public static void reload ( String key ) { } } | if ( ! MyStaticValue . ENV . containsKey ( key ) ) { // 如果变量中不存在直接删掉这个key不解释了
remove ( key ) ; } putIfAbsent ( key , MyStaticValue . ENV . get ( key ) ) ; KV < String , SmartForest < List < String > > > kv = SYNONYMS . get ( key ) ; init ( key , kv , true ) ; |
public class TransactionImpl { /** * Only lock the specified object , represented by
* the { @ link RuntimeObject } instance .
* @ param cld The { @ link org . apache . ojb . broker . metadata . ClassDescriptor }
* of the object to acquire a lock on .
* @ param oid The { @ link org . apache . ojb . broker . Ide... | LockManager lm = implementation . getLockManager ( ) ; if ( cld . isAcceptLocks ( ) ) { if ( lockMode == Transaction . READ ) { if ( log . isDebugEnabled ( ) ) log . debug ( "Do READ lock on object: " + oid ) ; if ( ! lm . readLock ( this , oid , obj ) ) { throw new LockNotGrantedException ( "Can not lock for READ: " +... |
public class TheMovieDbApi { /** * The similar movies method will let you retrieve the similar movies for a
* particular movie .
* This data is created dynamically but with the help of users votes on
* TMDb .
* The data is much better with movies that have more keywords
* @ param movieId movieId
* @ param l... | return tmdbMovies . getSimilarMovies ( movieId , page , language ) ; |
public class IndexImage { /** * Creates an { @ code IndexColorModel } from the given image , using an adaptive
* palette .
* @ param pImage the image to get { @ code IndexColorModel } from
* @ param pNumberOfColors the number of colors for the { @ code IndexColorModel }
* @ param pHints use fast mode if possibl... | // TODO : Use ImageUtil . hasTransparentPixels ( pImage , true ) | |
// - - haraldK , 20021024 , experimental , try to use one transparent pixel
boolean useTransparency = isTransparent ( pHints ) ; if ( useTransparency ) { pNumberOfColors -- ; } // System . out . println ( " Transp : " + useTransparency + " colors : " ... |
public class XmlParser { /** * Parse a processing instruction and do a call - back .
* < pre >
* [ 16 ] PI : : = ' & lt ; ? ' PITarget
* ( S ( Char * - ( Char * ' ? & gt ; ' Char * ) ) ) ?
* ' ? & gt ; '
* [ 17 ] PITarget : : = Name - ( ( ' X ' | ' x ' ) ( ' M ' | m ' ) ( ' L ' | l ' ) )
* < / pre >
* ( T... | String name ; boolean saved = expandPE ; expandPE = false ; name = readNmtoken ( true ) ; // NE08
if ( name . indexOf ( ':' ) >= 0 ) { fatal ( "Illegal character(':') in processing instruction name " , name , null ) ; } if ( "xml" . equalsIgnoreCase ( name ) ) { fatal ( "Illegal processing instruction target" , name , ... |
public class DevLockManager { public int getJvmPid ( ) { } } | int pid = - 1 ; if ( strPID != null ) { try { pid = Integer . parseInt ( strPID ) ; } catch ( NumberFormatException e ) { } } return pid ; |
public class AmqpChannel { /** * Confirms to the peer that a flow command was received and processed .
* @ return AmqpChannel */
private AmqpChannel closeOkChannel ( ) { } } | if ( readyState == ReadyState . CLOSED ) { // If the channel has been closed , just bail .
return this ; } Object [ ] args = { } ; WrappedByteBuffer bodyArg = null ; HashMap < String , Object > headersArg = null ; String methodName = "closeOkChannel" ; String methodId = "20" + "41" ; AmqpMethod amqpMethod = MethodLooku... |
public class URAPIs_UserGroupSearchBases { /** * Tear down the test . */
@ AfterClass public static void teardownClass ( ) throws Exception { } } | try { if ( libertyServer != null ) { libertyServer . stopServer ( "CWIML4537E" ) ; } } finally { if ( ds != null ) { ds . shutDown ( true ) ; } } libertyServer . deleteFileFromLibertyInstallRoot ( "lib/features/internalfeatures/securitylibertyinternals-1.0.mf" ) ; |
public class BootiqueSarlcMain { /** * Run the batch compiler .
* < p > This function runs the compiler and exits with the return code .
* @ param args the command line arguments .
* @ return the exit code . */
public int runCompiler ( String ... args ) { } } | try { final BQRuntime runtime = createRuntime ( args ) ; final CommandOutcome outcome = runtime . run ( ) ; if ( ! outcome . isSuccess ( ) && outcome . getException ( ) != null ) { Logger . getRootLogger ( ) . error ( outcome . getMessage ( ) , outcome . getException ( ) ) ; } return outcome . getExitCode ( ) ; } catch... |
public class LinearStochasticLaw { /** * Replies a random value that respect
* the current stochastic law .
* @ param minX is the lower bound of the distribution
* @ param maxX is the upper bound of the distribution
* @ param ascendent indicates of the distribution function is ascendent or not
* @ return a va... | return StochasticGenerator . generateRandomValue ( new LinearStochasticLaw ( minX , maxX , ascendent ) ) ; |
public class SimpleScriptRunner { /** * Expects a property ' script ' , containing the actual script to be run .
* Specify ' page _ interval _ in _ minutes ' and ' page _ offset _ in _ minutes '
* to have script run periodically . */
public void setProperties ( Properties properties ) { } } | script = properties . getProperty ( "script" , script ) ; pageIntervalInMinutes = Integer . parseInt ( properties . getProperty ( "page_interval_in_minutes" , "" + pageIntervalInMinutes ) ) ; pageOffsetInMinutes = Integer . parseInt ( properties . getProperty ( "page_offset_in_minutes" , "" + pageOffsetInMinutes ) ) ; |
public class ConfigCheckReport { /** * < pre >
* Scope name as key
* < / pre >
* < code > map & lt ; string , . alluxio . grpc . meta . InconsistentProperties & gt ; errors = 1 ; < / code > */
public boolean containsErrors ( java . lang . String key ) { } } | if ( key == null ) { throw new java . lang . NullPointerException ( ) ; } return internalGetErrors ( ) . getMap ( ) . containsKey ( key ) ; |
public class ExpressionsRetinaApiImpl { /** * { @ inheritDoc } */
@ Override public List < Context > getContexts ( Pagination pagination , Boolean includeFingerprint , Double sparsity , String jsonModel ) throws JsonProcessingException , ApiException { } } | pagination = initPagination ( pagination ) ; LOG . debug ( "Retrieve contexts for expression: model: " + jsonModel + " pagination: " + pagination . toString ( ) + " sparsity: " + sparsity + " include fingerprint: " + includeFingerprint ) ; return this . expressionsApi . getContextsForExpression ( jsonModel , includeF... |
public class TransposePathElement { /** * This method is used when the TransposePathElement is used on the LFH as data .
* Aka , normal " evaluate " returns either a Number or a String .
* @ param walkedPath WalkedPath to evaluate against
* @ return The data specified by this TransposePathElement . */
public Opti... | // Grap the data we need from however far up the tree we are supposed to go
PathStep pathStep = walkedPath . elementFromEnd ( upLevel ) ; if ( pathStep == null ) { return Optional . empty ( ) ; } Object treeRef = pathStep . getTreeRef ( ) ; // Now walk down from that level using the subPathReader
if ( subPathReader == ... |
public class Choice3 { /** * Specialize this choice ' s projection to a { @ link Tuple3 } .
* @ return a { @ link Tuple3} */
@ Override public Tuple3 < Maybe < A > , Maybe < B > , Maybe < C > > project ( ) { } } | return into3 ( HList :: tuple , CoProduct3 . super . project ( ) ) ; |
public class OnBindViewHolderListenerImpl { /** * is called in onBindViewHolder to bind the data on the ViewHolder
* @ param viewHolder the viewHolder for the type at this position
* @ param position the position of this viewHolder
* @ param payloads the payloads provided by the adapter */
@ Override public void ... | Object tag = viewHolder . itemView . getTag ( R . id . fastadapter_item_adapter ) ; if ( tag instanceof FastAdapter ) { FastAdapter fastAdapter = ( ( FastAdapter ) tag ) ; IItem item = fastAdapter . getItem ( position ) ; if ( item != null ) { item . bindView ( viewHolder , payloads ) ; if ( viewHolder instanceof FastA... |
public class ParaClient { /** * Searches for objects that have similar property values to a given text . A " find like this " query .
* @ param < P > type of the object
* @ param type the type of object to search for . See { @ link com . erudika . para . core . ParaObject # getType ( ) }
* @ param filterKey exclu... | MultivaluedMap < String , String > params = new MultivaluedHashMap < > ( ) ; params . put ( "fields" , fields == null ? null : Arrays . asList ( fields ) ) ; params . putSingle ( "filterid" , filterKey ) ; params . putSingle ( "like" , liketext ) ; params . putSingle ( Config . _TYPE , type ) ; params . putAll ( pagerT... |
public class JDBCValueContentAddressStorageImpl { /** * { @ inheritDoc } */
public boolean hasSharedContent ( String propertyId ) throws VCASException { } } | try { Connection con = dataSource . getConnection ( ) ; PreparedStatement ps = null ; try { ps = con . prepareStatement ( sqlSelectSharingProps ) ; ps . setString ( 1 , propertyId ) ; return ps . executeQuery ( ) . next ( ) ; } finally { if ( ps != null ) { try { ps . close ( ) ; } catch ( SQLException e ) { LOG . erro... |
public class TimeTileSkin { /** * * * * * * Resizing * * * * * */
@ Override protected void resizeDynamicText ( ) { } } | double fontSize = size * 0.24 ; leftText . setFont ( Fonts . latoRegular ( fontSize ) ) ; rightText . setFont ( Fonts . latoRegular ( fontSize ) ) ; |
public class TSDB { /** * Given a prefix search , returns matching metric names .
* @ param search A prefix to search .
* @ param max _ results Maximum number of results to return .
* @ since 2.0 */
public List < String > suggestMetrics ( final String search , final int max_results ) { } } | return metrics . suggest ( search , max_results ) ; |
public class BigQueryOutputConfiguration { /** * A helper function to set the required output keys in the given configuration .
* @ param conf the configuration to set the keys on .
* @ param qualifiedOutputTableId the qualified id of the output table in the form : < code > ( Optional
* ProjectId ) : [ DatasetId ... | Preconditions . checkArgument ( ! Strings . isNullOrEmpty ( outputTableSchemaJson ) , "outputTableSchemaJson must not be null or empty." ) ; TableReference outputTable = BigQueryStrings . parseTableReference ( qualifiedOutputTableId ) ; configure ( conf , outputTable . getProjectId ( ) , outputTable . getDatasetId ( ) ... |
public class BraveTracer { /** * Injects the underlying context using B3 encoding by default . */
@ Override public < C > void inject ( SpanContext spanContext , Format < C > format , C carrier ) { } } | Injector < TextMap > injector = formatToInjector . get ( format ) ; if ( injector == null ) { throw new UnsupportedOperationException ( format + " not in " + formatToInjector . keySet ( ) ) ; } TraceContext traceContext = ( ( BraveSpanContext ) spanContext ) . unwrap ( ) ; injector . inject ( traceContext , ( TextMap )... |
public class TimeRangeMeter { /** * Return the probe ' s next sample . */
public final double sampleCount ( ) { } } | long count = _count . get ( ) ; long lastCount = _lastCount . getAndSet ( count ) ; return count - lastCount ; |
public class SqlSelectByPkStatement { /** * Build a Pk - Query base on the ClassDescriptor .
* @ param cld
* @ return a select by PK query */
private static Query buildQuery ( ClassDescriptor cld ) { } } | FieldDescriptor [ ] pkFields = cld . getPkFields ( ) ; Criteria crit = new Criteria ( ) ; for ( int i = 0 ; i < pkFields . length ; i ++ ) { crit . addEqualTo ( pkFields [ i ] . getAttributeName ( ) , null ) ; } return new QueryByCriteria ( cld . getClassOfObject ( ) , crit ) ; |
public class LazyTreeReader { /** * Returns the value corresponding to currentRow , suitable for calling from outside
* @ param currentRow
* @ param previous
* @ return
* @ throws IOException */
public Object get ( long currentRow , Object previous ) throws IOException { } } | seekToRow ( currentRow ) ; return next ( previous ) ; |
public class Csv2ExtJsLocaleService { /** * Extracts the column index of the given locale in the CSV file .
* @ param locale
* @ param csvReader
* @ return
* @ throws IOException
* @ throws Exception */
private int detectColumnIndexOfLocale ( String locale , CSVReader csvReader ) throws Exception { } } | int indexOfLocale = - 1 ; List < String > headerLine = Arrays . asList ( ArrayUtils . nullToEmpty ( csvReader . readNext ( ) ) ) ; if ( headerLine == null || headerLine . isEmpty ( ) ) { throw new Exception ( "CSV locale file seems to be empty." ) ; } if ( headerLine . size ( ) < 3 ) { // we expect at least three colum... |
public class QuadCurve { /** * Configures the start , control , and end points for this curve . */
public void setCurve ( XY p1 , XY cp , XY p2 ) { } } | setCurve ( p1 . x ( ) , p1 . y ( ) , cp . x ( ) , cp . y ( ) , p2 . x ( ) , p2 . y ( ) ) ; |
public class CmsEditModelPageMenuEntry { /** * Opens the editor for a model page menu entry . < p >
* @ param resourcePath the resource path of the model page
* @ param isModelGroup if the given entry is a model group page */
public static void editModelPage ( final String resourcePath , boolean isModelGroup ) { } ... | if ( CmsSitemapView . getInstance ( ) . getController ( ) . getData ( ) . isShowModelEditConfirm ( ) ) { I_CmsConfirmDialogHandler handler = new I_CmsConfirmDialogHandler ( ) { public void onClose ( ) { // noop
} public void onOk ( ) { openEditor ( resourcePath ) ; } } ; String dialogTitle ; String dialogContent ; if (... |
public class GlobalUsersInner { /** * Get personal preferences for a user .
* @ param userName The name of the user .
* @ param personalPreferencesOperationsPayload Represents payload for any Environment operations like get , start , stop , connect
* @ param serviceCallback the async ServiceCallback to handle suc... | return ServiceFuture . fromResponse ( getPersonalPreferencesWithServiceResponseAsync ( userName , personalPreferencesOperationsPayload ) , serviceCallback ) ; |
public class MyExceptionHandler { /** * 参数错误
* @ param paramErrors
* @ param errorCode
* @ return */
private ModelAndView paramError ( Map < String , String > paramErrors , ErrorCode errorCode ) { } } | JsonObjectBase jsonObject = JsonObjectUtils . buildFieldError ( paramErrors , errorCode ) ; LOG . warn ( jsonObject . toString ( ) ) ; return JsonObjectUtils . JsonObjectError2ModelView ( ( JsonObjectError ) jsonObject ) ; |
public class DbsUtilities { /** * Create a polygon using boundaries .
* @ param minX the min x .
* @ param minY the min y .
* @ param maxX the max x .
* @ param maxY the max y .
* @ return the created geomerty . */
public static Polygon createPolygonFromBounds ( double minX , double minY , double maxX , doubl... | Coordinate [ ] c = new Coordinate [ ] { new Coordinate ( minX , minY ) , new Coordinate ( minX , maxY ) , new Coordinate ( maxX , maxY ) , new Coordinate ( maxX , minY ) , new Coordinate ( minX , minY ) } ; return gf ( ) . createPolygon ( c ) ; |
public class AbstractCRUDRestService { /** * { @ inheritDoc } */
@ Override public O doGetObject ( Integer id , final Wave wave ) { } } | LOGGER . trace ( "Get Planet." ) ; final O object = baseWebTarget ( ) . request ( MediaType . APPLICATION_XML ) . get ( genericSingle ) ; return object ; |
public class FileSystem { /** * Loads the factories for the file systems directly supported by Flink .
* Aside from the { @ link LocalFileSystem } , these file systems are loaded
* via Java ' s service framework .
* @ return A map from the file system scheme to corresponding file system factory . */
private stati... | final ArrayList < FileSystemFactory > list = new ArrayList < > ( ) ; // by default , we always have the local file system factory
list . add ( new LocalFileSystemFactory ( ) ) ; LOG . debug ( "Loading extension file systems via services" ) ; for ( Supplier < Iterator < FileSystemFactory > > factoryIteratorsSupplier : f... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link Object } { @ code > } */
@ XmlElementDecl... | return new JAXBElement < Object > ( __GenericApplicationPropertyOfWaterClosureSurface_QNAME , Object . class , null , value ) ; |
public class ODMGSessionBean { /** * Lookup the OJB ODMG implementation .
* It ' s recommended to bind an instance of the Implementation class in JNDI
* ( at appServer start ) , open the database and lookup this instance via JNDI in
* ejbCreate ( ) . */
public void ejbCreate ( ) { } } | log . info ( "ejbCreate was called" ) ; odmg = ODMGHelper . getODMG ( ) ; db = odmg . getDatabase ( null ) ; |
public class GenericLogicDiscoverer { /** * Discover registered operations that consume some ( i . e . , at least one ) of the types of input provided . That is , all
* those that have as input the types provided .
* @ param inputTypes the types of input to be consumed
* @ return a Set containing all the matching... | return findServicesClassifiedBySome ( inputTypes , LogicConceptMatchType . Plugin ) ; |
public class CmsAfterPublishStaticExportHandler { /** * Exports all non template resources found in a list of published resources . < p >
* @ param cms the current cms object
* @ param publishedResources the list of published resources
* @ param report an I _ CmsReport instance to print output message , or null t... | report . println ( Messages . get ( ) . container ( Messages . RPT_STATICEXPORT_NONTEMPLATE_RESOURCES_BEGIN_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_EXPORTING_NON_TEMPLATE_1 , new Integer ( publishedResources . size... |
public class PropertyEditorBase { /** * Revert changes to the property value .
* @ return True if the operation was successful . */
public boolean revert ( ) { } } | try { setWrongValueMessage ( null ) ; setValue ( propInfo . getPropertyValue ( target ) ) ; updateValue ( ) ; return true ; } catch ( Exception e ) { setWrongValueException ( e ) ; return false ; } |
public class PassThruTable { /** * Add a listener to the chain .
* The listener must be cloned and added to all records on the list .
* @ param listener The listener to add . */
public void addListener ( Record record , FileListener listener ) { } } | if ( this . getNextTable ( ) != null ) this . getNextTable ( ) . addListener ( record , listener ) ; |
public class GBMModelV3 { /** * Version & Schema - specific filling into the impl */
@ Override public GBMModel createImpl ( ) { } } | GBMV3 . GBMParametersV3 p = this . parameters ; GBMModel . GBMParameters parms = p . createImpl ( ) ; return new GBMModel ( model_id . key ( ) , parms , new GBMModel . GBMOutput ( null ) ) ; |
public class DirectoryWatcher { /** * Walk the directories under given path , and register a watcher for every directory .
* @ param dir the starting point under which to listen for changes , if it doesn ' t exist , do nothing . */
public void watchDirectoryTree ( Path dir ) { } } | if ( _watchedDirectories == null ) { throw new IllegalStateException ( "DirectoryWatcher.close() was called. Please make a new instance." ) ; } try { if ( Files . exists ( dir ) ) { Files . walkFileTree ( dir , new SimpleFileVisitor < Path > ( ) { @ Override public FileVisitResult preVisitDirectory ( Path dir , BasicFi... |
public class DeleteRemoteAccessSessionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteRemoteAccessSessionRequest deleteRemoteAccessSessionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteRemoteAccessSessionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteRemoteAccessSessionRequest . getArn ( ) , ARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to ... |
public class ReflectUtils { /** * 将字符串转成代码 , 并执行
* < br > < a href = " https : / / blog . csdn . net / qq _ 26954773 / article / details / 80379015#3 - % E6 % B5%8B % E8 % AF % 95 " > 怎么使用 < / a >
* @ param jexlExpression 代码表达式
* @ param map 参数映射
* @ return 执行结果
* @ since 1.0.8 */
public static Object execute... | JexlExpression expression = jexlEngine . createExpression ( jexlExpression ) ; JexlContext context = new MapContext ( ) ; if ( Checker . isNotEmpty ( map ) ) { map . forEach ( context :: set ) ; } return expression . evaluate ( context ) ; |
public class PendingCall { /** * { @ inheritDoc } */
public void setResult ( Object result ) { } } | this . result = result ; if ( this . status == STATUS_PENDING || this . status == STATUS_SUCCESS_NULL || this . status == STATUS_SUCCESS_RESULT ) { setStatus ( result == null ? STATUS_SUCCESS_NULL : STATUS_SUCCESS_RESULT ) ; } |
public class SingleInputSemanticProperties { /** * Adds , to the existing information , a field that is forwarded directly
* from the source record ( s ) to the destination record ( s ) .
* @ param sourceField the position in the source record ( s )
* @ param targetField the position in the destination record ( s... | if ( isTargetFieldPresent ( targetField ) ) { throw new InvalidSemanticAnnotationException ( "Target field " + targetField + " was added twice." ) ; } FieldSet targetFields = fieldMapping . get ( sourceField ) ; if ( targetFields != null ) { fieldMapping . put ( sourceField , targetFields . addField ( targetField ) ) ;... |
public class TransliteratorRegistry { /** * Register an ID and a resource name . This adds an entry to the
* dynamic store , or replaces an existing entry . Any entry in the
* underlying static locale resource store is masked . */
public void put ( String ID , String resourceName , int dir , boolean visible ) { } } | registerEntry ( ID , new ResourceEntry ( resourceName , dir ) , visible ) ; |
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 220:1 : ruleXAnnotationElementValuePair returns [ EObject current = null ] : ( ( ( ( ( ( ruleValidID ) ) ' = ' ) ) = > ( ( ( ruleValidID ) ) otherlv _ 1 = ' = ' ) ) ( ( lv _ value _ 2_0 = ruleXAnnotationElementValue ) ) ) ; */
pu... | EObject current = null ; Token otherlv_1 = null ; EObject lv_value_2_0 = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotations . g : 226:2 : ( ( ( ( ( ( ( ruleValidID ) ) ' = ' ) ) = > ( ( ( ruleValidID ) ) otherlv _ 1 = ' = ' ) ) ( ( lv _ value _ 2_0 = ruleXAnnotationElementValue ) ) ) )
// InternalXbaseWithAnn... |
public class JREDateTimeUtil { /** * internally we use a other instance to avoid conflicts */
private static Calendar _getThreadCalendar ( Locale l , TimeZone tz ) { } } | Calendar c = _localeCalendar . get ( tz , l ) ; if ( tz == null ) tz = ThreadLocalPageContext . getTimeZone ( ) ; c . setTimeZone ( tz ) ; return c ; |
public class QuantityClientParam { /** * Use the given quantity prefix
* @ param thePrefix The prefix , or < code > null < / code > for no prefix */
public IMatches < IAndUnits > withPrefix ( final ParamPrefixEnum thePrefix ) { } } | return new NumberClientParam . IMatches < IAndUnits > ( ) { @ Override public IAndUnits number ( long theNumber ) { return new AndUnits ( thePrefix , Long . toString ( theNumber ) ) ; } @ Override public IAndUnits number ( String theNumber ) { return new AndUnits ( thePrefix , theNumber ) ; } } ; |
public class SendRequest { /** * Simply wraps a pre - built incomplete transaction provided by you . */
public static SendRequest forTx ( Transaction tx ) { } } | SendRequest req = new SendRequest ( ) ; req . tx = tx ; return req ; |
public class XMLUpdateShredder { /** * Insert a text node .
* @ param paramText
* { @ link Characters } , which is going to be inserted .
* @ throws TTException
* In case any exception occurs while moving the cursor or
* deleting nodes in Treetank .
* @ throws XMLStreamException
* In case of any StAX pars... | assert paramText != null ; /* * Add node if it ' s either not found among right siblings ( and the
* cursor on the shreddered file is on a right sibling ) or if it ' s not
* found in the structure and it is a new last right sibling . */
mDelete = EDelete . NODELETE ; mRemovedNode = false ; switch ( mInsert ) { case... |
public class PTable { /** * Free this table if it is no longer being used .
* @ param pTableOwner The table owner to remove . */
public synchronized int removePTableOwner ( ThinPhysicalTableOwner pTableOwner , boolean bFreeIfEmpty ) { } } | if ( pTableOwner != null ) { m_setPTableOwners . remove ( pTableOwner ) ; pTableOwner . setPTable ( null ) ; } if ( m_setPTableOwners . size ( ) == 0 ) if ( bFreeIfEmpty ) { this . free ( ) ; return 0 ; } m_lTimeLastUsed = System . currentTimeMillis ( ) ; return m_setPTableOwners . size ( ) ; |
public class MCWrapper { /** * Retrieves a new connection handle from the < code > ManagedConnection < / code > .
* Also keeps track of the PMI data relative to the number of handles in use .
* @ param subj Security Subject
* @ param cri ConnectionRequestInfo object .
* @ return Connection handle .
* @ except... | final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "getConnection" ) ; } Object connection = null ; // Get the a Connection from the ManagedConnection to return to our caller , and increment the
// number of open conn... |
public class RuntimeUtil { /** * 执行系统命令 , 使用系统默认编码
* @ param charset 编码
* @ param cmds 命令列表 , 每个元素代表一条命令
* @ return 执行结果
* @ throws IORuntimeException IO异常
* @ since 3.1.2 */
public static String execForStr ( Charset charset , String ... cmds ) throws IORuntimeException { } } | return getResult ( exec ( cmds ) , charset ) ; |
public class ResourceProcessor { /** * Check attributes for registered ObjectFactory ' s .
* @ param resourceBinding
* @ param extensionFactory
* @ throws InjectionConfigurationException */
private void checkObjectFactoryAttributes ( ResourceInjectionBinding resourceBinding , ObjectFactoryInfo extensionFactory ) ... | Resource resourceAnnotation = resourceBinding . getAnnotation ( ) ; if ( ! extensionFactory . isAttributeAllowed ( "authenticationType" ) ) { checkObjectFactoryAttribute ( resourceBinding , "authenticationType" , resourceAnnotation . authenticationType ( ) , AuthenticationType . CONTAINER ) ; } if ( ! extensionFactory ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.