signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Utils { /** * Unregister the mbean with the given name , if there is one registered
* @ param name The mbean name to unregister
* @ see # registerMBean ( Object , String ) */
private static void unregisterMBean ( String name ) { } } | MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; try { synchronized ( mbs ) { ObjectName objName = new ObjectName ( name ) ; if ( mbs . isRegistered ( objName ) ) { mbs . unregisterMBean ( objName ) ; } } } catch ( Exception e ) { e . printStackTrace ( ) ; } |
public class PageFlowManagedObject { /** * Initialize the given field with an instance . Mainly useful for the error handling . */
protected void initializeField ( Field field , Object instance ) { } } | if ( instance != null ) { if ( _log . isTraceEnabled ( ) ) { _log . trace ( "Initializing field " + field . getName ( ) + " in " + getDisplayName ( ) + " with " + instance ) ; } try { field . set ( this , instance ) ; } catch ( IllegalArgumentException e ) { _log . error ( "Could not set field " + field . getName ( ) +... |
public class ns_doc_image { /** * < pre >
* Use this operation to delete NetScaler Documentation file .
* < / pre > */
public static ns_doc_image delete ( nitro_service client , ns_doc_image resource ) throws Exception { } } | resource . validate ( "delete" ) ; return ( ( ns_doc_image [ ] ) resource . delete_resource ( client ) ) [ 0 ] ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcBuildingElementProxyType ( ) { } } | if ( ifcBuildingElementProxyTypeEClass == null ) { ifcBuildingElementProxyTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 62 ) ; } return ifcBuildingElementProxyTypeEClass ; |
public class HprofFieldObjectValue { /** * ~ Methods - - - - - */
public long getInstanceId ( ) { } } | HprofByteBuffer dumpBuffer = classDump . getHprofBuffer ( ) ; return dumpBuffer . getID ( fileOffset + classDump . classDumpSegment . fieldValueOffset ) ; |
public class WebSiteManagementClientImpl { /** * Updates source control token .
* Updates source control token .
* @ param sourceControlType Type of source control
* @ param requestMessage Source control token information
* @ param serviceCallback the async ServiceCallback to handle successful and failed respon... | return ServiceFuture . fromResponse ( updateSourceControlWithServiceResponseAsync ( sourceControlType , requestMessage ) , serviceCallback ) ; |
public class CmsContainerConfiguration { /** * Generates an empty configuration object . < p >
* @ return an empty configuration object */
public static CmsContainerConfiguration emptyConfiguration ( ) { } } | return new CmsContainerConfiguration ( null , new HashMap < String , Boolean > ( ) , new HashMap < String , CmsContainerElementBean > ( ) ) ; |
public class FeatureWebSecurityCollaboratorImpl { /** * { @ inheritDoc } */
@ Override public String getFeatureAuthzRoleHeaderValue ( ) { } } | String name = null ; WebAppConfig wac = getWebAppConfig ( ) ; if ( wac != null && wac instanceof WebAppConfiguration ) { Dictionary < String , String > headers = ( ( WebAppConfiguration ) wac ) . getBundleHeaders ( ) ; if ( headers != null ) name = headers . get ( "IBM-Authorization-Roles" ) ; } return name ; |
public class BICO { /** * Inserts a new point into the ClusteringFeature tree .
* @ param x
* the point */
protected void bicoUpdate ( double [ ] x ) { } } | assert ( ! this . bufferPhase && this . numDimensions == x . length ) ; // Starts with the global root node as the current root node
ClusteringTreeNode r = this . root ; int i = 1 ; while ( true ) { ClusteringTreeNode y = r . nearestChild ( x ) ; // Checks if the point can not be added to the current level
if ( r . has... |
public class ObfuscatedData { /** * Parse string containing obfuscated data .
* @ param obfuscatedString obfuscated string to parse
* @ return parsed data */
public static ObfuscatedData fromString ( String obfuscatedString ) { } } | String [ ] parts = obfuscatedString . split ( "\\$" ) ; if ( parts . length != 5 ) { throw new IllegalArgumentException ( "Invalid obfuscated data" ) ; } if ( ! parts [ 1 ] . equals ( SIGNATURE ) ) { throw new IllegalArgumentException ( "Invalid obfuscated data" ) ; } return new ObfuscatedData ( Integer . parseInt ( pa... |
public class Axis { /** * Set the slices of axis . */
private void setSlice ( ) { } } | // slicing initialisation
if ( labels == null ) { double min = base . getPrecisionUnit ( ) [ index ] * Math . ceil ( base . getLowerBounds ( ) [ index ] / base . getPrecisionUnit ( ) [ index ] ) ; double max = base . getPrecisionUnit ( ) [ index ] * Math . floor ( base . getUpperBounds ( ) [ index ] / base . getPrecisi... |
public class SequencesUtils { /** * Returns a set of possible alphabets for a given string .
* < p > Looks for alphabets registered in { @ link com . milaboratory . core . sequence . Alphabets } . < / p >
* @ param string target string ( sequence )
* @ return set of possible alphabets for a given string */
public... | HashSet < Alphabet < ? > > alphabets = new HashSet < > ( ) ; for ( Alphabet alphabet : Alphabets . getAll ( ) ) { if ( belongsToAlphabet ( alphabet , string ) ) alphabets . add ( alphabet ) ; } return alphabets ; |
public class IntStreamEx { /** * Returns a new { @ code IntStreamEx } which is a concatenation of this stream
* and the stream containing supplied values
* This is a < a href = " package - summary . html # StreamOps " > quasi - intermediate
* operation < / a > .
* @ param values the values to append to the stre... | if ( values . length == 0 ) return this ; return new IntStreamEx ( IntStream . concat ( stream ( ) , IntStream . of ( values ) ) , context ) ; |
public class ClassUtils { /** * < p > newInstance . < / p >
* @ param clazz a { @ link java . lang . Class } object .
* @ param args a { @ link java . lang . Object } object .
* @ param < T > a T object .
* @ return a T object . */
public static < T > T newInstance ( Class clazz , Object ... args ) { } } | if ( clazz == null ) return null ; Class [ ] argsClass = getArgsClasses ( args ) ; try { Constructor < T > constructor = clazz . < T > getConstructor ( argsClass ) ; return constructor . newInstance ( args ) ; } catch ( InstantiationException | InvocationTargetException | NoSuchMethodException | IllegalAccessException ... |
public class Batch { /** * Tries to add ( write ) event to the batch , returns true , if successful . If fails , no subsequent attempts to add event
* to this batch will succeed , the next batch should be taken . */
boolean tryAddEvent ( byte [ ] event ) { } } | while ( true ) { long state = getState ( ) ; if ( isSealed ( state ) ) { return false ; } int bufferWatermark = bufferWatermark ( state ) ; if ( bufferWatermark == 0 ) { if ( tryAddFirstEvent ( event ) ) { return true ; } } else if ( newBufferWatermark ( bufferWatermark , event ) <= emitter . maxBufferWatermark ) { if ... |
public class DiskClient { /** * Sets the access control policy on the specified resource . Replaces any existing policy .
* < p > Sample code :
* < pre > < code >
* try ( DiskClient diskClient = DiskClient . create ( ) ) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName . of ( " [ PROJECT ]... | SetIamPolicyDiskHttpRequest request = SetIamPolicyDiskHttpRequest . newBuilder ( ) . setResource ( resource == null ? null : resource . toString ( ) ) . setZoneSetPolicyRequestResource ( zoneSetPolicyRequestResource ) . build ( ) ; return setIamPolicyDisk ( request ) ; |
public class HarrisFast { /** * 高斯平滑
* @ param x
* @ param y
* @ param sigma
* @ return */
private double gaussian ( double x , double y , double sigma ) { } } | double sigma2 = sigma * sigma ; double t = ( x * x + y * y ) / ( 2 * sigma2 ) ; double u = 1.0 / ( 2 * Math . PI * sigma2 ) ; double e = u * Math . exp ( - t ) ; return e ; |
public class PoolingDataSourceBean { /** * Set the { @ link XADataSource } directly , instead of calling
* { @ link # setClassName ( String ) } .
* @ param dataSource the data source to use */
public void setDataSource ( XADataSource dataSource ) { } } | this . dataSource = dataSource ; setClassName ( DirectXADataSource . class . getName ( ) ) ; setDriverProperties ( new Properties ( ) ) ; |
public class JSLProperties { /** * Gets the value of the propertyList property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why there is not a < CODE > set < / CODE... | if ( propertyList == null ) { propertyList = new ArrayList < Property > ( ) ; } return this . propertyList ; |
public class ImageUtils { /** * Returns a * copy * of a subimage of image . This avoids the performance problems associated with BufferedImage . getSubimage .
* @ param image the image
* @ param x the x position
* @ param y the y position
* @ param w the width
* @ param h the height
* @ return the subimage ... | BufferedImage newImage = new BufferedImage ( w , h , BufferedImage . TYPE_INT_ARGB ) ; Graphics2D g = newImage . createGraphics ( ) ; g . drawRenderedImage ( image , AffineTransform . getTranslateInstance ( - x , - y ) ) ; g . dispose ( ) ; return newImage ; |
public class NShortSegment { /** * 二元语言模型分词
* @ param sSentence 待分词的句子
* @ param nKind 需要几个结果
* @ param wordNetOptimum
* @ param wordNetAll
* @ return 一系列粗分结果 */
public List < List < Vertex > > biSegment ( char [ ] sSentence , int nKind , WordNet wordNetOptimum , WordNet wordNetAll ) { } } | List < List < Vertex > > coarseResult = new LinkedList < List < Vertex > > ( ) ; // / / / / / 生成词网 / / / / /
generateWordNet ( wordNetAll ) ; // logger . trace ( " 词网大小 : " + wordNetAll . size ( ) ) ;
// logger . trace ( " 打印词网 : \ n " + wordNetAll ) ;
// / / / / / 生成词图 / / / / /
Graph graph = generateBiGraph ( wordNet... |
public class BaseXMLBuilder { /** * Return the result of evaluating an XPath query on the builder ' s DOM
* using the given namespace . Returns null if the query finds nothing ,
* or finds a node that does not match the type specified by returnType .
* @ param xpath
* an XPath expression
* @ param type
* th... | XPathFactory xpathFactory = XPathFactory . newInstance ( ) ; XPath xPath = xpathFactory . newXPath ( ) ; if ( nsContext != null ) { xPath . setNamespaceContext ( nsContext ) ; } XPathExpression xpathExp = xPath . compile ( xpath ) ; try { return xpathExp . evaluate ( this . xmlNode , type ) ; } catch ( IllegalArgumentE... |
public class CommerceAddressRestrictionLocalServiceBaseImpl { /** * Returns the number of rows matching the dynamic query .
* @ param dynamicQuery the dynamic query
* @ param projection the projection to apply to the query
* @ return the number of rows matching the dynamic query */
@ Override public long dynamicQ... | return commerceAddressRestrictionPersistence . countWithDynamicQuery ( dynamicQuery , projection ) ; |
public class DatastoreHelper { /** * Makes an ancestor filter . */
public static Filter . Builder makeAncestorFilter ( Key ancestor ) { } } | return makeFilter ( DatastoreHelper . KEY_PROPERTY_NAME , PropertyFilter . Operator . HAS_ANCESTOR , makeValue ( ancestor ) ) ; |
public class ContentNegotiationFilter { /** * private String getAcceptedFormats ( HttpServletRequest pRequest ) {
* String accept = pRequest . getHeader ( HTTP _ HEADER _ ACCEPT ) ;
* Check if User - Agent is in list of known agents
* if ( mKnownAgentPatterns ! = null ) {
* String agent = pRequest . getHeader (... | if ( pRequest instanceof HttpServletRequest ) { HttpServletRequest request = ( HttpServletRequest ) pRequest ; Map < String , Float > formatQuality = getFormatQualityMapping ( ) ; // TODO : Consider adding original format , and use as fallback in worst case ?
// TODO : Original format should have some boost , to avoid ... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getFNDFtDsFlags ( ) { } } | if ( fndFtDsFlagsEEnum == null ) { fndFtDsFlagsEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 36 ) ; } return fndFtDsFlagsEEnum ; |
public class Components { /** * Returns the name of the object ' s class together with an id ( see
* { @ link # objectId ( Object ) } ) . May be used to implement { @ code toString ( ) }
* with identifiable objects . If the log level is " finer " , the full
* class name will be used for the returned value , else ... | if ( object == null ) { return "<null>" ; } StringBuilder builder = new StringBuilder ( ) ; builder . append ( Components . className ( object . getClass ( ) ) ) . append ( '#' ) . append ( objectId ( object ) ) ; return builder . toString ( ) ; |
public class DistributedExceptionInfo { /** * Retrieve the text message for this exception . The default message ( which may be null )
* will be returned
* in any of the following situations :
* < ul >
* < li > No resource bundle name exists
* < li > No resource key exists
* < li > The resource bundle could... | if ( resourceBundleName != null && resourceKey != null ) { String retrievedMessage = null ; String internalMessage = null ; String defaultEnglishMessage = null ; ResourceBundle bundle = null ; // retrieve the resource bundle
try { bundle = ResourceBundle . getBundle ( resourceBundleName ) ; } catch ( MissingResourceExc... |
public class LogicFile { /** * Add this field in the Record ' s field sequence . */
public BaseField setupField ( int iFieldSeq ) { } } | BaseField field = null ; // if ( iFieldSeq = = 0)
// field = new CounterField ( this , ID , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ;
// field . setHidden ( true ) ;
// if ( iFieldSeq = = 1)
// field = new RecordChangedField ( this , LAST _ CHANGED , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ;
/... |
public class SQLExpressions { /** * Get a group _ concat ( expr , separator ) expression
* @ param expr expression to be aggregated
* @ param separator separator string
* @ return group _ concat ( expr , separator ) */
public static StringExpression groupConcat ( Expression < String > expr , String separator ) { ... | return Expressions . stringOperation ( SQLOps . GROUP_CONCAT2 , expr , Expressions . constant ( separator ) ) ; |
public class TextRetinaApiImpl { /** * { @ inheritDoc } */
@ Override public List < Text > getSlices ( String text , Boolean includeFingerprint ) throws ApiException { } } | return getSlices ( text , null , includeFingerprint ) ; |
public class ParameterValueImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case BpsimPackage . PARAMETER_VALUE__INSTANCE : return getInstance ( ) ; case BpsimPackage . PARAMETER_VALUE__RESULT : return getResult ( ) ; case BpsimPackage . PARAMETER_VALUE__VALID_FOR : return getValidFor ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class AbstractJaxRsWebEndpoint { /** * Calculate the base URL based on the HttpServletRequest instance
* @ param request
* @ return */
protected String getBaseURL ( HttpServletRequest request ) { } } | // if ( forcedBaseAddress ! = null ) {
// return forcedBaseAddress ;
String reqPrefix = request . getRequestURL ( ) . toString ( ) ; String pathInfo = request . getPathInfo ( ) == null ? "" : request . getPathInfo ( ) ; // fix for CXF - 898
if ( ! "/" . equals ( pathInfo ) || reqPrefix . endsWith ( "/" ) ) { StringBuil... |
public class MultiMap { /** * Remove the given number of values for a given key . May return less values then requested .
* @ param key the key to remove from .
* @ param num the number of values to remove .
* @ return a list of the removed values .
* @ since 4.4.0 */
public List < V > remove ( K key , int num ... | List < V > values = map . get ( key ) ; if ( values == null ) { return Collections . emptyList ( ) ; } final int resultSize = values . size ( ) > num ? num : values . size ( ) ; final List < V > result = new ArrayList < > ( resultSize ) ; for ( int i = 0 ; i < resultSize ; i ++ ) { result . add ( values . get ( 0 ) ) ;... |
public class XssMatchTupleMarshaller { /** * Marshall the given parameter object . */
public void marshall ( XssMatchTuple xssMatchTuple , ProtocolMarshaller protocolMarshaller ) { } } | if ( xssMatchTuple == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( xssMatchTuple . getFieldToMatch ( ) , FIELDTOMATCH_BINDING ) ; protocolMarshaller . marshall ( xssMatchTuple . getTextTransformation ( ) , TEXTTRANSFORMATION_BINDING ) ; }... |
public class DataLoader { /** * Creates new DataLoader with the specified batch loader function and with the provided options
* where the batch loader function returns a list of
* { @ link org . dataloader . Try } objects .
* @ param batchLoadFunction the batch load function to use that uses { @ link org . datalo... | return new DataLoader < > ( batchLoadFunction , options ) ; |
public class AntClassLoader { /** * Cleans up any resources held by this classloader . Any open archive
* files are closed . */
public synchronized void cleanup ( ) { } } | for ( Enumeration e = jarFiles . elements ( ) ; e . hasMoreElements ( ) ; ) { JarFile jarFile = ( JarFile ) e . nextElement ( ) ; try { jarFile . close ( ) ; } catch ( IOException ioe ) { // ignore
} } jarFiles = new Hashtable ( ) ; if ( project != null ) { project . removeBuildListener ( this ) ; } project = null ; |
public class JmxEndpointConfiguration { /** * Gets the value of the serverUrl property .
* @ return the serverUrl */
public String getServerUrl ( ) { } } | if ( StringUtils . hasText ( this . serverUrl ) ) { return serverUrl ; } else { return "service:jmx:" + protocol + ":///jndi/" + protocol + "://" + host + ":" + port + ( binding != null ? "/" + binding : "" ) ; } |
public class Scanner { /** * text token */
protected Token nextText ( ) throws ScanException { } } | builder . setLength ( 0 ) ; int i = position ; int l = input . length ( ) ; boolean escaped = false ; while ( i < l ) { char c = input . charAt ( i ) ; switch ( c ) { case '\\' : if ( escaped ) { builder . append ( '\\' ) ; } else { escaped = true ; } break ; case '#' : case '$' : if ( i + 1 < l && input . charAt ( i +... |
public class CPOptionValueLocalServiceWrapper { /** * Adds the cp option value to the database . Also notifies the appropriate model listeners .
* @ param cpOptionValue the cp option value
* @ return the cp option value that was added */
@ Override public com . liferay . commerce . product . model . CPOptionValue a... | return _cpOptionValueLocalService . addCPOptionValue ( cpOptionValue ) ; |
public class ToyData { /** * Generate n samples from each class . */
public double [ ] [ ] sample ( int n ) { } } | double [ ] [ ] samples = new double [ 2 * n ] [ ] ; MultivariateGaussianDistribution [ ] gauss = new MultivariateGaussianDistribution [ k ] ; for ( int i = 0 ; i < k ; i ++ ) { gauss [ i ] = new MultivariateGaussianDistribution ( m [ i ] , v ) ; } for ( int i = 0 ; i < n ; i ++ ) { samples [ i ] = gauss [ Math . random... |
public class ProcessResponse { /** * syntactic sugar */
public ProcessResponseNotesComponent addNotes ( ) { } } | ProcessResponseNotesComponent t = new ProcessResponseNotesComponent ( ) ; if ( this . notes == null ) this . notes = new ArrayList < ProcessResponseNotesComponent > ( ) ; this . notes . add ( t ) ; return t ; |
public class CompositeFastList { /** * Override in subclasses where it can be optimized . */
@ Override protected void defaultSort ( Comparator < ? super E > comparator ) { } } | FastList < E > list = comparator == null ? ( FastList < E > ) this . toSortedList ( ) : ( FastList < E > ) this . toSortedList ( comparator ) ; this . lists . clear ( ) ; this . lists . add ( list ) ; |
public class LegacySpy { /** * Executes the { @ link Sniffer . Executable # execute ( ) } method on provided argument and verifies the expectations
* @ throws SniffyAssertionError if wrong number of queries was executed
* @ since 2.0 */
@ Deprecated public C execute ( Sniffer . Executable executable ) throws Sniffy... | return execute ( ( io . sniffy . Executable ) executable ) ; |
public class JsonParseUtil { /** * Parses the current token as a single - precision floating point value .
* @ param parser
* @ return { @ link Float }
* @ throws IOException
* @ throws JsonFormatException
* @ author vvakame */
public static Float parserFloat ( JsonPullParser parser ) throws IOException , Jso... | State eventType = parser . getEventType ( ) ; if ( eventType == State . VALUE_NULL ) { return null ; } else if ( eventType == State . VALUE_DOUBLE ) { return ( float ) parser . getValueDouble ( ) ; } else { throw new IllegalStateException ( "unexpected state. expected=VALUE_DOUBLE, but get=" + eventType . toString ( ) ... |
public class AnnotationHandler { /** * Helper method for { @ link # parse ( StaplerRequest , Annotation , Class , String ) } to convert to the right type
* from String . */
protected final Object convert ( Class targetType , String value ) { } } | Converter converter = Stapler . lookupConverter ( targetType ) ; if ( converter == null ) throw new IllegalArgumentException ( "Unable to convert to " + targetType ) ; return converter . convert ( targetType , value ) ; |
public class AstBinOp { /** * Ops do not make sense on categoricals , except EQ / NE ; flip such ops to NAs */
private ValFrame cleanCategorical ( Frame oldfr , Frame newfr ) { } } | final boolean categoricalOK = categoricalOK ( ) ; final Vec oldvecs [ ] = oldfr . vecs ( ) ; final Vec newvecs [ ] = newfr . vecs ( ) ; Futures fs = new Futures ( ) ; for ( int i = 0 ; i < oldvecs . length ; i ++ ) if ( ( oldvecs [ i ] . isCategorical ( ) && ! categoricalOK ) ) { // categorical are OK ( op is EQ / NE )... |
public class Scanner { /** * Tries to read more input . May block . */
private void readInput ( ) { } } | if ( buf . limit ( ) == buf . capacity ( ) ) makeSpace ( ) ; // Prepare to receive data
int p = buf . position ( ) ; buf . position ( buf . limit ( ) ) ; buf . limit ( buf . capacity ( ) ) ; int n = 0 ; try { n = source . read ( buf ) ; } catch ( IOException ioe ) { lastException = ioe ; n = - 1 ; } if ( n == - 1 ) { s... |
public class HiveRegProps { /** * Create a { @ link State } object that contains Hive table properties . These properties are obtained from
* { @ link # HIVE _ TABLE _ PARTITION _ PROPS } , which is a list of comma - separated properties . Each property is in the form
* of ' [ key ] = [ value ] ' . */
private State... | State state = new State ( ) ; if ( ! contains ( propKey ) ) { return state ; } for ( String propValue : getPropAsList ( propKey ) ) { List < String > tokens = SPLITTER . splitToList ( propValue ) ; Preconditions . checkState ( tokens . size ( ) == 2 , propValue + " is not a valid Hive table/partition property" ) ; stat... |
public class channel { /** * Use this API to fetch filtered set of channel resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static channel [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | channel obj = new channel ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; channel [ ] response = ( channel [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class DoubleStream { /** * Returns { @ code DoubleStream } with elements that does not satisfy the given predicate .
* < p > This is an intermediate operation .
* @ param predicate the predicate used to filter elements
* @ return the new stream */
@ NotNull public DoubleStream filterNot ( @ NotNull final D... | return filter ( DoublePredicate . Util . negate ( predicate ) ) ; |
public class DocumentLine { /** * getter for block - gets
* @ generated
* @ return value of the feature */
public int getBlock ( ) { } } | if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_block == null ) jcasType . jcas . throwFeatMissing ( "block" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; return jcasType . ll_cas . ll_getIntValue ( addr , ( ( DocumentLine_Type ) jcasType ) . casFeatCode_block ) ; |
public class ConversionWrapper { /** * Extracts the direction , creates the reverse if necessary . */
public void init ( ) { } } | if ( conv . getConversionDirection ( ) == ConversionDirectionType . REVERSIBLE && this . reverse == null ) { reverse = new ConversionWrapper ( conv , ( GraphL3 ) graph ) ; this . direction = LEFT_TO_RIGHT ; reverse . direction = RIGHT_TO_LEFT ; reverse . reverse = this ; } else if ( conv . getConversionDirection ( ) ==... |
public class CmsVfsSitemapService { /** * Creates a new resource info to a given model page resource . < p >
* @ param cms the current CMS context
* @ param modelResource the model page resource
* @ param locale the locale used for retrieving descriptions / titles
* @ return the new resource info
* @ throws C... | // if model page got overwritten by another resource , reread from site path
if ( ! cms . existsResource ( modelResource . getStructureId ( ) , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ) { modelResource = cms . readResource ( cms . getSitePath ( modelResource ) , CmsResourceFilter . ONLY_VISIBLE_NO_DELETED ) ; } i... |
public class StubPersonAttributeDao { /** * / * ( non - Javadoc )
* @ see org . jasig . services . persondir . IPersonAttributeDao # getPerson ( java . lang . String ) */
@ Override public IPersonAttributes getPerson ( final String uid , final IPersonAttributeDaoFilter filter ) { } } | if ( ! this . isEnabled ( ) ) { return null ; } if ( uid == null ) { throw new IllegalArgumentException ( "Illegal to invoke getPerson(String) with a null argument." ) ; } return this . backingPerson ; |
public class MPDUtility { /** * This method maps the currency symbol position from the
* representation used in the MPP file to the representation
* used by MPX .
* @ param value MPP symbol position
* @ return MPX symbol position */
public static CurrencySymbolPosition getSymbolPosition ( int value ) { } } | CurrencySymbolPosition result ; switch ( value ) { case 1 : { result = CurrencySymbolPosition . AFTER ; break ; } case 2 : { result = CurrencySymbolPosition . BEFORE_WITH_SPACE ; break ; } case 3 : { result = CurrencySymbolPosition . AFTER_WITH_SPACE ; break ; } case 0 : default : { result = CurrencySymbolPosition . BE... |
public class CollaboratorUtils { /** * Returns a java . security . Principal object containing the name of the current authenticated user .
* If the user has not been authenticated , the method returns null .
* Look at the Subject on the thread only .
* We will extract , security name from WSCredential and the se... | Subject subject = subjectManager . getCallerSubject ( ) ; if ( subject == null ) { return null ; } SubjectHelper subjectHelper = new SubjectHelper ( ) ; if ( subjectHelper . isUnauthenticated ( subject ) && web ) { return null ; } if ( isJaspiEnabled ) { Principal principal = getPrincipalFromWSCredential ( subjectHelpe... |
public class GradientDef { /** * < pre >
* The gradient function ' s name .
* < / pre >
* < code > optional string gradient _ func = 2 ; < / code > */
public java . lang . String getGradientFunc ( ) { } } | java . lang . Object ref = gradientFunc_ ; if ( ref instanceof java . lang . String ) { return ( java . lang . String ) ref ; } else { com . google . protobuf . ByteString bs = ( com . google . protobuf . ByteString ) ref ; java . lang . String s = bs . toStringUtf8 ( ) ; gradientFunc_ = s ; return s ; } |
public class DatabaseVulnerabilityAssessmentScansInner { /** * Lists the vulnerability assessment scans of a database .
* ServiceResponse < PageImpl < VulnerabilityAssessmentScanRecordInner > > * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the A... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( serverName == null ) { throw new IllegalArgumentException ( "Parameter serverName is required and cannot be null." ) ; } if ( databaseName == null ) { throw new IllegalArgumen... |
public class GenJsCodeVisitor { /** * Example :
* < pre >
* { switch $ boo }
* { case 0}
* { case 1 , 2}
* { default }
* { / switch }
* < / pre >
* might generate
* < pre >
* switch ( opt _ data . boo ) {
* case 0:
* break ;
* case 1:
* case 2:
* break ;
* default :
* < / pre > */
@ Ov... | Expression switchOn = coerceTypeForSwitchComparison ( node . getExpr ( ) ) ; SwitchBuilder switchBuilder = switchValue ( switchOn ) ; for ( SoyNode child : node . getChildren ( ) ) { if ( child instanceof SwitchCaseNode ) { SwitchCaseNode scn = ( SwitchCaseNode ) child ; ImmutableList . Builder < Expression > caseChunk... |
public class HiveSessionImpl { /** * extract the real user from the given token string */
private String getUserFromToken ( HiveAuthFactory authFactory , String tokenStr ) throws HiveSQLException { } } | return authFactory . getUserFromToken ( tokenStr ) ; |
public class Utils { /** * returns values for a key in the following order :
* 1 . First checks environment variables
* 2 . Falls back to system properties
* @ param name
* @ param defaultValue
* @ return */
public static String getEnv ( String name , String defaultValue ) { } } | Map < String , String > env = System . getenv ( ) ; // try to get value from environment variables
if ( env . get ( name ) != null ) { return env . get ( name ) ; } // fall back to system properties
return System . getProperty ( name , defaultValue ) ; |
public class UserOption { /** * Returns true if this option accepts the specified value
* @ param value the value to test
* @ return true if the option accepts the value , false otherwise */
public boolean acceptsValue ( String value ) { } } | if ( value == null ) { return false ; } else if ( hasValues ( ) ) { return getValuesList ( ) . contains ( value ) ; } else { return true ; } |
public class NodeSupport { /** * Gets the value of " framework . server . name " property
* @ return Returns value of framework . server . name property */
@ Override public String getFrameworkNodeName ( ) { } } | String name = getLookup ( ) . getProperty ( "framework.server.name" ) ; if ( null != name ) { return name . trim ( ) ; } else { return name ; } |
public class SARLLabelProvider { /** * Replies the image for the given element .
* < p > This function is a Xtext dispatch function for { @ link # imageDescriptor ( Object ) } .
* @ param element the element .
* @ return the image descriptor .
* @ see # imageDescriptor ( Object ) */
protected ImageDescriptor im... | if ( element . isStatic ( ) ) { return this . images . forStaticConstructor ( ) ; } return this . images . forConstructor ( element . getVisibility ( ) , this . adornments . get ( this . jvmModelAssociations . getInferredConstructor ( element ) ) ) ; |
public class Element { /** * Check that the element ' s children are limited to allowed element types . */
void assertContentModel ( Collection < Class < ? extends Element > > permittedChildren ) throws InvalidInputException { } } | for ( Element child : this . getChildren ( ) ) { if ( ! permittedChildren . contains ( child . getClass ( ) ) ) { // Permit whitespace
if ( child instanceof TextNode && StringUtils . isBlank ( ( ( TextNode ) child ) . getText ( ) ) ) { continue ; } throw new InvalidInputException ( "Element \"" + child . getMessageMLTa... |
public class TarUtils { /** * @ param fileList
* @ return
* @ throws IOException
* @ throws CompressorException */
public static String tarFiles ( String dir , String fileNamePrefix , List < File > fileList ) throws IOException , CompressorException { } } | OsUtil . makeDirs ( dir ) ; // 时间
String curTime = DateUtils . format ( new Date ( ) , DataFormatConstants . COMMON_TIME_FORMAT ) ; // 文件名
String outputFilePath = fileNamePrefix + "_" + curTime + ".tar.gz" ; File outputFile = new File ( dir , outputFilePath ) ; FileOutputStream out = null ; out = new FileOutputStream (... |
public class CSVStream { /** * Writes objects from the given { @ link Stream } to the given { @ link Writer } in
* CSV format , converting them to a { @ link List } of String ' s using the given
* { @ link BiFunction } .
* @ param writer
* The Writer that will receive the CSV file .
* @ param objects
* The ... | write ( writer , objects , buildSchema ( headers ) , objectConverter ) ; |
public class FrameworkProjectConfig { /** * Create and generate file with the given properties if not null
* @ param name
* @ param propertyFile
* @ param properties
* @ param filesystemFramework
* @ return */
public static FrameworkProjectConfig create ( final String name , final File propertyFile , final Pr... | if ( ! propertyFile . exists ( ) ) { generateProjectPropertiesFile ( name , propertyFile , false , properties , true ) ; } return create ( name , propertyFile , filesystemFramework ) ; |
public class App { /** * Check if the permissions map contains " OWN " keyword , which restricts access to objects to their creators .
* @ param user user in context
* @ param object some object
* @ return true if app contains permission for this resource and it is marked with " OWN " */
public boolean permission... | if ( user == null || object == null ) { return false ; } String resourcePath1 = object . getType ( ) ; String resourcePath2 = object . getObjectURI ( ) . substring ( 1 ) ; // remove first ' / '
String resourcePath3 = object . getPlural ( ) ; return hasOwnKeyword ( App . ALLOW_ALL , resourcePath1 ) || hasOwnKeyword ( Ap... |
public class Setup { /** * This method is used to set the Moip API environment where the requests will be sent .
* The only Moip environments that are possible request are { @ code SANDBOX } or { @ code PRODUCTION } .
* @ param environment
* { @ code String } the Moip API environment .
* @ return { @ code Setup... | switch ( environment ) { case SANDBOX : this . environment = SANDBOX_URL ; break ; case PRODUCTION : this . environment = PRODUCTION_URL ; break ; case CONNECT_SANDBOX : this . environment = CONNECT_SANDBOX_URL ; break ; case CONNECT_PRODUCTION : this . environment = CONNECT_PRODUCTION_URL ; break ; default : this . en... |
public class Dcs_sqr { /** * Symbolic QR or LU ordering and analysis .
* @ param order
* ordering method to use ( 0 to 3)
* @ param A
* column - compressed matrix
* @ param qr
* analyze for QR if true or LU if false
* @ return symbolic analysis for QR or LU , null on error */
public static Dcss cs_sqr ( i... | int n , k , post [ ] ; Dcss S ; boolean ok = true ; if ( ! Dcs_util . CS_CSC ( A ) ) return ( null ) ; /* check inputs */
n = A . n ; S = new Dcss ( ) ; /* allocate result S */
S . q = Dcs_amd . cs_amd ( order , A ) ; /* fill - reducing ordering */
if ( order > 0 && S . q == null ) return ( null ) ; if ( qr ) /* QR sym... |
public class CassDAOImpl { /** * Given a DATA object , extract the individual elements from the Data into an Object Array for the
* execute element . */
public Result < DATA > create ( TRANS trans , DATA data ) { } } | if ( createPS == null ) { Result . err ( Result . ERR_NotImplemented , "Create is disabled for %s" , getClass ( ) . getSimpleName ( ) ) ; } if ( async ) /* ResultSetFuture */
{ Result < ResultSetFuture > rs = createPS . execAsync ( trans , C_TEXT , data ) ; if ( rs . notOK ( ) ) { return Result . err ( rs ) ; } } else ... |
public class DOTranslationUtility { /** * Parse and read the object state value from raw text .
* Reads a text representation of object state , and returns a " state code "
* abbreviation corresponding to that state . Null or empty values are interpreted
* as " Active " .
* XXX : It might clearer to nix state c... | if ( MODEL . DELETED . looselyMatches ( rawValue , true ) ) { return "D" ; } else if ( MODEL . INACTIVE . looselyMatches ( rawValue , true ) ) { return "I" ; } else if ( MODEL . ACTIVE . looselyMatches ( rawValue , true ) || rawValue == null || rawValue . isEmpty ( ) ) { return "A" ; } else { throw new ParseException (... |
public class Ray { /** * Gets the distance to the plane at z .
* @ param z the z plane
* @ return the distance */
public double intersectZ ( double z ) { } } | if ( direction . z == 0 ) return Double . NaN ; return ( z - origin . z ) / direction . z ; |
public class SentenceSet2VectorSet { /** * Returns a command - line help .
* return a command - line help . */
private static String getHelp ( ) { } } | StringBuffer sb = new StringBuffer ( ) ; // SRE
sb . append ( "\njSRE: Simple Relation Extraction V1.10\t 30.08.06\n" ) ; sb . append ( "developed by Claudio Giuliano (giuliano@itc.it)\n\n" ) ; // License
sb . append ( "Copyright 2005 FBK-irst (http://www.fbk.eu)\n" ) ; sb . append ( "\n" ) ; sb . append ( "Licensed un... |
public class DoTask { /** * Checks if the Java version is recent enough to run MOA .
* @ return true if the Java version is recent . */
public static boolean isJavaVersionOK ( ) { } } | boolean isJavaVersionOK = true ; String versionStr = System . getProperty ( "java.version" ) ; String [ ] parts ; double version ; if ( versionStr . contains ( "." ) ) { parts = versionStr . split ( "\\." ) ; } else { parts = new String [ ] { versionStr } ; } if ( parts . length == 1 ) { try { version = Double . parseD... |
public class S3Location { /** * A list of grants that control access to the staged results .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAccessControlList ( java . util . Collection ) } or { @ link # withAccessControlList ( java . util . Collection ) }... | if ( this . accessControlList == null ) { setAccessControlList ( new java . util . ArrayList < Grant > ( accessControlList . length ) ) ; } for ( Grant ele : accessControlList ) { this . accessControlList . add ( ele ) ; } return this ; |
public class Grid { /** * Replies the bounds covered by a cell at the specified location .
* @ param row the row index .
* @ param column the column index .
* @ return the bounds . */
@ Pure public Rectangle2d getCellBounds ( int row , int column ) { } } | final double cellWidth = getCellWidth ( ) ; final double cellHeight = getCellHeight ( ) ; final double x = this . bounds . getMinX ( ) + cellWidth * column ; final double y = this . bounds . getMinY ( ) + cellHeight * row ; return new Rectangle2d ( x , y , cellWidth , cellHeight ) ; |
public class Choice5 { /** * { @ inheritDoc } */
@ Override public Choice4 < A , B , C , D > converge ( Function < ? super E , ? extends CoProduct4 < A , B , C , D , ? > > convergenceFn ) { } } | return match ( Choice4 :: a , Choice4 :: b , Choice4 :: c , Choice4 :: d , convergenceFn . andThen ( cp4 -> cp4 . match ( Choice4 :: a , Choice4 :: b , Choice4 :: c , Choice4 :: d ) ) ) ; |
public class LockManagerRemoteImpl { public void releaseLocks ( Object key ) { } } | LockInfo info = new LockInfo ( key , null , METHOD_RELEASE_LOCKS ) ; try { byte [ ] requestBarr = serialize ( info ) ; performRequest ( requestBarr ) ; } catch ( Throwable t ) { throw new LockRuntimeException ( "Cannot release locks using owner key '" + key + "'" , t ) ; } |
public class DrizzleResultSet { /** * Retrieves the value of the designated column in the current row of this < code > ResultSet < / code > object as a
* < code > java . sql . Timestamp < / code > object in the Java programming language .
* @ param columnLabel the label for the column specified with the SQL AS clau... | try { return getValueObject ( columnLabel ) . getTimestamp ( ) ; } catch ( ParseException e ) { throw SQLExceptionMapper . getSQLException ( "Could not parse column as timestamp, was: \"" + getValueObject ( columnLabel ) . getString ( ) + "\"" , e ) ; } |
public class PrimitiveTransformation { /** * < code > . google . privacy . dlp . v2 . CryptoDeterministicConfig crypto _ deterministic _ config = 12 ; < / code > */
public com . google . privacy . dlp . v2 . CryptoDeterministicConfigOrBuilder getCryptoDeterministicConfigOrBuilder ( ) { } } | if ( transformationCase_ == 12 ) { return ( com . google . privacy . dlp . v2 . CryptoDeterministicConfig ) transformation_ ; } return com . google . privacy . dlp . v2 . CryptoDeterministicConfig . getDefaultInstance ( ) ; |
public class FileSystemGroupStore { /** * Returns an < code > Iterator < / code > over the < code > Collection < / code > of < code > IEntities < / code >
* that are members of this < code > IEntityGroup < / code > .
* @ return java . util . Iterator
* @ param group org . apereo . portal . groups . IEntityGroup *... | if ( log . isDebugEnabled ( ) ) log . debug ( DEBUG_CLASS_NAME + ".findEntitiesForGroup(): retrieving entities for group " + group ) ; Collection entities = null ; File f = getFile ( group ) ; if ( f . isDirectory ( ) ) { entities = Collections . EMPTY_LIST ; } else { entities = getEntitiesFromFile ( f ) ; } return ent... |
public class AspectranWebService { /** * Find the standalone ActivityContext for this web aspectran service .
* @ param servlet the servlet
* @ return the ActivityContext for this web aspectran service */
public static ActivityContext getActivityContext ( HttpServlet servlet ) { } } | ServletContext servletContext = servlet . getServletContext ( ) ; String attrName = STANDALONE_WEB_SERVICE_ATTRIBUTE_PREFIX + servlet . getServletName ( ) ; ActivityContext activityContext = getActivityContext ( servletContext , attrName ) ; if ( activityContext != null ) { return activityContext ; } else { return getA... |
public class IoUtil { /** * Write the entire contents of the supplied string to the given stream . This method always flushes and closes the stream when
* finished .
* @ param input1 the first stream
* @ param input2 the second stream
* @ return true if the streams contain the same content , or false otherwise ... | CheckArg . isNotNull ( input1 , "input1" ) ; CheckArg . isNotNull ( input2 , "input2" ) ; boolean error = false ; try { byte [ ] buffer1 = new byte [ 1024 ] ; byte [ ] buffer2 = new byte [ 1024 ] ; try { int numRead1 = 0 ; int numRead2 = 0 ; while ( true ) { numRead1 = input1 . read ( buffer1 ) ; numRead2 = input2 . re... |
public class LdapUtils { /** * Execute modify operation boolean .
* @ param currentDn the current dn
* @ param connectionFactory the connection factory
* @ param entry the entry
* @ return true / false */
public static boolean executeModifyOperation ( final String currentDn , final ConnectionFactory connectionF... | final Map < String , Set < String > > attributes = entry . getAttributes ( ) . stream ( ) . collect ( Collectors . toMap ( LdapAttribute :: getName , ldapAttribute -> new HashSet < > ( ldapAttribute . getStringValues ( ) ) ) ) ; return executeModifyOperation ( currentDn , connectionFactory , attributes ) ; |
public class ListAssessmentRunAgentsResult { /** * A list of ARNs that specifies the agents returned by the action .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAssessmentRunAgents ( java . util . Collection ) } or { @ link # withAssessmentRunAgents ( ... | if ( this . assessmentRunAgents == null ) { setAssessmentRunAgents ( new java . util . ArrayList < AssessmentRunAgent > ( assessmentRunAgents . length ) ) ; } for ( AssessmentRunAgent ele : assessmentRunAgents ) { this . assessmentRunAgents . add ( ele ) ; } return this ; |
public class LocalQueueConnection { /** * ( non - Javadoc )
* @ see javax . jms . QueueConnection # createQueueSession ( boolean , int ) */
@ Override public synchronized QueueSession createQueueSession ( boolean transacted , int acknowledgeMode ) throws JMSException { } } | checkNotClosed ( ) ; LocalQueueSession session = new LocalQueueSession ( idProvider . createID ( ) , this , engine , transacted , acknowledgeMode ) ; registerSession ( session ) ; return session ; |
public class BsScheduledJobCA { public void filter ( String name , EsAbstractConditionQuery . OperatorCall < BsScheduledJobCQ > queryLambda , ConditionOptionCall < FilterAggregationBuilder > opLambda , OperatorCall < BsScheduledJobCA > aggsLambda ) { } } | ScheduledJobCQ cq = new ScheduledJobCQ ( ) ; if ( queryLambda != null ) { queryLambda . callback ( cq ) ; } FilterAggregationBuilder builder = regFilterA ( name , cq . getQuery ( ) ) ; if ( opLambda != null ) { opLambda . callback ( builder ) ; } if ( aggsLambda != null ) { ScheduledJobCA ca = new ScheduledJobCA ( ) ; ... |
public class ASTHelpers { /** * Returns whether { @ code anno } corresponds to a type annotation , or { @ code null } if it could not
* be determined . */
@ Nullable public static AnnotationType getAnnotationType ( AnnotationTree anno , @ Nullable Symbol target , VisitorState state ) { } } | if ( target == null ) { return null ; } Symbol annoSymbol = getSymbol ( anno ) ; if ( annoSymbol == null ) { return null ; } Compound compound = target . attribute ( annoSymbol ) ; if ( compound == null ) { for ( TypeCompound typeCompound : target . getRawTypeAttributes ( ) ) { if ( typeCompound . type . tsym . equals ... |
public class JORARepository { /** * Updates the specified field in the supplied object ( which must
* correspond to the supplied table ) .
* @ return the number of rows modified by the update . */
protected < T > int updateField ( final Table < T > table , final T object , String field ) throws PersistenceException... | final FieldMask mask = table . getFieldMask ( ) ; mask . setModified ( field ) ; return executeUpdate ( new Operation < Integer > ( ) { public Integer invoke ( Connection conn , DatabaseLiaison liaison ) throws SQLException , PersistenceException { return table . update ( conn , object , mask ) ; } } ) ; |
public class TenantService { /** * Provides the complete collection of tenants in the system in the default order
* ( alphabetically by name ) . */
public List < ITenant > getTenantsList ( ) { } } | List < ITenant > rslt = new ArrayList < ITenant > ( tenantDao . getAllTenants ( ) ) ; Collections . sort ( rslt ) ; return rslt ; |
public class MetadataUtils { /** * Gets the enclosing document name .
* @ param m
* the m
* @ param criteria
* Input criteria
* @ param viaColumnName
* true if < code > criteria < / code > is column Name , false if
* < code > criteria < / code > is column field name
* @ return the enclosing document nam... | String enclosingEmbeddedFieldName = null ; StringTokenizer strToken = new StringTokenizer ( criteria , "." ) ; String embeddableAttributeName = null ; String embeddedFieldName = null ; String nestedEmbeddedFieldName = null ; if ( strToken . countTokens ( ) > 0 ) { embeddableAttributeName = strToken . nextToken ( ) ; } ... |
public class A_CmsTextExtractor { /** * Parses the given input stream with the provided parser and returns the result as a map of content items . < p >
* @ param in the input stream for the content to parse
* @ param parser the parser to use
* @ return the result of the parsing as a map of content items
* @ thr... | LinkedHashMap < String , String > contentItems = new LinkedHashMap < String , String > ( ) ; StringWriter writer = new StringWriter ( ) ; BodyContentHandler handler = new BodyContentHandler ( writer ) ; Metadata meta = new Metadata ( ) ; ParseContext context = new ParseContext ( ) ; parser . parse ( in , handler , meta... |
public class Translate { /** * Translate { @ link Edge } IDs using the given { @ link TranslateFunction } .
* @ param edges input edges
* @ param translator implements conversion from { @ code OLD } to { @ code NEW }
* @ param < OLD > old edge ID type
* @ param < NEW > new edge ID type
* @ param < EV > edge v... | return translateEdgeIds ( edges , translator , PARALLELISM_DEFAULT ) ; |
public class SessionRuntimeException { /** * Converts a Throwable to a SessionRuntimeException . If the Throwable is a
* SessionRuntimeException , it will be passed through unmodified ; otherwise , it will be wrapped
* in a new SessionRuntimeException .
* @ param cause the Throwable to convert
* @ return a Sess... | return ( cause instanceof SessionRuntimeException ) ? ( SessionRuntimeException ) cause : new SessionRuntimeException ( cause ) ; |
public class Formula { /** * Sets an entry in the predicate cache of this formula
* @ param key the cache key
* @ param value the cache value */
public void setPredicateCacheEntry ( final CacheEntry key , final boolean value ) { } } | this . predicateCache . put ( key , Tristate . fromBool ( value ) ) ; |
public class CreateAuthorizerResult { /** * For REQUEST authorizer , this is not defined .
* @ param providerArns
* For REQUEST authorizer , this is not defined . */
public void setProviderArns ( java . util . Collection < String > providerArns ) { } } | if ( providerArns == null ) { this . providerArns = null ; return ; } this . providerArns = new java . util . ArrayList < String > ( providerArns ) ; |
public class InjectionRecommender2 { /** * Provide the recommendations for the given module .
* @ param superModule the super module to extract definitions from .
* @ param currentModuleAccess the accessor to the the current module ' s definition . */
protected void recommend ( Class < ? > superModule , GuiceModule... | LOG . info ( MessageFormat . format ( "Building injection configuration from {0}" , // $ NON - NLS - 1 $
superModule . getName ( ) ) ) ; final Set < BindingElement > superBindings = new LinkedHashSet < > ( ) ; fillFrom ( superBindings , superModule . getSuperclass ( ) ) ; fillFrom ( superBindings , superModule ) ; fina... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.