signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DatasourceJBossASClient { /** * Checks to see if there is already a XA datasource with the given name .
* @ param datasourceName the name to check
* @ return true if there is a XA datasource with the given name already in existence
* @ throws Exception any error */
public boolean isXADatasource ( Str... | Address addr = Address . root ( ) . add ( SUBSYSTEM , SUBSYSTEM_DATASOURCES ) ; String haystack = XA_DATA_SOURCE ; return null != findNodeInList ( addr , haystack , datasourceName ) ; |
public class MtasSolrComponentDocument { /** * ( non - Javadoc )
* @ see
* mtas . solr . handler . component . util . MtasSolrComponent # modifyRequest ( org . apache
* . solr . handler . component . ResponseBuilder ,
* org . apache . solr . handler . component . SearchComponent ,
* org . apache . solr . hand... | if ( sreq . params . getBool ( MtasSolrSearchComponent . PARAM_MTAS , false ) && sreq . params . getBool ( PARAM_MTAS_DOCUMENT , false ) ) { if ( ( sreq . purpose & ShardRequest . PURPOSE_GET_FIELDS ) != 0 ) { // do nothing
} else { Set < String > keys = MtasSolrResultUtil . getIdsFromParameters ( rb . req . getParams ... |
public class FlowLoaderUtils { /** * Clean up the directory .
* @ param dir the directory to be deleted */
public static void cleanUpDir ( final File dir ) { } } | try { if ( dir != null && dir . exists ( ) ) { FileUtils . deleteDirectory ( dir ) ; } } catch ( final IOException e ) { logger . error ( "Failed to delete the directory" , e ) ; dir . deleteOnExit ( ) ; } |
public class NotificationHubsInner { /** * Gets the authorization rules for a NotificationHub .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws CloudException thrown if the request is ... | ServiceResponse < Page < SharedAccessAuthorizationRuleResourceInner > > response = listAuthorizationRulesNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < SharedAccessAuthorizationRuleResourceInner > ( response . body ( ) ) { @ Override public Page < SharedAccessAuthorizationRu... |
public class NotificationHubsInner { /** * Deletes a notificationHub authorization rule .
* @ param resourceGroupName The name of the resource group .
* @ param namespaceName The namespace name .
* @ param notificationHubName The notification hub name .
* @ param authorizationRuleName Authorization Rule Name . ... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( namespaceName == null ) { throw new IllegalArgumentException ( "Parameter namespaceName is required and cannot be null." ) ; } if ( notificationHubName == null ) { throw new I... |
public class FoxHttpClient { /** * Register an interceptor
* @ param interceptorType Type of the interceptor
* @ param foxHttpInterceptor Interceptor instance
* @ throws FoxHttpException Throws an exception if the interceptor does not match the type */
public void register ( FoxHttpInterceptorType interceptorType... | FoxHttpInterceptorType . verifyInterceptor ( interceptorType , foxHttpInterceptor ) ; if ( foxHttpInterceptors . containsKey ( interceptorType ) ) { foxHttpInterceptors . get ( interceptorType ) . add ( foxHttpInterceptor ) ; } else { foxHttpInterceptors . put ( interceptorType , new ArrayList < > ( Arrays . asList ( f... |
public class RequestHttp1 { /** * Handles a timeout . */
@ Override public void onTimeout ( ) { } } | try { // request ( ) . sendError ( WebRequest . INTERNAL _ SERVER _ ERROR ) ;
if ( true ) throw new UnsupportedOperationException ( ) ; } catch ( Exception e ) { log . log ( Level . FINEST , e . toString ( ) , e ) ; } closeResponse ( ) ; |
public class ParsedSelectStmt { /** * Read the schema from the XML . Add the parsed columns to the
* list of columns . One might think this is the same as
* AbstractParsedStmt . parseTable , but it is not . That function
* parses a statement scan from a join expression , not a
* table schema . */
private void p... | assert ( "table" . equals ( voltXMLElement . name ) ) ; List < VoltXMLElement > columnSet = voltXMLElement . findChildren ( "columns" ) ; assert ( columnSet . size ( ) == 1 ) ; columnSet = columnSet . get ( 0 ) . children ; for ( int idx = 0 ; idx < columnSet . size ( ) ; idx += 1 ) { VoltXMLElement columnXML = columnS... |
public class PubType { /** * getter for pubDate - gets The date on which the document was published , O
* @ generated
* @ return value of the feature */
public Date getPubDate ( ) { } } | if ( PubType_Type . featOkTst && ( ( PubType_Type ) jcasType ) . casFeat_pubDate == null ) jcasType . jcas . throwFeatMissing ( "pubDate" , "de.julielab.jules.types.PubType" ) ; return ( Date ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( PubType_Type ) jcasType ) . casFeatCode... |
public class Stock { /** * Requests the historical splits for this stock with the following characteristics .
* < ul >
* < li > from : specified value
* < li > to : specified value
* < / ul >
* @ param from start date of the historical data
* @ param to end date of the historical data
* @ return a list of... | if ( YahooFinance . HISTQUOTES2_ENABLED . equalsIgnoreCase ( "true" ) ) { HistSplitsRequest histSplit = new HistSplitsRequest ( this . symbol , from , to ) ; this . setSplitHistory ( histSplit . getResult ( ) ) ; } else { // Historical splits cannot be retrieved without CRUMB
this . setSplitHistory ( null ) ; } return ... |
public class TimeExpression { /** * Create a hours expression ( range 0-23)
* @ return hour */
public NumberExpression < Integer > hour ( ) { } } | if ( hours == null ) { hours = Expressions . numberOperation ( Integer . class , Ops . DateTimeOps . HOUR , mixin ) ; } return hours ; |
public class SarlSkillBuilderImpl { /** * Add a modifier .
* @ param modifier the modifier to add . */
public void addModifier ( String modifier ) { } } | if ( ! Strings . isEmpty ( modifier ) ) { this . sarlSkill . getModifiers ( ) . add ( modifier ) ; } |
public class AmazonPinpointClient { /** * Returns information about an export job .
* @ param getExportJobRequest
* @ return Result of the GetExportJob operation returned by the service .
* @ throws BadRequestException
* 400 response
* @ throws InternalServerErrorException
* 500 response
* @ throws Forbid... | request = beforeClientExecution ( request ) ; return executeGetExportJob ( request ) ; |
public class SARLProjectConfigurator { /** * Read the SARL configuration .
* @ param request the configuration request .
* @ param monitor the monitor .
* @ return the SARL configuration .
* @ throws CoreException if something wrong appends . */
protected SARLConfiguration readConfiguration ( ProjectConfigurati... | SARLConfiguration initConfig = null ; SARLConfiguration compileConfig = null ; final List < MojoExecution > mojos = getMojoExecutions ( request , monitor ) ; for ( final MojoExecution mojo : mojos ) { final String goal = mojo . getGoal ( ) ; switch ( goal ) { case "initialize" : // $ NON - NLS - 1 $
initConfig = readIn... |
public class Years { /** * Obtains an instance of < code > Years < / code > that may be cached .
* < code > Years < / code > is immutable , so instances can be cached and shared .
* This factory method provides access to shared instances .
* @ param years the number of years to obtain an instance for
* @ return... | switch ( years ) { case 0 : return ZERO ; case 1 : return ONE ; case 2 : return TWO ; case 3 : return THREE ; case Integer . MAX_VALUE : return MAX_VALUE ; case Integer . MIN_VALUE : return MIN_VALUE ; default : return new Years ( years ) ; } |
public class NexusSearch { /** * Do a preflight request to see if the repository is actually working .
* @ return whether the repository is listening and returns the / status URL
* correctly */
public boolean preflightRequest ( ) { } } | final HttpURLConnection conn ; try { final URL url = new URL ( rootURL , "status" ) ; final URLConnectionFactory factory = new URLConnectionFactory ( settings ) ; conn = factory . createHttpURLConnection ( url , useProxy ) ; conn . addRequestProperty ( "Accept" , "application/xml" ) ; final String authHeader = buildHtt... |
public class SubjectUtils { /** * Returns a new collection containing all elements in { @ code items } for which there exists at
* least one element in { @ code itemsToCheck } that has the same { @ code toString ( ) } value without
* being equal .
* < p > Example : { @ code retainMatchingToString ( [ 1L , 2L , 2L... | SetMultimap < String , Object > stringValueToItemsToCheck = HashMultimap . create ( ) ; for ( Object itemToCheck : itemsToCheck ) { stringValueToItemsToCheck . put ( String . valueOf ( itemToCheck ) , itemToCheck ) ; } List < Object > result = Lists . newArrayList ( ) ; for ( Object item : items ) { for ( Object itemTo... |
public class ns_cluster { /** * < pre >
* Performs generic data validation for the operation to be performed
* < / pre > */
protected void validate ( String operationType ) throws Exception { } } | super . validate ( operationType ) ; MPSIPAddress ipaddress_validator = new MPSIPAddress ( ) ; ipaddress_validator . validate ( operationType , ipaddress , "\"ipaddress\"" ) ; MPSIPAddress clip_validator = new MPSIPAddress ( ) ; clip_validator . validate ( operationType , clip , "\"clip\"" ) ; MPSInt nodeid_validator =... |
public class EasyPredictModelWrapper { /** * Make a prediction on a new data point using a Ordinal model .
* @ param data A new data point .
* @ param offset Prediction offset
* @ return The prediction .
* @ throws PredictException */
public OrdinalModelPrediction predictOrdinal ( RowData data , double offset )... | double [ ] preds = preamble ( ModelCategory . Ordinal , data , offset ) ; OrdinalModelPrediction p = new OrdinalModelPrediction ( ) ; p . classProbabilities = new double [ m . getNumResponseClasses ( ) ] ; p . labelIndex = ( int ) preds [ 0 ] ; String [ ] domainValues = m . getDomainValues ( m . getResponseIdx ( ) ) ; ... |
public class AmBaseSpout { /** * Use only MessageKey ( Use key history ' s value ) and not use MessageId ( Id identify by storm ) . < br >
* Send message to downstream component . < br >
* Use following situation .
* < ol >
* < li > Use this class ' s key history function . < / li >
* < li > Not use storm ' s... | if ( this . recordHistory ) { message . getHeader ( ) . addHistory ( messageKey . toString ( ) ) ; } this . getCollector ( ) . emit ( new Values ( "" , message ) ) ; |
public class SmilesParser { /** * Parses CXSMILES layer and set attributes for atoms and bonds on the provided reaction .
* @ param title SMILES title field
* @ param rxn parsed reaction */
private void parseRxnCXSMILES ( String title , IReaction rxn ) { } } | CxSmilesState cxstate ; int pos ; if ( title != null && title . startsWith ( "|" ) ) { if ( ( pos = CxSmilesParser . processCx ( title , cxstate = new CxSmilesState ( ) ) ) >= 0 ) { // set the correct title
rxn . setProperty ( CDKConstants . TITLE , title . substring ( pos ) ) ; final Map < IAtom , IAtomContainer > ato... |
public class IndexedSet { /** * { @ inheritDoc } */
@ Override public int compareTo ( ExtendedSet < T > o ) { } } | return indices . compareTo ( convert ( o ) . indices ) ; |
public class CmsTinyMceToolbarHelper { /** * Returns the context menu entries according to the configured tool - bar items . < p >
* @ param barItems the tool - bar items
* @ return the context menu entries */
public static String getContextMenuEntries ( List < String > barItems ) { } } | String result = "" ; if ( barItems . contains ( "link" ) ) { result += translateButton ( "link" ) ; } if ( barItems . contains ( "downloadgallery" ) ) { result += " " + translateButton ( "downloadgallery" ) ; } if ( barItems . contains ( "imagegallery" ) ) { result += " " + translateButton ( "imagegallery" ) ; } if ( b... |
public class WaveformGenerator { /** * SID reset . */
public void reset ( ) { } } | accumulator = 0 ; if ( ANTTI_LANKILA_PATCH ) shift_register = 0x7ffffc ; else shift_register = 0x7ffff8 ; freq = 0 ; pw = 0 ; test = 0 ; ring_mod = 0 ; sync = 0 ; msb_rising = false ; |
public class WalletNameResolver { /** * Resolve a Wallet Name URL Endpoint
* @ param url Wallet Name URL Endpoint
* @ param verifyTLSA Do TLSA validation for URL Endpoint ?
* @ return String data value returned by URL Endpoint
* @ throws WalletNameLookupException Wallet Name Address Service URL Processing Failu... | HttpsURLConnection conn = null ; InputStream ins ; InputStreamReader isr ; BufferedReader in = null ; Certificate possibleRootCert = null ; if ( verifyTLSA ) { try { if ( ! this . tlsaValidator . validateTLSA ( url ) ) { throw new WalletNameTlsaValidationException ( "TLSA Validation Failed" ) ; } } catch ( ValidSelfSig... |
public class MathFunctions { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div >
* < div color = ' red ' style = " font - size : 18px ; color : red " > < i > return the square root of a number . < / i > < / div >
* < div color = ' re... | JcNumber ret = new JcNumber ( null , this . argument , new FunctionInstance ( FUNCTION . Math . SQRT , 1 ) ) ; QueryRecorder . recordInvocationConditional ( this , "sqrt" , ret ) ; return ret ; |
public class JavaScriptEscape { /** * Perform a JavaScript level 1 ( only basic set ) < strong > escape < / strong > operation
* on a < tt > char [ ] < / tt > input .
* < em > Level 1 < / em > means this method will only escape the JavaScript basic escape set :
* < ul >
* < li > The < em > Single Escape Charact... | escapeJavaScript ( text , offset , len , writer , JavaScriptEscapeType . SINGLE_ESCAPE_CHARS_DEFAULT_TO_XHEXA_AND_UHEXA , JavaScriptEscapeLevel . LEVEL_1_BASIC_ESCAPE_SET ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcEnvironmentalImpactValue ( ) { } } | if ( ifcEnvironmentalImpactValueEClass == null ) { ifcEnvironmentalImpactValueEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 208 ) ; } return ifcEnvironmentalImpactValueEClass ; |
public class SubscriptionItem { /** * For the specified subscription item , returns a list of summary objects . Each object in the list
* provides usage information that ’ s been summarized from multiple usage records and over a
* subscription billing period ( e . g . , 15 usage records in the billing plan ’ s mont... | String url = String . format ( "%s%s" , Stripe . getApiBase ( ) , String . format ( "/v1/subscription_items/%s/usage_record_summaries" , ApiResource . urlEncodeId ( this . getId ( ) ) ) ) ; return requestCollection ( url , params , UsageRecordSummaryCollection . class , options ) ; |
public class GetPipelineDefinitionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetPipelineDefinitionRequest getPipelineDefinitionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getPipelineDefinitionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getPipelineDefinitionRequest . getPipelineId ( ) , PIPELINEID_BINDING ) ; protocolMarshaller . marshall ( getPipelineDefinitionRequest . getVersion ( ) , VE... |
public class FontUtils { /** * Gets the specified font with the specified size , correctly scaled
* @ param font
* @ param size
* @ since 2.7.0
* @ return the specified font with the specified size , correctly scaled */
public static Font getFont ( Font font , Size size ) { } } | float s ; switch ( size ) { case smallest : s = ( float ) ( font . getSize ( ) * 0.5 ) ; break ; case much_smaller : s = ( float ) ( font . getSize ( ) * 0.7 ) ; break ; case smaller : s = ( float ) ( font . getSize ( ) * 0.8 ) ; break ; case standard : s = ( float ) font . getSize ( ) ; break ; case larger : s = ( flo... |
public class Async { /** * Convert a synchronous function call into an asynchronous function call through an Observable .
* < img width = " 640 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / toAsync . s . png " alt = " " >
* @ param < R > the result type
* @ param... | return new FuncN < Observable < R > > ( ) { @ Override public Observable < R > call ( Object ... args ) { return startCallable ( ThrowingFunctions . toCallable ( func , args ) , scheduler ) ; } } ; |
public class MssEncryptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( MssEncryption mssEncryption , ProtocolMarshaller protocolMarshaller ) { } } | if ( mssEncryption == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( mssEncryption . getSpekeKeyProvider ( ) , SPEKEKEYPROVIDER_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e ... |
public class AtomContainer { /** * { @ inheritDoc } */
@ Override public void removeAllElements ( ) { } } | removeAllElectronContainers ( ) ; for ( int f = 0 ; f < getAtomCount ( ) ; f ++ ) { getAtom ( f ) . removeListener ( this ) ; } atoms = new IAtom [ growArraySize ] ; atomCount = 0 ; stereoElements . clear ( ) ; notifyChanged ( ) ; |
public class Entity { /** * 设置字段列表 , 用于限制加入的字段的值
* @ param fieldNames 字段列表
* @ return 自身 */
public Entity setFieldNames ( String ... fieldNames ) { } } | if ( ArrayUtil . isNotEmpty ( fieldNames ) ) { this . fieldNames = CollectionUtil . newHashSet ( fieldNames ) ; } return this ; |
public class Buffer { /** * Like { @ link # varintSizeInBytes ( int ) } , except for uint64. */
public static int varintSizeInBytes ( long v ) { } } | if ( ( v & ( 0xffffffffffffffffL << 7 ) ) == 0 ) return 1 ; if ( ( v & ( 0xffffffffffffffffL << 14 ) ) == 0 ) return 2 ; if ( ( v & ( 0xffffffffffffffffL << 21 ) ) == 0 ) return 3 ; if ( ( v & ( 0xffffffffffffffffL << 28 ) ) == 0 ) return 4 ; if ( ( v & ( 0xffffffffffffffffL << 35 ) ) == 0 ) return 5 ; if ( ( v & ( 0xf... |
public class Yarrgs { /** * Parses < code > args < / code > into an instance of < code > argsType < / code > using
* { @ link Parsers # createFieldParserFactory ( ) } . If the user supplied bad arguments ,
* < code > YarrgParseException < / code > is thrown . If they asked for help ,
* < code > YarrgHelpException... | return parse ( argsType , args , Parsers . createFieldParserFactory ( ) ) ; |
public class CmsSitemapHoverbar { /** * Installs a hover bar for the given item widget . < p >
* @ param controller the controller
* @ param treeItem the item to hover
* @ param buttons the buttons
* @ return the hover bar instance */
public static CmsSitemapHoverbar installOn ( CmsSitemapController controller ... | CmsSitemapHoverbar hoverbar = new CmsSitemapHoverbar ( controller , buttons ) ; installHoverbar ( hoverbar , treeItem . getListItemWidget ( ) ) ; return hoverbar ; |
public class FindPositionArray { /** * Returns a list of Long that contains the indices of positions computed
* according to the given bit vector .
* @ return a list of Long that contains the indices of positions computed
* according to the given bit vector */
List < Long > getPositionList ( ) { } } | List < Long > ret = new ArrayList < Long > ( ) ; ret . add ( - 1L ) ; /* * This - 1 is pointing to the previous position of the first valid
* position of the bit vector , which starts at index 0 . Since the zeroth
* occurrence of a bit is undefined , the first occurrence can be at
* position 0 , or later . */
lon... |
public class OrcInputStream { /** * This comes from the Apache Hive ORC code */
private void advance ( ) throws IOException { } } | if ( compressedSliceInput == null || compressedSliceInput . remaining ( ) == 0 ) { current = null ; return ; } // 3 byte header
// NOTE : this must match BLOCK _ HEADER _ SIZE
currentCompressedBlockOffset = toIntExact ( compressedSliceInput . position ( ) ) ; int b0 = compressedSliceInput . readUnsignedByte ( ) ; int b... |
public class RequestQueries { /** * Returns the request query form produced from the given input arguments . */
protected String buildQuery ( Properties parms , RequestType type ) { } } | if ( parms . isEmpty ( ) ) type = RequestType . query ; RString result = new RString ( _queryHtml ) ; result . replace ( "REQ_NAME" , this . getClass ( ) . getSimpleName ( ) ) ; StringBuilder query = new StringBuilder ( ) ; query . append ( "<form onsubmit='return false;'>" ) ; RString script = new RString ( _queryJs )... |
public class SymbolTable { /** * Returns a hashcode value for the specified symbol . The value
* returned by this method must be identical to the value returned
* by the < code > hash ( char [ ] , int , int ) < / code > method when called
* with the character array that comprises the symbol string .
* @ param s... | int code = 0 ; int length = symbol . length ( ) ; for ( int i = 0 ; i < length ; i ++ ) { code = code * 37 + symbol . charAt ( i ) ; } return code & 0x7FFFFFF ; |
public class GenericMapper { /** * @ param meta
* @ param genericMapper2
* @ return 下午3:45:38 created by Darwin ( Tianxin )
* @ throws SQLException */
private List < Setter > getSetters ( ResultSetMetaData meta ) throws SQLException { } } | int columnCount = meta . getColumnCount ( ) ; List < Setter > setters = new ArrayList < Setter > ( columnCount ) ; for ( int i = 1 ; i <= columnCount ; i ++ ) { String column = meta . getColumnName ( i ) ; Method setMethod = orMapping . getSetter ( column ) ; if ( setMethod != null ) { Setter setter = new Setter ( setM... |
public class ConstantListIndex { /** * returns whether the array item was returned from a common method that the user can ' t do anything about and so don ' t report CLI in this case .
* @ param item
* the stack item representing the array
* @ return if the array was returned from a common method */
private stati... | XMethod method = item . getReturnValueOf ( ) ; if ( method == null ) { return false ; } FQMethod methodDesc = new FQMethod ( method . getClassName ( ) . replace ( '.' , '/' ) , method . getName ( ) , method . getSignature ( ) ) ; return ubiquitousMethods . contains ( methodDesc ) ; |
public class InstrumentedExecutors { /** * Creates an instrumented thread pool that can schedule commands to run after a
* given delay , or to execute periodically .
* @ param corePoolSize the number of threads to keep in the pool ,
* even if they are idle
* @ param registry the { @ link MetricRegistry } that w... | return new InstrumentedScheduledExecutorService ( Executors . newScheduledThreadPool ( corePoolSize ) , registry ) ; |
public class AbstractRestClient { /** * Load X509 certificate from resources .
* Certificates can be in binary or base64 DER / . crt format .
* @ param resourcethe resource name
* @ returnX509 certificate
* @ throws CertificateExceptionif the certificate couldn ' t be loaded */
protected X509Certificate loadX50... | InputStream derInputStream = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( resource ) ; CertificateFactory certificateFactory = CertificateFactory . getInstance ( "X.509" ) ; X509Certificate cert = ( X509Certificate ) certificateFactory . generateCertificate ( derInputStream ) ; try { derInputStream ... |
public class DefaultExpander { /** * Clean up constructions that exists only in the unexpanded code
* @ param drl
* @ return */
private String cleanupExpressions ( String drl ) { } } | // execute cleanup
for ( final DSLMappingEntry entry : this . cleanup ) { drl = entry . getKeyPattern ( ) . matcher ( drl ) . replaceAll ( entry . getValuePattern ( ) ) ; } return drl ; |
public class CmsForm { /** * Collects all values from the form fields . < p >
* This method omits form fields whose values are null .
* @ return a map of the form field values */
public Map < String , String > collectValues ( ) { } } | Map < String , String > result = new HashMap < String , String > ( ) ; for ( Map . Entry < String , I_CmsFormField > entry : m_fields . entrySet ( ) ) { String key = entry . getKey ( ) ; String value = null ; I_CmsFormField field = entry . getValue ( ) ; value = field . getModelValue ( ) ; result . put ( key , value ) ... |
public class ObjectArrayDump { /** * ~ Methods - - - - - */
public long getSize ( ) { } } | int idSize = dumpClass . getHprofBuffer ( ) . getIDSize ( ) ; return dumpClass . classDumpSegment . getMinimumInstanceSize ( ) + HPROF_ARRAY_OVERHEAD + ( ( long ) idSize * getLength ( ) ) ; |
public class MetadataVersionStoreUtils { /** * Retrieves a properties ( hashmap ) consisting of all the metadata versions
* @ param versionStore The system store client used to retrieve the metadata
* versions
* @ return Properties object containing all the
* ' property _ name = property _ value ' values */
pub... | Properties props = null ; Versioned < String > versioned = versionStore . getSysStore ( SystemStoreConstants . VERSIONS_METADATA_KEY ) ; if ( versioned != null && versioned . getValue ( ) != null ) { try { String versionList = versioned . getValue ( ) ; props = new Properties ( ) ; props . load ( new ByteArrayInputStre... |
public class ExecutorServlet { /** * Prepare the executor for shutdown .
* @ param respMap json response object */
private void shutdown ( final Map < String , Object > respMap ) { } } | try { logger . warn ( "Shutting down executor..." ) ; // Set the executor to inactive . Will receive no new flows .
setActiveInternal ( false ) ; this . application . shutdown ( ) ; respMap . put ( ConnectorParams . STATUS_PARAM , ConnectorParams . RESPONSE_SUCCESS ) ; } catch ( final Exception e ) { logger . error ( e... |
public class RelatedTablesExtension { /** * Get the related id mappings for the base id
* @ param tableName
* mapping table name
* @ param baseId
* base id
* @ return IDs representing the matching related IDs */
public List < Long > getMappingsForBase ( String tableName , long baseId ) { } } | List < Long > relatedIds = new ArrayList < > ( ) ; UserMappingDao userMappingDao = getMappingDao ( tableName ) ; UserCustomResultSet resultSet = userMappingDao . queryByBaseId ( baseId ) ; try { while ( resultSet . moveToNext ( ) ) { UserMappingRow row = userMappingDao . getRow ( resultSet ) ; relatedIds . add ( row . ... |
public class OverrideHelper { /** * / * @ Nullable */
protected JvmOperation findOverriddenOperation ( JvmOperation operation , LightweightTypeReference declaringType , TypeParameterSubstitutor < ? > substitutor , ITypeReferenceOwner owner , IVisibilityHelper visibilityHelper ) { } } | int parameterSize = operation . getParameters ( ) . size ( ) ; List < LightweightTypeReference > superTypes = declaringType . getSuperTypes ( ) ; for ( LightweightTypeReference superType : superTypes ) { if ( superType . getType ( ) instanceof JvmDeclaredType ) { JvmDeclaredType declaredSuperType = ( JvmDeclaredType ) ... |
public class XLinkConnectorManagerImpl { /** * URLEncodes the given Parameter in UTF - 8 */
private static String urlEncodeParameter ( String parameter ) { } } | try { return URLEncoder . encode ( parameter , "UTF-8" ) ; } catch ( UnsupportedEncodingException ex ) { log . warn ( "Could not encode parameter." , ex ) ; } return parameter ; |
public class CallbackImpl { /** * { @ inheritDoc } */
public Principal mapPrincipal ( String name ) { } } | if ( principals != null ) { String mapping = principals . get ( name ) ; if ( mapping != null ) { return new SimplePrincipal ( mapping ) ; } } return null ; |
public class DisassociateDRTLogBucketRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DisassociateDRTLogBucketRequest disassociateDRTLogBucketRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( disassociateDRTLogBucketRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disassociateDRTLogBucketRequest . getLogBucket ( ) , LOGBUCKET_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall r... |
public class PluginConfigSupport { /** * return the filename of the project artifact to be installed by
* install - apps goal */
protected String getApplicationFilename ( ) { } } | // A project doesn ' t build a web application artifact but getting the
// application artifacts from dependencies . e . g . liberty - assembly type
// project .
if ( "dependencies" . equals ( getInstallAppPackages ( ) ) ) { return null ; } // project artifact has not be created yet when create - server goal is
// call... |
public class CacheControlBuilder { /** * Set the maximum age for shared caches relative to the request time . Similar
* to max - age , except that it only applies to shared ( e . g . , proxy ) caches .
* @ param eTimeUnit
* { @ link TimeUnit } to use
* @ param nDuration
* The duration in the passed unit
* @... | return setSharedMaxAgeSeconds ( eTimeUnit . toSeconds ( nDuration ) ) ; |
public class HostCertificateManager { /** * Replaces the trusted Certificate Authority ( CA ) certificates and Certification Revocation List ( CRL ) used by the
* server with the provided values . These determine whether the server can verify the identity of an external entity .
* @ param caCert List of SSL certifi... | getVimService ( ) . replaceCACertificatesAndCRLs ( getMOR ( ) , caCert , caCrl ) ; |
public class VariableImpl { /** * check if the arguments are named arguments or regular arguments , throws a exception when mixed
* @ param funcName
* @ param args
* @ param line
* @ return
* @ throws TransformerException */
private static boolean isNamed ( String funcName , Argument [ ] args ) throws Transfo... | if ( ArrayUtil . isEmpty ( args ) ) return false ; boolean named = false ; for ( int i = 0 ; i < args . length ; i ++ ) { if ( args [ i ] instanceof NamedArgument ) named = true ; else if ( named ) throw new TransformerException ( "invalid argument for function " + funcName + ", you can not mix named and unnamed argume... |
public class DeviceAttribute_3DAODefaultImpl { public void insert ( final float [ ] argin , final int dim_x , final int dim_y ) { } } | attrval . r_dim . dim_x = dim_x ; attrval . r_dim . dim_y = dim_y ; DevVarFloatArrayHelper . insert ( attrval . value , argin ) ; |
public class SecurityActions { /** * Returns a system property value using the specified < code > key < / code > .
* @ param key
* @ return */
static String getSystemProperty ( final String key ) { } } | final SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { return AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { public String run ( ) { return System . getProperty ( key ) ; } } ) ; } else { return System . getProperty ( key ) ; } |
public class CUtil { /** * Compares the contents of 2 arrays for equaliy . */
public static boolean sameList ( final Object [ ] a , final Object [ ] b ) { } } | if ( a == null || b == null || a . length != b . length ) { return false ; } for ( int i = 0 ; i < a . length ; i ++ ) { if ( ! a [ i ] . equals ( b [ i ] ) ) { return false ; } } return true ; |
public class GeneratedModel { /** * Allocates a double [ ] and a float [ ] for every row */
public float [ ] predict ( Map < String , Double > row ) { } } | return predict ( map ( row , new double [ getNames ( ) . length ] ) , new float [ getNumResponseClasses ( ) + 1 ] ) ; |
public class JournalHelper { /** * Copy an input stream to a temporary file , so we can hand an input stream
* to the delegate and have another input stream for the journal . */
public static File copyToTempFile ( InputStream serialization ) throws IOException , FileNotFoundException { } } | File tempFile = createTempFile ( ) ; StreamUtility . pipeStream ( serialization , new FileOutputStream ( tempFile ) , 4096 ) ; return tempFile ; |
public class JerseyVerticle { /** * { @ inheritDoc } */
@ Override public void start ( final Future < Void > startedResult ) throws Exception { } } | this . start ( ) ; jerseyServer . start ( ar -> { if ( ar . succeeded ( ) ) { startedResult . complete ( ) ; } else { startedResult . fail ( ar . cause ( ) ) ; } } ) ; |
public class OrmDescriptorImpl { /** * If not already created , a new < code > persistence - unit - metadata < / code > element with the given value will be created .
* Otherwise , the existing < code > persistence - unit - metadata < / code > element will be returned .
* @ return a new or existing instance of < co... | Node node = model . getOrCreate ( "persistence-unit-metadata" ) ; PersistenceUnitMetadata < OrmDescriptor > persistenceUnitMetadata = new PersistenceUnitMetadataImpl < OrmDescriptor > ( this , "persistence-unit-metadata" , model , node ) ; return persistenceUnitMetadata ; |
public class NetworkWatchersInner { /** * Lists all available internet service providers for a specified Azure region .
* @ param resourceGroupName The name of the network watcher resource group .
* @ param networkWatcherName The name of the network watcher resource .
* @ param parameters Parameters that scope th... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( networkWatcherName == null ) { throw new IllegalArgumentException ( "Parameter networkWatcherName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ... |
public class DateTimeAdapter { /** * Marshal a Date to a String for use by JAXB .
* @ param value Date object to marshal .
* @ return String form of date . */
public String marshal ( Date value ) { } } | String val = "" ; if ( value != null ) { Calendar cal = new GregorianCalendar ( ) ; cal . setTime ( value ) ; return DatatypeConverter . printDateTime ( cal ) ; } System . out . println ( "Date value: " + value ) ; return val ; |
public class EvaluateIntrinsicDimensionalityEstimators { /** * Generate a data sample .
* @ param maxk Number of entries .
* @ return Data sample */
protected double [ ] makeSample ( int maxk ) { } } | final Random rnd = this . rnd . getSingleThreadedRandom ( ) ; double [ ] dists = new double [ maxk + 1 ] ; final double e = 1. / dim ; for ( int i = 0 ; i <= maxk ; i ++ ) { dists [ i ] = FastMath . pow ( rnd . nextDouble ( ) , e ) ; } Arrays . sort ( dists ) ; return dists ; |
public class LettuceAssert { /** * Assert that a string is not empty , it must not be { @ code null } and it must not be empty .
* @ param string the object to check
* @ param message the exception message to use if the assertion fails
* @ throws IllegalArgumentException if the object is { @ code null } or the un... | if ( LettuceStrings . isEmpty ( string ) ) { throw new IllegalArgumentException ( message ) ; } |
public class Matchers { /** * Matches an class based on whether it is nested in another class or method .
* @ param kind The kind of nesting to match , eg ANONYMOUS , LOCAL , MEMBER , TOP _ LEVEL */
public static Matcher < ClassTree > nestingKind ( final NestingKind kind ) { } } | return new Matcher < ClassTree > ( ) { @ Override public boolean matches ( ClassTree classTree , VisitorState state ) { ClassSymbol sym = ASTHelpers . getSymbol ( classTree ) ; return sym . getNestingKind ( ) == kind ; } } ; |
public class Stylesheet { /** * Get an " xsl : decimal - format " property .
* @ see DecimalFormatProperties
* @ see < a href = " http : / / www . w3 . org / TR / xslt # format - number " > format - number in XSLT Specification < / a >
* @ param name The qualified name of the decimal format property .
* @ retur... | if ( null == m_DecimalFormatDeclarations ) return null ; int n = getDecimalFormatCount ( ) ; for ( int i = ( n - 1 ) ; i >= 0 ; i ++ ) { DecimalFormatProperties dfp = getDecimalFormat ( i ) ; if ( dfp . getName ( ) . equals ( name ) ) return dfp ; } return null ; |
public class DriverFactory { /** * Creates new { @ link RetryLogic } .
* < b > This method is protected only for testing < / b > */
protected RetryLogic createRetryLogic ( RetrySettings settings , EventExecutorGroup eventExecutorGroup , Logging logging ) { } } | return new ExponentialBackoffRetryLogic ( settings , eventExecutorGroup , createClock ( ) , logging ) ; |
public class StreamingLocatorsInner { /** * List Paths .
* List Paths supported by this Streaming Locator .
* @ param resourceGroupName The name of the resource group within the Azure subscription .
* @ param accountName The Media Services account name .
* @ param streamingLocatorName The Streaming Locator name... | return listPathsWithServiceResponseAsync ( resourceGroupName , accountName , streamingLocatorName ) . map ( new Func1 < ServiceResponse < ListPathsResponseInner > , ListPathsResponseInner > ( ) { @ Override public ListPathsResponseInner call ( ServiceResponse < ListPathsResponseInner > response ) { return response . bo... |
public class Palette { /** * Generate heat color palette .
* @ param n the number of colors in the palette .
* @ param alpha the parameter in [ 0,1 ] for transparency . */
public static Color [ ] heat ( int n , float alpha ) { } } | int j = n / 4 ; int k = n - j ; float h = 1.0f / 6 ; Color [ ] c = rainbow ( k , 0 , h , alpha ) ; Color [ ] palette = new Color [ n ] ; System . arraycopy ( c , 0 , palette , 0 , k ) ; float s = 1 - 1.0f / ( 2 * j ) ; float end = 1.0f / ( 2 * j ) ; float w = ( end - s ) / ( j - 1 ) ; for ( int i = k ; i < n ; i ++ ) {... |
public class AsynchronousRequest { /** * For more info on files API go < a href = " https : / / wiki . guildwars2 . com / wiki / API : 2 / files " > here < / a > < br / >
* Give user the access to { @ link Callback # onResponse ( Call , Response ) } and { @ link Callback # onFailure ( Call , Throwable ) } methods for... | gw2API . getAllFileIDs ( ) . enqueue ( callback ) ; |
public class DigitalPackageUrl { /** * Get Resource Url for GetAvailableDigitalPackageFulfillmentActions
* @ param digitalPackageId This parameter supplies package ID to get fulfillment actions for the digital package .
* @ param orderId Unique identifier of the order .
* @ return String Resource Url */
public st... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/digitalpackages/{digitalPackageId}/actions" ) ; formatter . formatUrl ( "digitalPackageId" , digitalPackageId ) ; formatter . formatUrl ( "orderId" , orderId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENA... |
public class MetricsSystem { /** * Starts sinks from a given metrics configuration . This is made public for unit test .
* @ param config the metrics config */
public static synchronized void startSinksFromConfig ( MetricsConfig config ) { } } | if ( sSinks != null ) { LOG . info ( "Sinks have already been started." ) ; return ; } LOG . info ( "Starting sinks with config: {}." , config ) ; sSinks = new ArrayList < > ( ) ; Map < String , Properties > sinkConfigs = MetricsConfig . subProperties ( config . getProperties ( ) , SINK_REGEX ) ; for ( Map . Entry < St... |
public class AttributeCriterionPane { /** * Return the operator code from an operator label . The difference is this : an operator label is a string like
* " is equal to " , while it ' s code is " = " .
* @ param label
* The operator label .
* @ return operator code */
public static String getOperatorCodeFromLa... | if ( label != null ) { if ( I18nProvider . getSearch ( ) . operatorEquals ( ) . equals ( label ) ) { return "=" ; } else if ( I18nProvider . getSearch ( ) . operatorNotEquals ( ) . equals ( label ) ) { return "<>" ; } else if ( I18nProvider . getSearch ( ) . operatorST ( ) . equals ( label ) ) { return "<" ; } else if ... |
public class UserGroupSkinMappingTransformerConfigurationSource { /** * Inits and / or returns already initialized logger . < br >
* You have to use this method in order to use the logger , < br >
* you should not call the private variable directly . < br >
* This was done because Tomcat may instantiate all liste... | Logger l = this . logger ; if ( l == null ) { l = LoggerFactory . getLogger ( LOGGER_NAME ) ; this . logger = l ; } return l ; |
public class PropertiesManager { /** * Returns the value of a property for a given name including whitespace trailing the property
* value , but not including whitespace leading the property value . An UndeclaredPortalException
* is thrown if the property cannot be found . This method will never return null .
* @... | if ( PropertiesManager . props == null ) loadProps ( ) ; if ( props == null ) { boolean alreadyReported = registerMissingProperty ( name ) ; throw new MissingPropertyException ( name , alreadyReported ) ; } String val = props . getProperty ( name ) ; if ( val == null ) { boolean alreadyReported = registerMissingPropert... |
public class Noise { /** * Compute 2 - dimensional Perlin noise .
* @ param x the x coordinate
* @ param y the y coordinate
* @ return noise value at ( x , y ) */
public static float noise2 ( float x , float y ) { } } | int bx0 , bx1 , by0 , by1 , b00 , b10 , b01 , b11 ; float rx0 , rx1 , ry0 , ry1 , q [ ] , sx , sy , a , b , t , u , v ; int i , j ; if ( start ) { start = false ; init ( ) ; } t = x + N ; bx0 = ( ( int ) t ) & BM ; bx1 = ( bx0 + 1 ) & BM ; rx0 = t - ( int ) t ; rx1 = rx0 - 1.0f ; t = y + N ; by0 = ( ( int ) t ) & BM ; ... |
public class SAXReaderSettings { /** * Create a clone of the passed settings , depending on the parameter . If the
* parameter is < code > null < / code > a new empty { @ link SAXReaderSettings } object
* is created , otherwise a copy of the parameter is created .
* @ param aOther
* The parameter to be used . M... | if ( aOther == null ) { // Create plain object
return new SAXReaderSettings ( ) ; } // Create a clone
return new SAXReaderSettings ( aOther ) ; |
public class ArtifactHandlerUtils { /** * Interfaces WebApp & & DeploymentSlot define their own warDeploy API separately .
* Ideally , it should be defined in their base interface WebAppBase .
* { @ link com . microsoft . azure . management . appservice . WebAppBase }
* Comparing to abstracting an adapter for Web... | if ( target instanceof WebAppDeployTarget ) { return new Runnable ( ) { @ Override public void run ( ) { ( ( WebAppDeployTarget ) target ) . warDeploy ( war , path ) ; } } ; } if ( target instanceof DeploymentSlotDeployTarget ) { return new Runnable ( ) { @ Override public void run ( ) { ( ( DeploymentSlotDeployTarget ... |
public class ListFileSharesResult { /** * An array of information about the file gateway ' s file shares .
* @ param fileShareInfoList
* An array of information about the file gateway ' s file shares . */
public void setFileShareInfoList ( java . util . Collection < FileShareInfo > fileShareInfoList ) { } } | if ( fileShareInfoList == null ) { this . fileShareInfoList = null ; return ; } this . fileShareInfoList = new com . amazonaws . internal . SdkInternalList < FileShareInfo > ( fileShareInfoList ) ; |
public class PersonRecognition { /** * 维特比算法求解最优标签
* @ param roleTagList
* @ return */
public static List < NR > viterbiCompute ( List < EnumItem < NR > > roleTagList ) { } } | return Viterbi . computeEnum ( roleTagList , PersonDictionary . transformMatrixDictionary ) ; |
public class AWSSimpleSystemsManagementClient { /** * Deletes a patch baseline .
* @ param deletePatchBaselineRequest
* @ return Result of the DeletePatchBaseline operation returned by the service .
* @ throws ResourceInUseException
* Error returned if an attempt is made to delete a patch baseline that is regis... | request = beforeClientExecution ( request ) ; return executeDeletePatchBaseline ( request ) ; |
public class ConvertNV21 { /** * Converts an NV21 image into a { @ link Planar } YUV image .
* @ param data Input : NV21 image data
* @ param width Input : NV21 image width
* @ param height Input : NV21 image height
* @ param output Output : Optional storage for output image . Can be null .
* @ param outputTy... | if ( outputType == GrayU8 . class ) { return ( Planar ) nv21ToPlanarYuv_U8 ( data , width , height , ( Planar ) output ) ; } else if ( outputType == GrayF32 . class ) { return ( Planar ) nv21TPlanarYuv_F32 ( data , width , height , ( Planar ) output ) ; } else { throw new IllegalArgumentException ( "Unsupported BoofCV ... |
public class FilterPanel { /** * Initialize JTable that contains namespaces */
private void initTable ( ) { } } | namespaces = new JTable ( new FilterTableModel ( ) ) ; namespaces . removeColumn ( namespaces . getColumn ( "#" ) ) ; namespaces . setFillsViewportHeight ( true ) ; namespaces . setPreferredScrollableViewportSize ( new Dimension ( 500 , 70 ) ) ; // Create the scroll pane and add the table to it .
JScrollPane scrollPane... |
public class ServerView { /** * / * @ inheritDoc */
public void serverChanged ( HadoopServer location , int type ) { } } | Display . getDefault ( ) . syncExec ( new Runnable ( ) { public void run ( ) { ServerView . this . viewer . refresh ( ) ; } } ) ; |
public class SearchBuilders { /** * Returns a new { @ link PhraseConditionBuilder } for the specified field and values .
* @ param field The name of the field to be matched .
* @ param values The values of the field to be matched .
* @ return A new { @ link PhraseConditionBuilder } for the specified field and val... | return new PhraseConditionBuilder ( field , values ) ; |
public class DdthCipherInputStream { /** * Load data to internal buffer , return the number of bytes read , or { @ code - 1 } if no more data
* to read .
* @ return
* @ throws IOException */
private int getMoreData ( ) throws IOException { } } | if ( noMoreInput ) { return - 1 ; } else { byte [ ] buffer = new byte [ 1024 ] ; int bytesRead = input . read ( buffer ) ; if ( bytesRead == - 1 ) { noMoreInput = true ; try { obuffer = cipher . doFinal ( ) ; } catch ( IllegalBlockSizeException | BadPaddingException e ) { throw new CipherException ( e ) ; } if ( obuffe... |
public class HTMLBoxFactory { /** * Checks whether the given tag ( DOM element ) processing is supported by this factory .
* @ param e The DOM element to be checked .
* @ return < code > true < / code > when the element may be processed by this factory . */
public boolean isTagSupported ( Element e ) { } } | if ( e . getNodeName ( ) != null && supported . contains ( e . getNodeName ( ) . toLowerCase ( ) ) ) // completely supported tags
return true ; else // special cases
{ // empty anchor elements must be preserved
if ( e . getNodeName ( ) . toLowerCase ( ) . equals ( "a" ) && e . hasAttribute ( "name" ) && ( e . getTextCo... |
public class Host { /** * The IDs and instance type that are currently running on the Dedicated Host .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setInstances ( java . util . Collection ) } or { @ link # withInstances ( java . util . Collection ) } if yo... | if ( this . instances == null ) { setInstances ( new com . amazonaws . internal . SdkInternalList < HostInstance > ( instances . length ) ) ; } for ( HostInstance ele : instances ) { this . instances . add ( ele ) ; } return this ; |
public class WebUtil { /** * redirect to url
* @ param response HttpServletResponse object
* @ param url recirect url
* @ param movePermanently true 301 for permanent redirect , false 302 ( temporary redirect )
* @ throws java . io . IOException */
public static void redirect ( HttpServletResponse response , St... | if ( ! movePermanently ) { response . sendRedirect ( url ) ; } else { response . setStatus ( HttpServletResponse . SC_MOVED_PERMANENTLY ) ; response . setHeader ( "Location" , url ) ; } |
public class WriterBasedGenerator { /** * Method called to output textual context which has been copied
* to the output buffer prior to call . If any escaping is needed ,
* it will also be handled by the method .
* Note : when called , textual content to write is within output
* buffer , right after buffered co... | final int [ ] escCodes = _outputEscapes ; final int escLen = escCodes . length ; int ptr = 0 ; int start = ptr ; output_loop : while ( ptr < end ) { // Fast loop for chars not needing escaping
char c ; while ( true ) { c = _outputBuffer [ ptr ] ; if ( c < escLen && escCodes [ c ] != 0 ) { break ; } if ( ++ ptr >= end )... |
public class DocPath { /** * Return the path for a class .
* For example , if the class is java . lang . Object ,
* the path is java / lang / Object . html . */
public static DocPath forClass ( ClassDoc cd ) { } } | return ( cd == null ) ? empty : forPackage ( cd . containingPackage ( ) ) . resolve ( forName ( cd ) ) ; |
public class InodeTree { /** * Deletes a single inode from the inode tree by removing it from the parent inode .
* @ param rpcContext the rpc context
* @ param inodePath the { @ link LockedInodePath } to delete
* @ param opTimeMs the operation time
* @ throws FileDoesNotExistException if the Inode cannot be ret... | Preconditions . checkState ( inodePath . getLockPattern ( ) == LockPattern . WRITE_EDGE ) ; Inode inode = inodePath . getInode ( ) ; mState . applyAndJournal ( rpcContext , DeleteFileEntry . newBuilder ( ) . setId ( inode . getId ( ) ) . setRecursive ( false ) . setOpTimeMs ( opTimeMs ) . build ( ) ) ; if ( inode . isF... |
public class AbstractFilter { /** * Returns the stream that provides output from the filter . */
protected OutputStream getFilterOutput ( ) { } } | OutputStream target = getTarget ( ) ; return target == null ? System . out : target ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.