signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ZonedDateTimeParameter { /** * Write data to socket in binary format .
* @ param pos socket output stream
* @ throws IOException if socket error occur */
public void writeBinary ( final PacketOutputStream pos ) throws IOException { } } | pos . write ( ( byte ) ( fractionalSeconds ? 11 : 7 ) ) ; // length
pos . writeShort ( ( short ) tz . getYear ( ) ) ; pos . write ( ( byte ) ( ( tz . getMonth ( ) . getValue ( ) ) & 0xff ) ) ; pos . write ( ( byte ) ( tz . getDayOfMonth ( ) & 0xff ) ) ; pos . write ( ( byte ) tz . getHour ( ) ) ; pos . write ( ( byte )... |
public class CollectionManager { /** * Gets iterator for Number range from 0.
* Range from 0 up to number or 0 down to number inclusive .
* Empty Iterator if number is 0.
* @ param obj the top range number value
* @ return the bsh iterator */
public Iterator < Integer > getBshIterator ( final Number obj ) { } } | int number = obj . intValue ( ) ; if ( number == 0 ) return this . emptyIt ( ) ; if ( number > 0 ) return IntStream . rangeClosed ( 0 , number ) . iterator ( ) ; return IntStream . rangeClosed ( number , 0 ) . map ( i -> number - i ) . iterator ( ) ; |
public class FileUtil { /** * Load bytes from the given url .
* @ param url
* Local of the file to load .
* @ return Bytes loaded from the given url . */
public static byte [ ] loadBytes ( URL url ) { } } | byte [ ] bytes = null ; try { bytes = loadBytes ( url . openStream ( ) ) ; } catch ( IOException ex ) { // ex . printStackTrace ( ) ;
} return bytes ; |
public class QuorumJournalManager { /** * Get input stream to one of the nodes for given txid . */
@ Override public ImageInputStream getImageInputStream ( long txid ) throws IOException { } } | URLImageInputStream stream = loggers . getImageInputStream ( txid , httpConnectReadTimeoutMs ) ; if ( stream == null ) { throw new IOException ( "Cannot obtain input stream for image: " + txid ) ; } return new ImageInputStream ( txid , stream , stream . getImageDigest ( ) , stream . toString ( ) , stream . getSize ( ) ... |
public class Choice3 { /** * Static factory method for wrapping a value of type < code > A < / code > in a { @ link Choice3 } .
* @ param a the value
* @ param < A > the first possible type
* @ param < B > the second possible type
* @ param < C > the third possible type
* @ return the wrapped value as a { @ l... | return new _A < > ( a ) ; |
public class ZWaveController { /** * Checks for dead or sleeping nodes during Node initialization .
* JwS : merged checkInitComplete and checkForDeadOrSleepingNodes to prevent possibly looping nodes multiple times . */
public void checkForDeadOrSleepingNodes ( ) { } } | int completeCount = 0 ; if ( zwaveNodes . isEmpty ( ) ) return ; // There are still nodes waiting to get a ping .
// So skip the dead node checking .
for ( SerialMessage serialMessage : sendQueue ) { if ( serialMessage . getPriority ( ) == SerialMessage . SerialMessagePriority . Low ) return ; } logger . trace ( "Check... |
public class CastScopeSession { /** * create a scope for cast operator .
* @ param context the context .
* @ param reference the reference to the internal feature .
* @ param resolvedTypes the resolved types .
* @ return the scope . */
protected IScope createCastOperatorScope ( EObject context , EReference refe... | if ( ! ( context instanceof SarlCastedExpression ) ) { return IScope . NULLSCOPE ; } final SarlCastedExpression call = ( SarlCastedExpression ) context ; final XExpression receiver = call . getTarget ( ) ; if ( receiver == null ) { return IScope . NULLSCOPE ; } return getFeatureScopes ( ) . createFeatureCallScopeForRec... |
public class DateTimeFormatterBuilder { /** * Appends a string literal to the formatter .
* This string will be output during a print .
* If the literal is empty , nothing is added to the formatter .
* @ param literal the literal to append , not null
* @ return this , for chaining , not null */
public DateTimeF... | Jdk8Methods . requireNonNull ( literal , "literal" ) ; if ( literal . length ( ) > 0 ) { if ( literal . length ( ) == 1 ) { appendInternal ( new CharLiteralPrinterParser ( literal . charAt ( 0 ) ) ) ; } else { appendInternal ( new StringLiteralPrinterParser ( literal ) ) ; } } return this ; |
public class PendingReplicationBlocks { /** * Returns a list of blocks that have timed out their
* replication requests . Returns null if no blocks have
* timed out . */
BlockInfo [ ] getTimedOutBlocks ( ) { } } | synchronized ( timedOutItems ) { if ( timedOutItems . size ( ) <= 0 ) { return null ; } BlockInfo [ ] blockList = timedOutItems . toArray ( new BlockInfo [ timedOutItems . size ( ) ] ) ; timedOutItems . clear ( ) ; return blockList ; } |
public class Builder { /** * Returns a new { @ link GeoShape . Intersection } , representing the intersection of the specified WKT shapes .
* @ param shapes the shapes to be intersected
* @ return a new intersection transformation */
public static GeoShape . Intersection intersection ( String ... shapes ) { } } | return intersection ( Stream . of ( shapes ) . map ( Builder :: wkt ) . collect ( Collectors . toList ( ) ) ) ; |
public class ServletContextImpl { /** * Gets the session with the specified ID if it exists
* @ param sessionId The session ID
* @ return The session */
public HttpSessionImpl getSession ( final String sessionId ) { } } | final SessionManager sessionManager = deployment . getSessionManager ( ) ; Session session = sessionManager . getSession ( sessionId ) ; if ( session != null ) { return SecurityActions . forSession ( session , this , false ) ; } return null ; |
public class ApiOvhPrice { /** * Get price of zone options
* REST : GET / price / domain / zone / option / { optionName }
* @ param optionName [ required ] Option */
public OvhPrice domain_zone_option_optionName_GET ( net . minidev . ovh . api . price . domain . zone . OvhOptionEnum optionName ) throws IOException ... | String qPath = "/price/domain/zone/option/{optionName}" ; StringBuilder sb = path ( qPath , optionName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPrice . class ) ; |
public class TaskTracker { /** * Get the number of currently available slots on this tasktracker for the
* given type of the task .
* @ param taskType the { @ link TaskType } to check for number of available slots
* @ return the number of currently available slots for the given
* < code > taskType < / code > */... | int availableSlots = 0 ; if ( taskType == TaskType . MAP ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( trackerName + " getAvailSlots:" + " max(m)=" + status . getMaxMapSlots ( ) + " occupied(m)=" + status . countOccupiedMapSlots ( ) ) ; } availableSlots = status . getAvailableMapSlots ( ) ; } else { if ( LOG . is... |
public class LicenseConfigurationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( LicenseConfiguration licenseConfiguration , ProtocolMarshaller protocolMarshaller ) { } } | if ( licenseConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( licenseConfiguration . getLicenseConfigurationId ( ) , LICENSECONFIGURATIONID_BINDING ) ; protocolMarshaller . marshall ( licenseConfiguration . getLicenseConfigura... |
public class AkkaRpcActor { /** * Send throwable to sender if the sender is specified .
* @ param throwable to send to the sender */
protected void sendErrorIfSender ( Throwable throwable ) { } } | if ( ! getSender ( ) . equals ( ActorRef . noSender ( ) ) ) { getSender ( ) . tell ( new Status . Failure ( throwable ) , getSelf ( ) ) ; } |
public class HyperBoundingBox { /** * The object implements the writeExternal method to save its contents by
* calling the methods of DataOutput for its primitive values or calling the
* writeObject method of ObjectOutput for objects , strings , and arrays .
* @ param out the stream to write the object to
* @ t... | int dim = getDimensionality ( ) ; out . writeInt ( dim ) ; for ( double aMin : min ) { out . writeDouble ( aMin ) ; } for ( double aMax : max ) { out . writeDouble ( aMax ) ; } |
public class CommerceSubscriptionEntryPersistenceImpl { /** * Removes all the commerce subscription entries where groupId = & # 63 ; and userId = & # 63 ; from the database .
* @ param groupId the group ID
* @ param userId the user ID */
@ Override public void removeByG_U ( long groupId , long userId ) { } } | for ( CommerceSubscriptionEntry commerceSubscriptionEntry : findByG_U ( groupId , userId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceSubscriptionEntry ) ; } |
public class GreenPepperServerConfigurationActivator { /** * < p > startup . < / p >
* @ param forceStartup a boolean .
* @ throws com . greenpepper . server . GreenPepperServerException if any . */
public void startup ( boolean forceStartup ) throws GreenPepperServerException { } } | log . info ( "Starting Plugin" ) ; if ( ! isPluginEnabled ) return ; final GreenPepperServerConfiguration configuration = getConfiguration ( ) ; if ( ( configuration . isSetupComplete ( ) && ! isServerStarted ) || forceStartup ) { isServerStarted = false ; try { closeSession ( ) ; Properties properties = configuration ... |
public class WebAppServlet { /** * Add a init param for filter .
* @ param param to be added
* @ throws NullArgumentException if param , param name , param value is null */
public void addInitParam ( final WebAppInitParam param ) { } } | NullArgumentException . validateNotNull ( param , "Init param" ) ; NullArgumentException . validateNotNull ( param . getParamName ( ) , "Init param name" ) ; NullArgumentException . validateNotNull ( param . getParamValue ( ) , "Init param value" ) ; initParams . add ( param ) ; |
public class Functions { /** * Runs random string function with arguments .
* @ param numberOfLetters
* @ param notationMethod
* @ param useNumbers
* @ return */
public static String randomString ( Long numberOfLetters , String notationMethod , boolean useNumbers , TestContext context ) { } } | return new RandomStringFunction ( ) . execute ( Arrays . asList ( String . valueOf ( numberOfLetters ) , notationMethod , String . valueOf ( useNumbers ) ) , context ) ; |
public class UpdateTypedLinkFacetRequest { /** * The order of identity attributes for the facet , from most significant to least significant . The ability to filter
* typed links considers the order that the attributes are defined on the typed link facet . When providing ranges to
* a typed link selection , any ine... | if ( identityAttributeOrder == null ) { this . identityAttributeOrder = null ; return ; } this . identityAttributeOrder = new java . util . ArrayList < String > ( identityAttributeOrder ) ; |
public class ConfigImpl { /** * Resolves has ! loader plugin expressions by calling _ resolve ( ) on each of the modules named
* in the expression . Optionally evaluates the feature conditionals in the expression ,
* potentially simplifying or eliminating the conditionals .
* @ param expression
* The expression... | final String sourceMethod = "resolveHasPlugin" ; // $ NON - NLS - 1 $
boolean isTraceLogging = log . isLoggable ( Level . FINER ) ; if ( isTraceLogging ) { log . entering ( ConfigImpl . class . getName ( ) , sourceMethod , new Object [ ] { expression , features , dependentFeatures , resolveAliases , evaluateHasPluginCo... |
public class ClassByExtensionBenchmark { /** * Performs a benchmark of a class extension using Byte Buddy . This benchmark also uses the annotation - based approach
* but creates delegation methods which do not require the creation of additional classes . This benchmark uses a type
* pool to compare against usage o... | return ( ExampleClass ) new ByteBuddy ( ) . with ( TypeValidation . DISABLED ) . ignore ( none ( ) ) . subclass ( baseClassDescription ) . method ( isDeclaredBy ( baseClassDescription ) ) . intercept ( MethodDelegation . to ( accessClassDescription ) ) . make ( ) . load ( newClassLoader ( ) , ClassLoadingStrategy . Def... |
public class InjectionProcessor { /** * Add the InjectionBinding to the annotationCollection . The collection will be used
* later when binding and resolving injection targets .
* @ param injectionBinding */
public final void addInjectionBinding ( InjectionBinding < A > injectionBinding ) { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "addInjectionBinding: " + injectionBinding ) ; // jndi name not found in collection , simple add
ivAllAnnotationsCollection . put ( injectionBinding . getJndiName ( ) , injectionBinding ) ; |
public class MtasDataLongAdvanced { /** * ( non - Javadoc )
* @ see
* mtas . codec . util . DataCollector . MtasDataCollector # minimumForComputingSegment (
* java . lang . Number , java . lang . Number ) */
@ Override protected Long lastForComputingSegment ( Long value , Long boundary ) throws IOException { } } | if ( segmentRegistration . equals ( SEGMENT_SORT_ASC ) || segmentRegistration . equals ( SEGMENT_BOUNDARY_ASC ) ) { return Math . max ( value , boundary ) ; } else if ( segmentRegistration . equals ( SEGMENT_SORT_DESC ) || segmentRegistration . equals ( SEGMENT_BOUNDARY_DESC ) ) { return Math . min ( value , boundary )... |
public class DEBBuilder { /** * Add debian / control Provides field .
* @ param name
* @ param version Not used
* @ param dependency Not used
* @ return */
@ Override public DEBBuilder addProvide ( String name , String version , Condition ... dependency ) { } } | control . addProvides ( name ) ; return this ; |
public class ConfigurationFile { /** * Finds a single file in the snapshots directory whose name starts with { @ code prefix } and
* returns its name with the prefix removed .
* @ param prefix the prefix
* @ return the single file that meets the criterion { @ code null } if none do
* @ throws IllegalStateExcept... | File [ ] files = null ; if ( snapshotsDirectory . exists ( ) && snapshotsDirectory . isDirectory ( ) ) { files = snapshotsDirectory . listFiles ( new FilenameFilter ( ) { @ Override public boolean accept ( File dir , String name ) { return name . startsWith ( prefix ) && SNAPSHOT_XML . matcher ( name ) . find ( ) ; } }... |
public class AlipayService { /** * MD5验证 */
public Boolean notifyVerifyMd5 ( Map < String , String > params ) { } } | return alipay . verify ( ) . md5 ( params ) ; |
public class ComponentExposedTypeGenerator { /** * Create and return the builder for the Proto of our { @ link IsVueComponent } .
* @ return A Builder to build the Proto class */
private Builder createProtoClassBuilder ( ) { } } | componentExposedTypeBuilder . addField ( FieldSpec . builder ( ClassName . bestGuess ( "Proto" ) , "__proto__" , Modifier . PUBLIC ) . addAnnotation ( JsProperty . class ) . build ( ) ) ; return TypeSpec . classBuilder ( "Proto" ) . addSuperinterface ( ParameterizedTypeName . get ( JsPropertyMap . class , Object . clas... |
public class KarafDistributionOption { /** * This option allows to extend configurations in each configuration file based on the
* karaf . home location . The value extends the current value ( e . g . a = b to a = a , b ) instead of
* replacing it . If there is no current value it is added .
* If you would like t... | return new KarafDistributionConfigurationFileExtendOption ( configurationFilePath , key , value ) ; |
public class Stream { /** * Put the stream in try - catch to stop the back - end reading thread if error happens
* < br / >
* < code >
* try ( Stream < Integer > stream = Stream . parallelZip ( a , b , zipFunction ) ) {
* stream . forEach ( N : : println ) ;
* < / code >
* @ param a
* @ param b
* @ para... | return parallelZip ( a , b , c , valueForNoneA , valueForNoneB , valueForNoneC , zipFunction , DEFAULT_QUEUE_SIZE_PER_ITERATOR ) ; |
public class ModelConversion { /** * / * ( non - Javadoc )
* @ see eu . atos . sla . util . IModelConversion # getAgreementFromAgreementXML ( eu . atos . sla . datamodel . parser . xml . agreement . Agreement , java . lang . String ) */
@ Override public IAgreement getAgreementFromAgreementXML ( eu . atos . sla . par... | IAgreement agreement = new Agreement ( ) ; // AgreementId
if ( agreementXML . getAgreementId ( ) != null ) { agreement . setAgreementId ( agreementXML . getAgreementId ( ) ) ; } // Context
Context context = agreementXML . getContext ( ) ; try { ServiceProvider ctxProvider = ServiceProvider . fromString ( context . getS... |
public class ClientImpl { /** * Join the given channel . Create a new channel object for this connection ,
* join the channel and return the IRCChannel object .
* @ param channelName The channel to join
* @ return the new IRCChannel object or null if the channel could not be
* joined */
@ Override public Channe... | if ( ! connected ) { throw new NotConnectedException ( ) ; } ChannelImpl channel = new ChannelImpl ( this , channelName ) ; /* Attempt to join */
if ( channel . join ( ) ) { return channel ; } /* Error while joining */
return null ; |
public class FacesBackingBean { /** * Remove this instance from the session . */
public void removeFromSession ( HttpServletRequest request ) { } } | StorageHandler sh = Handlers . get ( getServletContext ( ) ) . getStorageHandler ( ) ; HttpServletRequest unwrappedRequest = PageFlowUtils . unwrapMultipart ( request ) ; RequestContext rc = new RequestContext ( unwrappedRequest , null ) ; String attrName = ScopedServletUtils . getScopedSessionAttrName ( InternalConsta... |
public class AlignedBox3f { /** * Replies the center point .
* @ return the center point . */
@ Pure @ Override public Point3f getCenter ( ) { } } | return new Point3f ( ( this . minx + this . maxx ) / 2. , ( this . miny + this . maxy ) / 2. , ( this . minz + this . maxz ) / 2. ) ; |
public class XMLDatabase { /** * Notifies the registered listeners of a change in value node ( value or status ) .
* @ param valueNode the value node that has changed */
@ Override public void fireValueNodeChanged ( IValueNode valueNode ) { } } | for ( IDatabaseListener iDatabaseListener : listeners ) { iDatabaseListener . valueNodeChanged ( valueNode ) ; } |
public class FacesScaffoldProvider { /** * Writes the entity Metawidget and its namespaces into the given context . */
protected void writeEntityMetawidget ( final Map < Object , Object > context , final int entityMetawidgetIndent , final Map < String , String > existingNamespaces ) { } } | StringWriter stringWriter = new StringWriter ( ) ; this . entityMetawidget . write ( stringWriter , entityMetawidgetIndent ) ; context . put ( "metawidget" , stringWriter . toString ( ) . trim ( ) ) ; Map < String , String > namespaces = this . entityMetawidget . getNamespaces ( ) ; namespaces . keySet ( ) . removeAll ... |
public class StatsServlet { /** * @ throws ExecutorManagerException */
private void handleStatePageLoad ( final HttpServletRequest req , final HttpServletResponse resp , final Session session ) throws ServletException { } } | final Page page = newPage ( req , resp , session , "azkaban/webapp/servlet/velocity/statsPage.vm" ) ; try { final Collection < Executor > executors = this . execManagerAdapter . getAllActiveExecutors ( ) ; page . add ( "executorList" , executors ) ; if ( executors . isEmpty ( ) ) { throw new ExecutorManagerException ( ... |
public class vrid6_binding { /** * Use this API to fetch vrid6 _ binding resource of given name . */
public static vrid6_binding get ( nitro_service service , Long id ) throws Exception { } } | vrid6_binding obj = new vrid6_binding ( ) ; obj . set_id ( id ) ; vrid6_binding response = ( vrid6_binding ) obj . get_resource ( service ) ; return response ; |
public class Introspected { /** * Get the delimited column name for the specified property name , or { @ code null } if
* no such property exists .
* CLARIFY Must be public ?
* @ return the delimited column name or { @ code null } */
public String getColumnNameForProperty ( final String propertyName ) { } } | return Optional . ofNullable ( propertyToField . get ( propertyName ) ) . map ( fcInfo -> fcInfo . getDelimitedColumnName ( ) ) . orElse ( null ) ; |
public class DeleteMarkerReplication { /** * Sets the replication status for delete markers . Delete markers are not replicated if status is Disabled .
* @ param status New replication status .
* @ return This object for method chaining . */
public DeleteMarkerReplication withStatus ( DeleteMarkerReplicationStatus ... | setStatus ( status == null ? null : status . toString ( ) ) ; return this ; |
public class AntXmlReport { private List < PropertyModel > buildModel ( Map < String , String > properties ) { } } | List < PropertyModel > props = new ArrayList < > ( ) ; for ( Map . Entry < String , String > e : properties . entrySet ( ) ) { props . add ( new PropertyModel ( e . getKey ( ) , e . getValue ( ) ) ) ; } return props ; |
public class ParserME { /** * Creates a n - gram dictionary from the specified data stream using the specified head rule and specified cut - off .
* @ param data The data stream of parses .
* @ param rules The head rules for the parses .
* @ param cutoff The minimum number of entries required for the n - gram to ... | MutableDictionary mdict = new MutableDictionary ( cutoff ) ; while ( data . hasNext ( ) ) { String parseStr = ( String ) data . nextToken ( ) ; Parse p = Parse . parseParse ( parseStr ) ; p . updateHeads ( rules ) ; Parse [ ] pwords = p . getTagNodes ( ) ; String [ ] words = new String [ pwords . length ] ; // add all ... |
public class GlobalObjectPool { /** * 获取对象
* @ param id 对象的id , 可以是任何全局唯一的标示符
* @ param < T > 对象类型
* @ return 对象 */
public synchronized static < T > T get ( Object id ) { } } | SoftReference reference = pool . get ( id ) ; if ( reference == null ) return null ; return ( T ) reference . get ( ) ; |
public class LegacySpy { /** * Alias for { @ link # expectBetween ( int , int , Threads , Query ) } with arguments { @ code allowedStatements } , { @ code allowedStatements } , { @ code threads } , { @ link Query # ANY }
* @ since 2.0 */
@ Deprecated public C expect ( int allowedStatements , Threads threadMatcher ) {... | return expect ( SqlQueries . exactQueries ( allowedStatements ) . threads ( threadMatcher ) ) ; |
public class GridRecordMessageFilter { /** * Update this filter with this new information .
* Here , I ' m looking for a new bookmark property ( objectID ) .
* Remember to call super after updating this filter , as this method updates the remote copy of this filter .
* @ param properties New filter information ( ... | return super . createNameValueTree ( mxProperties , properties ) ; |
public class WbEditingAction { /** * Executes the API action " wbeditentity " for the given parameters . Created
* or modified items are returned as a result . In particular , this is
* relevant to find out about the id assigned to a newly created entity .
* Unless the parameter clear is true , data of existing e... | Validate . notNull ( data , "Data parameter cannot be null when editing entity data" ) ; Map < String , String > parameters = new HashMap < String , String > ( ) ; parameters . put ( "data" , data ) ; if ( clear ) { parameters . put ( "clear" , "" ) ; } JsonNode response = performAPIAction ( "wbeditentity" , id , site ... |
public class Historical1SimpleDoubleAggPooledTopNScannerPrototype { /** * Any changes to this method should be coordinated with { @ link TopNUtils } , { @ link
* PooledTopNAlgorithm # computeSpecializedScanAndAggregateImplementations } and downstream methods .
* It should be checked with a tool like https : / / git... | // See TopNUtils . copyOffset ( ) for explanation
Offset offset = ( Offset ) TopNUtils . copyOffset ( cursor ) ; long processedRows = 0 ; int positionToAllocate = 0 ; while ( offset . withinBounds ( ) && ! Thread . currentThread ( ) . isInterrupted ( ) ) { int rowNum = offset . getOffset ( ) ; double metric = metricSel... |
public class AsciiSet { /** * Returns a new set that will match characters that are not included this set . */
public AsciiSet invert ( ) { } } | final boolean [ ] invertMembers = new boolean [ 128 ] ; for ( int i = 0 ; i < invertMembers . length ; ++ i ) { invertMembers [ i ] = ! members [ i ] ; } return new AsciiSet ( invertMembers ) ; |
public class ResourcePath { /** * Assumes { @ code path } is already normalized via { @ link # normalizePath ( String ) } .
* @ param path
* Path from which components are extracted
* @ param strategy
* How to perform the extraction ( literal or look for placeholders )
* @ return Logical components of the sup... | requireNonNull ( path ) ; requireNonNull ( strategy ) ; if ( "/" . equals ( path ) ) return emptyList ( ) ; // Strip off leading /
path = path . substring ( 1 ) ; List < String > values = asList ( path . split ( "/" ) ) ; boolean checkForPlaceholder = strategy == ComponentParsingStrategy . FROM_DECLARATION ; return val... |
public class Type { /** * < p > newInstanceUsingCoercion . < / p >
* @ param args a { @ link java . lang . String } object .
* @ return a T object .
* @ throws java . lang . Throwable if any . */
public T newInstanceUsingCoercion ( String ... args ) throws Throwable { } } | Constructor < ? extends T > constructor = ClassUtils . findPossibleConstructor ( klass , args ) ; Class [ ] types = constructor . getParameterTypes ( ) ; return newInstance ( TypeConversion . convert ( args , types ) ) ; |
public class AbstractWComponent { /** * { @ inheritDoc } */
@ Override public Environment getEnvironment ( ) { } } | UIContext uic = UIContextHolder . getCurrent ( ) ; return uic == null ? null : uic . getEnvironment ( ) ; |
public class AESFastEngine { /** * The following defines provide alternative definitions of FFmulX that might
* give improved performance if a fast 32 - bit multiply is not available .
* private int FFmulX ( int x ) { int u = x & m1 ; u | = ( u > > 1 ) ; return ( ( x & m2 ) < < 1 ) ^ ( ( u > > > 3 ) | ( u > > > 6 )... | int f2 = FFmulX ( x ) ; int f4 = FFmulX ( f2 ) ; int f8 = FFmulX ( f4 ) ; int f9 = x ^ f8 ; return f2 ^ f4 ^ f8 ^ shift ( f2 ^ f9 , 8 ) ^ shift ( f4 ^ f9 , 16 ) ^ shift ( f9 , 24 ) ; |
public class GDLLoader { /** * Initializes a new vertex from a given vertex context .
* @ param vertexContext vertex context
* @ return new vertex */
private Vertex initNewVertex ( GDLParser . VertexContext vertexContext ) { } } | Vertex v = new Vertex ( ) ; v . setId ( getNewVertexId ( ) ) ; List < String > labels = getLabels ( vertexContext . header ( ) ) ; v . setLabels ( labels . isEmpty ( ) ? useDefaultVertexLabel ? Collections . singletonList ( defaultVertexLabel ) : Collections . emptyList ( ) : labels ) ; v . setProperties ( getPropertie... |
public class Configuration { /** * Sets the name of the cluster in which the current server resides
* @ param name The name of the WAS cluster */
public static final void clusterName ( String name ) { } } | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "clusterName" , name ) ; _clusterName = name ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "clusterName" ) ; |
public class SnapshotsInner { /** * Revokes access to a snapshot .
* @ param resourceGroupName The name of the resource group .
* @ param snapshotName The name of the snapshot that is being created . The name can ' t be changed after the snapshot is created . Supported characters for the name are a - z , A - Z , 0-... | return beginRevokeAccessWithServiceResponseAsync ( resourceGroupName , snapshotName ) . map ( new Func1 < ServiceResponse < OperationStatusResponseInner > , OperationStatusResponseInner > ( ) { @ Override public OperationStatusResponseInner call ( ServiceResponse < OperationStatusResponseInner > response ) { return res... |
public class FileBufferedDataOutputStream { /** * / * ( non - Javadoc )
* @ see java . io . OutputStream # write ( byte [ ] , int , int ) */
@ Override public void write ( byte [ ] b , int off , int len ) throws IOException { } } | int wbytes = len ; int offset = off ; while ( wbytes > 0 ) { if ( buf . position ( ) >= buf . capacity ( ) ) { flush ( ) ; } int length = Math . min ( wbytes , buf . limit ( ) - buf . position ( ) ) ; buf . put ( b , offset , length ) ; offset += length ; wbytes -= length ; } |
public class AddResourcesListener { /** * Looks for the header in the JSF tree .
* @ param root The root of the JSF tree .
* @ return null , if the head couldn ' t be found . */
private UIComponent findHeader ( UIViewRoot root ) { } } | for ( UIComponent c : root . getChildren ( ) ) { if ( c instanceof HtmlHead ) return c ; } for ( UIComponent c : root . getChildren ( ) ) { if ( c instanceof HtmlBody ) return null ; if ( c instanceof UIOutput ) if ( c . getFacets ( ) != null ) return c ; } return null ; |
public class ApplicationClassLoaderFactory { /** * 获取jar包对应的类加载器 , 对于一个固定的jar包来说 , 该类加载器唯一
* @ param jarFilePath jar包的本地文件路径
* @ return jar包对应的类加载器 */
public static ApplicationClassLoader getJarApplicationClassLoader ( String jarFilePath ) { } } | ApplicationClassLoader jarApplicationClassLoader = jarApplicationClassLoaderCache . get ( jarFilePath ) ; if ( jarApplicationClassLoader != null ) { return jarApplicationClassLoader ; } synchronized ( jarApplicationClassLoaderCache ) { jarApplicationClassLoader = jarApplicationClassLoaderCache . get ( jarFilePath ) ; i... |
public class Shell { /** * Executes a system command with arguments and returns the output .
* @ param command command to be executed
* @ param encoding encoding to be used
* @ return command output
* @ throws IOException on any error */
public final String executeSystemCommandAndGetOutput ( final String [ ] co... | Process p = Runtime . getRuntime ( ) . exec ( command ) ; StreamManager sm = new StreamManager ( ) ; try { InputStream input = sm . handle ( p . getInputStream ( ) ) ; StringBuffer lines = new StringBuffer ( ) ; String line ; BufferedReader in = ( BufferedReader ) sm . handle ( new BufferedReader ( new InputStreamReade... |
public class OperatorStartFuture { /** * Invokes the asynchronous function , surfacing the result through an observable sequence .
* < em > Important note < / em > subscribing to the resulting observable blocks until
* the future completes .
* @ param < T > the result type
* @ param functionAsync the asynchrono... | Future < ? extends T > task ; try { task = functionAsync . call ( ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } return Observable . from ( task ) ; |
public class ProxyArtifactStore { /** * { @ inheritDoc } */
public long getLastModified ( Artifact artifact ) throws IOException , ArtifactNotFoundException { } } | org . apache . maven . artifact . Artifact mavenArtifact = artifactFactory . createArtifactWithClassifier ( artifact . getGroupId ( ) , artifact . getArtifactId ( ) , artifact . getTimestampVersion ( ) , artifact . getType ( ) , artifact . getClassifier ( ) ) ; try { artifactResolver . resolve ( mavenArtifact , remoteR... |
public class JNIWriter { /** * Get the ClassWriter instance for this context . */
public static JNIWriter instance ( Context context ) { } } | JNIWriter instance = context . get ( jniWriterKey ) ; if ( instance == null ) instance = new JNIWriter ( context ) ; return instance ; |
public class MimeTypeInfoManager { /** * Get the primary ( = first ) mime type associated with the specified filename .
* @ param sFilename
* The filename to retrieve the primary mime type from . May neither be
* < code > null < / code > nor empty .
* @ return < code > null < / code > if no mime type is associa... | ValueEnforcer . notEmpty ( sFilename , "Filename" ) ; final String sExtension = FilenameHelper . getExtension ( sFilename ) ; return getPrimaryMimeTypeForExtension ( sExtension ) ; |
public class GosuStringUtil { /** * < p > Removes < code > separator < / code > from the end of
* < code > str < / code > if it ' s there , otherwise leave it alone . < / p >
* < p > NOTE : This method changed in version 2.0.
* It now more closely matches Perl chomp .
* For the previous behavior , use { @ link ... | if ( isEmpty ( str ) || separator == null ) { return str ; } if ( str . endsWith ( separator ) ) { return str . substring ( 0 , str . length ( ) - separator . length ( ) ) ; } return str ; |
public class AwsSecurityFindingFilters { /** * The updated record state for the finding .
* @ param recordState
* The updated record state for the finding . */
public void setRecordState ( java . util . Collection < StringFilter > recordState ) { } } | if ( recordState == null ) { this . recordState = null ; return ; } this . recordState = new java . util . ArrayList < StringFilter > ( recordState ) ; |
public class DocumentLine { /** * indexed getter for endings - gets an indexed value -
* @ generated
* @ param i index in the array to get
* @ return value of the element at index i */
public float getEndings ( int i ) { } } | if ( DocumentLine_Type . featOkTst && ( ( DocumentLine_Type ) jcasType ) . casFeat_endings == null ) jcasType . jcas . throwFeatMissing ( "endings" , "ch.epfl.bbp.uima.types.DocumentLine" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( DocumentLine_Type ) jcasType ) . casFeatCod... |
public class DirectoryScanner { /** * Set the base directory to be scanned . This is the directory which is
* scanned recursively . All ' / ' and ' \ ' characters are replaced by
* < code > File . separatorChar < / code > , so the separator used need not match
* < code > File . separatorChar < / code > .
* @ pa... | setBasedir ( basedir == null ? null : new File ( basedir . replace ( '/' , File . separatorChar ) . replace ( '\\' , File . separatorChar ) ) ) ; return this ; |
public class HttpClientUtil { /** * 初始化httpclient对象 */
private static void buildHttpClient ( ) { } } | RequestConfig globalConfig = RequestConfig . custom ( ) . setConnectTimeout ( 5000 ) . setSocketTimeout ( 5000 ) . build ( ) ; CloseableHttpClient httpclient = HttpClients . custom ( ) . setKeepAliveStrategy ( new HttpClientKeepAliveStrategy ( ) ) . setDefaultRequestConfig ( globalConfig ) . build ( ) ; HttpClientUtil ... |
public class ResourceList { /** * Find duplicate resource paths within this { @ link ResourceList } .
* @ return A { @ link List } of { @ link Entry } objects for all resources in the classpath and / or module path that
* have a non - unique path ( i . e . where there are at least two resources with the same path )... | final List < Entry < String , ResourceList > > duplicatePaths = new ArrayList < > ( ) ; for ( final Entry < String , ResourceList > pathAndResourceList : asMap ( ) . entrySet ( ) ) { // Find ResourceLists with two or more entries
if ( pathAndResourceList . getValue ( ) . size ( ) > 1 ) { duplicatePaths . add ( new Simp... |
public class DataBlockEngine { /** * 追加一个键值对 */
public DataAppendResult append ( StoreTxLogPosition storeTxLogPosition , K key , V value ) { } } | UnsafeByteArrayOutputStream out = new UnsafeByteArrayOutputStream ( ) ; try { DataEntry < K , V > dataEntry = new DataEntry < K , V > ( key , value ) ; serializer . serialize ( dataEntry , out ) ; return append ( storeTxLogPosition , out . toByteArray ( ) ) ; } catch ( Exception e ) { throw new DBException ( "Persisten... |
public class TasksModel { /** * < p > Returns the URI for the remote database , based on the app ' s
* configuration . < / p >
* @ return the remote database ' s URI
* @ throws URISyntaxException if the settings give an invalid URI */
private URI createServerURI ( ) throws URISyntaxException { } } | // We store this in plain text for the purposes of simple demonstration ,
// you might want to use something more secure .
SharedPreferences sharedPref = PreferenceManager . getDefaultSharedPreferences ( this . mContext ) ; String username = sharedPref . getString ( TodoActivity . SETTINGS_CLOUDANT_USER , "" ) ; String... |
public class SyndFeedImpl { /** * Creates a real feed containing the information of the SyndFeedImpl .
* @ param feedType the feed type for the WireFeed to be created .
* @ return the real feed . */
@ Override public WireFeed createWireFeed ( final String feedType ) { } } | if ( feedType == null ) { throw new IllegalArgumentException ( "Feed type cannot be null" ) ; } final Converter converter = CONVERTERS . getConverter ( feedType ) ; if ( converter == null ) { throw new IllegalArgumentException ( "Invalid feed type [" + feedType + "]" ) ; } return converter . createRealFeed ( this ) ; |
public class MSNumpress { /** * Encodes the doubles in data by first using a - lossy conversion to a 4 byte 5 decimal fixed
* point repressentation - storing the residuals from a linear prediction after first to values -
* encoding by encodeInt ( see above )
* The resulting binary is maximally 8 + dataSize * 5 by... | long [ ] ints = new long [ 3 ] ; int i , ri , halfByteCount , hbi ; byte halfBytes [ ] = new byte [ 10 ] ; long extrapol , diff ; encodeFixedPoint ( fixedPoint , result ) ; if ( dataSize == 0 ) { return 8 ; } ints [ 1 ] = ( long ) ( data [ 0 ] * fixedPoint + 0.5 ) ; for ( i = 0 ; i < 4 ; i ++ ) { result [ 8 + i ] = ( b... |
public class ServletHelper { /** * Work around an exception that can occur in Jetty 9.3.13:
* < pre >
* java . lang . NullPointerException : null
* at org . eclipse . jetty . server . Request . getQueryString ( Request . java : 1119 ) ~ [ jetty - server - 9.3.13 . v20161014 . jar : 9.3.13 . v20161014]
* at com ... | String ret = null ; if ( aRequest != null ) try { if ( aRequest . isAsyncSupported ( ) && aRequest . isAsyncStarted ( ) ) ret = ( String ) aRequest . getAttribute ( AsyncContext . ASYNC_QUERY_STRING ) ; else ret = aRequest . getQueryString ( ) ; } catch ( final Exception ex ) { // fall through
if ( isLogExceptions ( ) ... |
public class Elements { /** * Returns a function that gets the value of a selected element .
* @ return a function that gets the value of a selected element . */
public static < E > OptionalFunction < Selection < Element > , E > getValue ( ) { } } | return OptionalFunction . of ( selection -> selection . result ( ) . getValue ( ) ) ; |
public class KCVSLog { /** * Sends a batch of messages by persisting them to the storage backend .
* @ param msgEnvelopes */
private void sendMessages ( final List < MessageEnvelope > msgEnvelopes ) { } } | try { boolean success = BackendOperation . execute ( new BackendOperation . Transactional < Boolean > ( ) { @ Override public Boolean call ( StoreTransaction txh ) throws BackendException { ListMultimap < StaticBuffer , Entry > mutations = ArrayListMultimap . create ( ) ; for ( MessageEnvelope env : msgEnvelopes ) { mu... |
public class ProxySettings { /** * Add an additional HTTP header passed to the proxy server .
* @ param name
* The name of an HTTP header ( case - insensitive ) .
* If { @ code null } or an empty string is given ,
* nothing is added .
* @ param value
* The value of the HTTP header .
* @ return
* { @ cod... | if ( name == null || name . length ( ) == 0 ) { return this ; } List < String > list = mHeaders . get ( name ) ; if ( list == null ) { list = new ArrayList < String > ( ) ; mHeaders . put ( name , list ) ; } list . add ( value ) ; return this ; |
public class GVRAndroidResource { /** * Restore the stream position , to the point set by a previous
* { @ link # mark ( ) mark ( ) . }
* Please note that calling { @ link # reset ( ) } generally ' consumes ' the
* { @ link # mark ( ) } - < em > do not < / em > call
* < pre >
* mark ( ) ;
* reset ( ) ;
* ... | if ( streamState == StreamStates . OPEN ) { if ( stream . markSupported ( ) ) { stream . reset ( ) ; } else { // In case a inputStream ( e . g . , fileInputStream ) doesn ' t support
// mark , throw a exception
throw new IOException ( "Input stream doesn't support mark" ) ; } } |
public class JSPtoPRealization { /** * Method dereferenceLocalisation
* < p > Called back by a PtoPMessageItemStream when the Transaction containing it commits .
* Removes the localisation and its associated OutputHandler
* from the destination .
* @ param localisation The localisation to dereference . */
@ Ove... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "dereferenceLocalisation" , new Object [ ] { ptoPMessageItemStream , this } ) ; _localisationManager . dereferenceLocalisation ( ptoPMessageItemStream ) ; // Reset the reference to the local messages itemstream if it is bein... |
public class ConfigurationAsyncClient { /** * Attempts to get a ConfigurationSetting that matches the { @ code key } .
* @ param key The key of the setting to retrieve .
* @ return The { @ link ConfigurationSetting } stored in the service , or { @ code null } , if the configuration value does
* not exist or the k... | return getSetting ( new ConfigurationSetting ( ) . key ( key ) ) ; |
public class ApptentiveNotificationCenter { /** * Creates a notification with a given name and user info and posts it to the receiver . */
public synchronized void postNotification ( final String name , final Map < String , Object > userInfo ) { } } | ApptentiveLog . v ( NOTIFICATIONS , "Post notification: name=%s userInfo={%s}" , name , StringUtils . toString ( userInfo ) ) ; final ApptentiveNotificationObserverList list = findObserverList ( name ) ; if ( list != null ) { list . notifyObservers ( new ApptentiveNotification ( name , userInfo ) ) ; } |
public class JvmAnyTypeReferenceImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setType ( JvmType newType ) { } } | JvmType oldType = type ; type = newType ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , TypesPackage . JVM_ANY_TYPE_REFERENCE__TYPE , oldType , type ) ) ; |
public class Smb2TreeConnectResponse { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2Response # prepare ( jcifs . internal . CommonServerMessageBlockRequest ) */
@ Override public void prepare ( CommonServerMessageBlockRequest next ) { } } | if ( isReceived ( ) ) { ( ( ServerMessageBlock2 ) next ) . setTreeId ( getTreeId ( ) ) ; } super . prepare ( next ) ; |
public class ApplicationTypeImpl { /** * If not already created , a new < code > jms - destination < / code > element will be created and returned .
* Otherwise , the first existing < code > jms - destination < / code > element will be returned .
* @ return the instance defined for the element < code > jms - destin... | List < Node > nodeList = childNode . get ( "jms-destination" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new JmsDestinationTypeImpl < ApplicationType < T > > ( this , "jms-destination" , childNode , nodeList . get ( 0 ) ) ; } return createJmsDestination ( ) ; |
public class AntClassLoader { /** * Loads a class through this class loader but defer to the parent class
* loader .
* This ensures that instances of the returned class will be compatible
* with instances which have already been loaded on the parent
* loader .
* @ param classname The name of the class to be l... | log ( "force system loading " + classname , Project . MSG_DEBUG ) ; Class theClass = findLoadedClass ( classname ) ; if ( theClass == null ) { theClass = findBaseClass ( classname ) ; } return theClass ; |
public class CssReader { /** * Read forward until the next non - escaped character matches the given
* CharMatcher or is EOF .
* @ throws IOException */
CssReader forward ( CharMatcher matcher ) throws IOException { } } | while ( true ) { Mark mark = mark ( ) ; next ( ) ; // TODO escape awareness
if ( curChar == - 1 || ( matcher . matches ( ( char ) curChar ) && prevChar != '\\' ) ) { unread ( curChar , mark ) ; break ; } } return this ; |
public class CrossOriginResourceSharingFilterCommand { /** * private UIInputMany < String > accessControlRequestHeaders ; */
@ Override public void initializeUI ( UIBuilder builder ) throws Exception { } } | super . initializeUI ( builder ) ; getNamed ( ) . setDefaultValue ( "NewCrossOriginResourceSharingFilter" ) ; accessControlAllowHeaders . setValue ( Arrays . asList ( "Content-Type" , "User-Agent" , "X-Requested-With" , "X-Requested-By" , "Cache-Control" ) ) ; accessControlAllowMethods . setValueChoices ( Arrays . asLi... |
public class NGram { /** * 提取ngram
* @ param data
* @ param gramSizes
* @ param list */
private static void ngramOnCharacter ( String data , int [ ] gramSizes , Collection < String > list ) { } } | data = data . replaceAll ( "\\s+" , "" ) ; for ( int j = 0 ; j < gramSizes . length ; j ++ ) { int len = gramSizes [ j ] ; if ( len <= 0 || len > data . length ( ) ) continue ; for ( int i = 0 ; i < data . length ( ) - len ; i ++ ) { list . add ( data . substring ( i , i + len ) ) ; } } |
public class TransitionBuilder { /** * Finds the associate IF for an ELSE _ IF , ELSE or END _ IF pointer . */
private Tree < Row > findIf ( Tree < Row > pointer ) { } } | while ( ! Type . IF . equals ( pointer . getContent ( ) . getType ( ) ) ) { pointer = pointer . getPrevious ( ) ; } return pointer ; |
public class MeasureToMeasureDto { /** * return the numerical value as a double . It ' s the type used in db .
* Returns null if no numerical value found */
@ CheckForNull private static Double valueAsDouble ( Measure measure ) { } } | switch ( measure . getValueType ( ) ) { case BOOLEAN : return measure . getBooleanValue ( ) ? 1.0d : 0.0d ; case INT : return ( double ) measure . getIntValue ( ) ; case LONG : return ( double ) measure . getLongValue ( ) ; case DOUBLE : return measure . getDoubleValue ( ) ; case NO_VALUE : case STRING : case LEVEL : d... |
public class ForkedJvm { /** * Adds the specified arguments to the command line for the
* < code > main ( ) < / code > method .
* @ param arguments
* The arguments to add , may be < code > null < / code > . */
public void addArguments ( final String [ ] arguments ) { } } | if ( arguments != null ) { for ( final String argument : arguments ) { addArgument ( argument ) ; } } |
public class LogUtils { /** * Checks log level and logs
* @ param logger the Logger the log to
* @ param level the severity level
* @ param message the log message
* @ param parameter the parameter to substitute into message */
public static void log ( Logger logger , Level level , String message , Object param... | log ( logger , level , message , new Object [ ] { parameter } ) ; |
public class TaskTracker { /** * The task is no longer running . It may not have completed successfully */
void reportTaskFinished ( TaskAttemptID taskid , boolean commitPending ) { } } | TaskInProgress tip ; synchronized ( this ) { tip = tasks . get ( taskid ) ; } if ( tip != null ) { tip . reportTaskFinished ( commitPending ) ; } else { LOG . warn ( "Unknown child task finished: " + taskid + ". Ignored." ) ; } |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcRelDefinesByType ( ) { } } | if ( ifcRelDefinesByTypeEClass == null ) { ifcRelDefinesByTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 472 ) ; } return ifcRelDefinesByTypeEClass ; |
public class snmpcommunity { /** * Use this API to fetch filtered set of snmpcommunity resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static snmpcommunity [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | snmpcommunity obj = new snmpcommunity ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; snmpcommunity [ ] response = ( snmpcommunity [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class FindingReplacing { /** * Sets the substrings in given left tag and ending as the search string
* @ see Betner # before ( String )
* @ param right
* @ return */
public InclusMultiPos < S , String , String > before ( String right ) { } } | return new InclusMultiPos < S , String , String > ( right , null ) { @ Override protected S result ( ) { return aQueue ( 'B' , left , right , pos , position , inclusive , plusminus , filltgt ) ; } } ; |
public class HttpSmartProxyHandler { /** * Automatic selection of the authentication algorithm . If < code > preferedOrder < / code > is set then
* algorithms are selected from the list order otherwise the algorithm tries to select the most
* secured algorithm available first .
* @ param response the proxy respon... | // Get the Proxy - Authenticate header
List < String > values = response . getHeaders ( ) . get ( "Proxy-Authenticate" ) ; ProxyIoSession proxyIoSession = getProxyIoSession ( ) ; if ( values == null || values . size ( ) == 0 ) { authHandler = HttpAuthenticationMethods . NO_AUTH . getNewHandler ( proxyIoSession ) ; } el... |
public class SegmentKelp { /** * Writes a page index . */
int writePageIndex ( byte [ ] buffer , int head , int type , int pid , int nextPid , int entryOffset , int entryLength ) { } } | int sublen = 1 + 4 * 4 ; if ( BLOCK_SIZE - 8 < head + sublen ) { return - 1 ; } buffer [ head ] = ( byte ) type ; head ++ ; BitsUtil . writeInt ( buffer , head , pid ) ; head += 4 ; BitsUtil . writeInt ( buffer , head , nextPid ) ; head += 4 ; BitsUtil . writeInt ( buffer , head , entryOffset ) ; head += 4 ; BitsUtil .... |
public class ObligationPolicyDatabase { /** * Add an appropriate policy database entry for parameters marked with the
* WillClose annotation .
* @ param xmethod
* a method
* @ param obligation
* the Obligation deleted by the method
* @ param entryType
* type of entry ( STRONG or WEAK ) */
public Obligatio... | // Add a policy database entry noting that this method
// will delete one instance of the obligation type .
ObligationPolicyDatabaseEntry entry = new MatchMethodEntry ( xmethod , ObligationPolicyDatabaseActionType . DEL , entryType , obligation ) ; addEntry ( entry ) ; return entry ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.