signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Smb2FlushRequest { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2 # writeBytesWireFormat ( byte [ ] , int ) */
@ Override protected int writeBytesWireFormat ( byte [ ] dst , int dstIndex ) { } } | int start = dstIndex ; SMBUtil . writeInt2 ( 24 , dst , dstIndex ) ; dstIndex += 2 ; dstIndex += 2 ; // Reserved1
dstIndex += 4 ; // Reserved2
System . arraycopy ( this . fileId , 0 , dst , dstIndex , 16 ) ; dstIndex += 16 ; return dstIndex - start ; |
public class CmsSecureExportDialog { /** * Converts a property object to a field value for one of the boolean selection widgets . < p >
* @ param prop the property to convert
* @ return the field value */
private String convertPropertyToFieldValue ( CmsProperty prop ) { } } | if ( prop == null ) { return "" ; } return "" + Boolean . valueOf ( prop . getValue ( ) ) ; |
public class RateLimiterExports { /** * Creates a new instance of { @ link RateLimiterExports } with specified metrics names prefix and
* { @ link Supplier } of rate limiters
* @ param prefix the prefix of metrics names
* @ param rateLimitersSupplier the supplier of rate limiters */
public static RateLimiterExpor... | return new RateLimiterExports ( prefix , rateLimitersSupplier ) ; |
public class EndianNumbers { /** * Converts a Java float to a Big Endian int on 4 bytes .
* @ param value is the value to parse .
* @ return the parsing result */
@ Pure @ Inline ( value = "EndianNumbers.parseBEInt(Float.floatToIntBits($1))" , imported = { } } | EndianNumbers . class } ) public static byte [ ] parseBEFloat ( float value ) { return parseBEInt ( Float . floatToIntBits ( value ) ) ; |
public class SourceWaterMarks { /** * Flushes low water marks and high water marks for all the sources .
* @ return < tt > true < / tt > if flush is successful . */
public boolean flush ( ) { } } | boolean ret = true ; PrintWriter out = null ; // Save source water marks
try { // Backup the original file
if ( file . exists ( ) ) { if ( fileOriginal . exists ( ) ) { fileOriginal . delete ( ) ; } file . renameTo ( fileOriginal ) ; } // Overwrite the existing file
out = new PrintWriter ( new FileOutputStream ( file )... |
public class WCOutputStream31 { /** * @ see javax . servlet . ServletOutputStream # print ( int ) */
public void print ( int i ) throws IOException { } } | if ( this . _listener != null && ! checkIfCalledFromWLonError ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "non blocking print int , WriteListener enabled: " + this . _listener ) ; this . print_NonBlocking ( Integer . toString ( i ) ) ; } else { if ( TraceComponen... |
public class UpdateRouteResponseResult { /** * Represents the response models of a route response .
* @ param responseModels
* Represents the response models of a route response .
* @ return Returns a reference to this object so that method calls can be chained together . */
public UpdateRouteResponseResult withR... | setResponseModels ( responseModels ) ; return this ; |
public class UsersApi { /** * Get User shares
* Get User shares
* @ param userId User ID . ( required )
* @ param filter filter ( required )
* @ param count Desired count of items in the result set . ( optional )
* @ param offset Offset for pagination . ( optional )
* @ return DeviceSharingEnvelope
* @ th... | ApiResponse < DeviceSharingEnvelope > resp = listAllSharesForUserWithHttpInfo ( userId , filter , count , offset ) ; return resp . getData ( ) ; |
public class RowMutation { /** * Creates a new instance of the mutation builder . */
public static RowMutation create ( @ Nonnull String tableId , @ Nonnull String key ) { } } | return create ( tableId , ByteString . copyFromUtf8 ( key ) ) ; |
public class Input { /** * Returns InputReader for input
* @ param < T >
* @ param input Any supported input type
* @ param size Ring - buffer size
* @ param features Needed features
* @ return
* @ throws IOException */
public static < T > InputReader getInstance ( T input , int size , Set < ParserFeature >... | return getInstance ( input , size , UTF_8 , features ) ; |
public class LongStreamEx { /** * Returns a sequential { @ link LongStreamEx } with the specified range of the
* specified array as its source .
* @ param array the array , assumed to be unmodified during use
* @ param startInclusive the first index to cover , inclusive
* @ param endExclusive index immediately ... | return of ( Arrays . spliterator ( array , startInclusive , endExclusive ) ) ; |
public class MultiViewOps { /** * Checks to see if the three fundamental matrices are consistent based on their epipoles .
* e < sub > 23 < / sub > < sup > T < / sup > F < sub > 21 < / sub > e < sub > 13 < / sub > = 0 < br >
* e < sub > 31 < / sub > < sup > T < / sup > F < sub > 32 < / sub > e < sub > 21 < / sub > ... | FundamentalExtractEpipoles extractEpi = new FundamentalExtractEpipoles ( ) ; Point3D_F64 e21 = new Point3D_F64 ( ) ; Point3D_F64 e12 = new Point3D_F64 ( ) ; Point3D_F64 e31 = new Point3D_F64 ( ) ; Point3D_F64 e13 = new Point3D_F64 ( ) ; Point3D_F64 e32 = new Point3D_F64 ( ) ; Point3D_F64 e23 = new Point3D_F64 ( ) ; ext... |
public class StageOrTaskActivityBehavior { /** * manual activation rule / / / / / */
protected boolean evaluateManualActivationRule ( CmmnActivityExecution execution ) { } } | boolean manualActivation = false ; CmmnActivity activity = execution . getActivity ( ) ; Object manualActivationRule = activity . getProperty ( PROPERTY_MANUAL_ACTIVATION_RULE ) ; if ( manualActivationRule != null ) { CaseControlRule rule = ( CaseControlRule ) manualActivationRule ; manualActivation = rule . evaluate (... |
public class NetworkConnectionServiceImpl { /** * Gets a ConnectionFactory .
* @ param connFactoryId the identifier of the ConnectionFactory */
@ Override public < T > ConnectionFactory < T > getConnectionFactory ( final Identifier connFactoryId ) { } } | final ConnectionFactory < T > connFactory = connFactoryMap . get ( connFactoryId . toString ( ) ) ; if ( connFactory == null ) { throw new RuntimeException ( "Cannot find ConnectionFactory of " + connFactoryId + "." ) ; } return connFactory ; |
public class AmazonKinesisAsyncClient { /** * Simplified method form for invoking the MergeShards operation with an AsyncHandler .
* @ see # mergeShardsAsync ( MergeShardsRequest , com . amazonaws . handlers . AsyncHandler ) */
@ Override public java . util . concurrent . Future < MergeShardsResult > mergeShardsAsync... | return mergeShardsAsync ( new MergeShardsRequest ( ) . withStreamName ( streamName ) . withShardToMerge ( shardToMerge ) . withAdjacentShardToMerge ( adjacentShardToMerge ) , asyncHandler ) ; |
public class Promise { /** * Waits if necessary for this future to complete , and then returns its
* result . It ' s a blocking operation , do not use this method unless it is
* absolutely necessary for something . Rather use the " then " and
* " catchError " methods .
* @ param timeout
* the maximum time to ... | try { return future . get ( timeout , unit ) ; } catch ( ExecutionException outerError ) { Throwable cause = outerError . getCause ( ) ; if ( cause != null && cause instanceof Exception ) { throw ( Exception ) cause ; } throw outerError ; } |
public class HawkbitUIErrorHandler { /** * Method to build a notification based on an exception .
* @ param ex
* the throwable
* @ return a hawkbit error notification message */
protected HawkbitErrorNotificationMessage buildNotification ( final Throwable ex ) { } } | LOG . error ( "Error in UI: " , ex ) ; final String errorMessage = extractMessageFrom ( ex ) ; final VaadinMessageSource i18n = SpringContextHelper . getBean ( VaadinMessageSource . class ) ; return new HawkbitErrorNotificationMessage ( STYLE , i18n . getMessage ( "caption.error" ) , errorMessage , true ) ; |
public class ExperimentingCaliperRun { /** * Attempts to run each given scenario once , in the current VM . Returns a set of all of the
* scenarios that didn ' t throw a { @ link SkipThisScenarioException } . */
ImmutableSet < Experiment > dryRun ( Iterable < Experiment > experiments ) throws InvalidBenchmarkExceptio... | ImmutableSet . Builder < Experiment > builder = ImmutableSet . builder ( ) ; for ( Experiment experiment : experiments ) { Class < ? > clazz = benchmarkClass . benchmarkClass ( ) ; try { Object benchmark = injector . createChildInjector ( ExperimentModule . forExperiment ( experiment ) ) . getInstance ( Key . get ( cla... |
public class Apptentive { /** * Must be called from the { @ link Application # onCreate ( ) } method in the { @ link Application } object defined in your app ' s manifest .
* @ param application Application object .
* @ param configuration Apptentive configuration containing SDK initialization data . */
public stat... | if ( application == null ) { throw new IllegalArgumentException ( "Application is null" ) ; } if ( configuration == null ) { throw new IllegalArgumentException ( "Apptentive configuration is null" ) ; } try { ApptentiveInternal . createInstance ( application , configuration ) ; } catch ( Exception e ) { ApptentiveLog .... |
public class Buffer { /** * Binary search for character width which favors matching lower numbers .
* < p > Adapted from okio . Buffer */
public static int asciiSizeInBytes ( long v ) { } } | if ( v == 0 ) return 1 ; if ( v == Long . MIN_VALUE ) return 20 ; boolean negative = false ; if ( v < 0 ) { v = - v ; // making this positive allows us to compare using less - than
negative = true ; } int width = v < 100000000L ? v < 10000L ? v < 100L ? v < 10L ? 1 : 2 : v < 1000L ? 3 : 4 : v < 1000000L ? v < 100000L ?... |
public class HelloWorldConnectionImpl { /** * Call helloWorld
* @ param name String name
* @ return String helloworld */
public String helloWorld ( String name ) { } } | if ( mc == null ) associate ( ) ; return mc . helloWorld ( name ) ; |
public class LeapSeconds { /** * / * [ deutsch ]
* < p > Ist die angegebene UTC - Zeit eine registrierte positive
* Schaltsekunde ? < / p >
* @ param utc elapsed SI - seconds relative to UTC epoch
* [ 1972-01-01T00:00:00Z ] including leap seconds
* @ return { @ code true } if the argument represents a registe... | if ( utc <= 0 ) { return false ; } final ExtendedLSE [ ] events = this . getEventsInDescendingOrder ( ) ; for ( int i = 0 ; i < events . length ; i ++ ) { long comp = events [ i ] . utc ( ) ; if ( comp == utc ) { return ( events [ i ] . getShift ( ) == 1 ) ; } else if ( comp < utc ) { break ; } } return false ; |
public class XPathHelper { /** * Create a new XPath expression for evaluation .
* @ param aXPath
* The pre - created XPath object . May not be < code > null < / code > .
* @ param sXPath
* The main XPath string to be evaluated
* @ return The { @ link XPathExpression } object to be used .
* @ throws IllegalA... | ValueEnforcer . notNull ( aXPath , "XPath" ) ; ValueEnforcer . notNull ( sXPath , "XPathExpression" ) ; try { return aXPath . compile ( sXPath ) ; } catch ( final XPathExpressionException ex ) { throw new IllegalArgumentException ( "Failed to compile XPath expression '" + sXPath + "'" , ex ) ; } |
public class RDate { /** * { @ inheritDoc } */
public final void setTimeZone ( TimeZone timezone ) { } } | if ( periods != null && ! ( periods . isEmpty ( ) && periods . isUnmodifiable ( ) ) ) { periods . setTimeZone ( timezone ) ; } else { super . setTimeZone ( timezone ) ; } |
public class RuleSubset { /** * Add a { @ link RuleLifecycleListener } to receive events when { @ link Rule } instances are evaluated , executed , and their results . */
public ListenerRegistration < RuleLifecycleListener > addLifecycleListener ( final RuleLifecycleListener listener ) { } } | this . listeners . add ( listener ) ; return new ListenerRegistration < RuleLifecycleListener > ( ) { @ Override public RuleLifecycleListener removeListener ( ) { listeners . remove ( listener ) ; return listener ; } } ; |
public class ImageStatistics { /** * < p > Computes the mean squared error ( MSE ) between the two images . < / p >
* @ param imgA first image . Not modified .
* @ param imgB second image . Not modified .
* @ return error between the two images . */
public static double meanDiffSq ( GrayF32 imgA , GrayF32 imgB ) ... | InputSanityCheck . checkSameShape ( imgA , imgB ) ; if ( BoofConcurrency . USE_CONCURRENT ) { return ImplImageStatistics_MT . meanDiffSq ( imgA . data , imgA . startIndex , imgA . stride , imgB . data , imgB . startIndex , imgB . stride , imgA . height , imgA . width ) ; } else { return ImplImageStatistics . meanDiffSq... |
public class GeometricDoubleBondEncoderFactory { /** * Create a permutation parity for the given neighbors . The neighbor list
* should include the other double bonded atom but in the last index .
* < pre >
* c3
* c2 = c1 = [ c3 , c4 , c1]
* c4
* < / pre >
* @ param neighbors neighbors of a double bonded ... | return neighbors . length == 2 ? PermutationParity . IDENTITY : new BasicPermutationParity ( Arrays . copyOf ( neighbors , neighbors . length - 1 ) ) ; |
public class Element { /** * ( non - Javadoc )
* @ see
* qc . automation . framework . widget . IElement # waitForElementPresent ( java . lang
* . Long ) */
public void waitForElementNotPresent ( final long time ) throws WidgetException { } } | try { waitForCommand ( new ITimerCallback ( ) { @ Override public boolean execute ( ) throws WidgetException { return ! isElementPresent ( ) ; } @ Override public String toString ( ) { return "Waiting for element with locator " + locator + " to not be present" ; } } , time ) ; } catch ( Exception e ) { throw new Widget... |
public class SocketStore { /** * This method handles submitting and then waiting for the request from the
* server . It uses the ClientRequest API to actually write the request and
* then read back the response . This implementation will block for a
* response from the server .
* @ param < T > Return type
* @... | long startTimeMs = - 1 ; long startTimeNs = - 1 ; if ( logger . isDebugEnabled ( ) ) { startTimeMs = System . currentTimeMillis ( ) ; } ClientRequestExecutor clientRequestExecutor = pool . checkout ( destination ) ; String debugMsgStr = "" ; startTimeNs = System . nanoTime ( ) ; BlockingClientRequest < T > blockingClie... |
public class EnableOnValidHandler { /** * Constructor .
* @ param record My owner ( usually passed as null , and set on addListener in setOwner ( ) ) .
* @ param field Target field .
* @ param iFieldSeq Target field .
* @ param bEnbleOnValid Enable / disable the fields on valid .
* @ param bEnableOnNew Enable... | this . fieldName = fieldName ; m_fldTarget = field ; m_sField = sField ; m_bEnableOnValid = bEnableOnValid ; m_bEnableOnNew = bEnableOnNew ; super . init ( record ) ; |
public class Base16Utils { /** * This function decodes a base 16 string into its corresponding byte array .
* @ param base16 The base 16 encoded string .
* @ return The corresponding byte array . */
static public byte [ ] decode ( String base16 ) { } } | String string = base16 . replaceAll ( "\\s" , "" ) ; // remove all white space
int length = string . length ( ) ; byte [ ] bytes = new byte [ ( int ) Math . ceil ( length / 2.0 ) ] ; for ( int i = 0 ; i < bytes . length ; i ++ ) { decodeByte ( string , i , bytes ) ; } return bytes ; |
public class VisitState { /** * Enqueues the < code > / robots . txt < / code > path as the first element of the queue , if the queue is
* empty , or as the second element otherwise , possibly putting this visit state in its
* entry .
* < p > This behaviour is necessary : is this visit state
* is { @ linkplain ... | if ( ! RuntimeConfiguration . FETCH_ROBOTS ) return ; if ( nextFetch == Long . MAX_VALUE ) return ; synchronized ( this ) { if ( pathQueries . isEmpty ( ) ) { pathQueries . enqueueFirst ( ROBOTS_PATH ) ; putInEntryIfNotAcquired ( ) ; } else { final byte [ ] first = pathQueries . dequeue ( ) ; pathQueries . enqueueFirst... |
public class DefaultStreamHandler { /** * Helper method to deal with the { @ link FragmentListener } since it
* technically can throw exceptions and stuff so we just want to catch all
* and log and move on .
* @ param ipPacket
* @ return */
private IPPacket handleFragmentation ( final IPPacket ipPacket ) { } } | if ( this . fragmentListener == null ) { return null ; } try { return this . fragmentListener . handleFragment ( ipPacket ) ; } catch ( final Throwable t ) { logger . warn ( "Exception thrown by FragmentListener when processing the IP frame" , t ) ; } return null ; |
public class MuteDirector { /** * Called to shut down the mute director . */
public void shutdown ( ) { } } | if ( _chatdir != null ) { _chatdir . removeChatFilter ( this ) ; _chatdir = null ; } _ctx . getClient ( ) . removeClientObserver ( this ) ; |
public class SDBaseOps { /** * Convert the array to a one - hot array with walues { @ code on } and { @ code off } for each entry < br >
* If input has shape [ a , . . . , n ] then output has shape [ a , . . . , n , depth ] ,
* with { @ code out [ i , . . . , j , in [ i , . . . , j ] ] = on } with other values bein... | return oneHot ( name , indices , depth , axis , on , off , OneHot . DEFAULT_DTYPE ) ; |
public class CWSEvaluator { /** * 标准化评测分词器
* @ param segment 分词器
* @ param outputPath 分词预测输出文件
* @ param goldFile 测试集segmented file
* @ param dictPath 训练集单词列表
* @ return 一个储存准确率的结构
* @ throws IOException */
public static CWSEvaluator . Result evaluate ( Segment segment , String outputPath , String goldFile ... | IOUtil . LineIterator lineIterator = new IOUtil . LineIterator ( goldFile ) ; BufferedWriter bw = IOUtil . newBufferedWriter ( outputPath ) ; for ( String line : lineIterator ) { List < Term > termList = segment . seg ( line . replaceAll ( "\\s+" , "" ) ) ; // 一些testFile与goldFile根本不匹配 , 比如MSR的testFile有些行缺少单词 , 所以用goldF... |
public class Validator { /** * The digits were stored as a hex value , thix switches them to an octal value .
* @ param currentHexValue
* @ param digitCount
* @ return */
private static long switchValue8 ( long currentHexValue , int digitCount ) { } } | long result = 0x7 & currentHexValue ; int shift = 0 ; while ( -- digitCount > 0 ) { shift += 3 ; currentHexValue >>>= 4 ; result |= ( 0x7 & currentHexValue ) << shift ; } return result ; |
public class ExtensionRegistry { /** * Gets information about the subsystems provided by a given { @ link org . jboss . as . controller . Extension } .
* @ param moduleName the name of the extension ' s module . Cannot be { @ code null }
* @ return map of subsystem names to information about the subsystem . */
publ... | Map < String , SubsystemInformation > result = null ; final ExtensionInfo info = extensions . get ( moduleName ) ; if ( info != null ) { // noinspection SynchronizationOnLocalVariableOrMethodParameter
synchronized ( info ) { result = Collections . unmodifiableMap ( new HashMap < String , SubsystemInformation > ( info .... |
public class RaidNode { /** * Wait for service to finish .
* ( Normally , it runs forever . ) */
public void join ( ) { } } | try { if ( server != null ) server . join ( ) ; if ( triggerThread != null ) triggerThread . join ( ) ; if ( urfThread != null ) urfThread . join ( ) ; if ( blockFixerThread != null ) blockFixerThread . join ( ) ; if ( blockCopierThread != null ) blockCopierThread . join ( ) ; if ( corruptFileCounterThread != null ) co... |
public class DeleteInputRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteInputRequest deleteInputRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteInputRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteInputRequest . getInputId ( ) , INPUTID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMes... |
import java . util . * ; class SortTuples { /** * This function sorts the tuples based on an order defined by the list ' orderList ' .
* Examples :
* > > > sortTuples ( Arrays . asList ( new AbstractMap . SimpleEntry < > ( 4 , 3 ) , new AbstractMap . SimpleEntry < > ( 1 , 9 ) , new AbstractMap . SimpleEntry < > ( 2... | Map < Integer , Integer > tuplesMap = new HashMap < > ( ) ; for ( Map . Entry < Integer , Integer > tuple : tupleList ) { tuplesMap . put ( tuple . getKey ( ) , tuple . getValue ( ) ) ; } List < Map . Entry < Integer , Integer > > sortedTuples = new ArrayList < > ( ) ; for ( Integer key : orderList ) { sortedTuples . a... |
public class ManagedInstancesInner { /** * Gets a list of managed instances in a resource group .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ throws IllegalArgumentException thrown if parame... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < ManagedInstanceInner > > , Page < ManagedInstanceInner > > ( ) { @ Override public Page < ManagedInstanceInner > call ( ServiceResponse < Page < ManagedInstanceInner > > response ) { return response . b... |
public class PoiWriter { /** * Complete task . */
public void complete ( ) { } } | if ( this . configuration . isGeoTags ( ) ) { this . geoTagger . processBoundaries ( ) ; } NumberFormat nfMegabyte = NumberFormat . getInstance ( ) ; nfMegabyte . setMaximumFractionDigits ( 2 ) ; try { commit ( ) ; if ( this . configuration . isFilterCategories ( ) ) { filterCategories ( ) ; } writeMetadata ( ) ; this ... |
public class ControllerAutoSchedule { /** * Upon successful transaction commit , automatically schedules a task via the controller .
* @ see javax . transaction . Synchronization # afterCompletion ( int ) */
@ Override public void afterCompletion ( int status ) { } } | if ( status == Status . STATUS_COMMITTED ) controller . notifyOfTaskAssignment ( partitionId , taskId , expectedExecTime , binaryFlags , txTimeout ) ; |
public class IntegrationAccountsInner { /** * Logs the integration account ' s tracking events .
* @ param resourceGroupName The resource group name .
* @ param integrationAccountName The integration account name .
* @ param logTrackingEvents The callback URL parameters .
* @ param serviceCallback the async Ser... | return ServiceFuture . fromResponse ( logTrackingEventsWithServiceResponseAsync ( resourceGroupName , integrationAccountName , logTrackingEvents ) , serviceCallback ) ; |
public class RaftNetworkClient { /** * Initialize the { @ code RaftNetworkClient } instance .
* Sets up the { @ code RaftNetworkClient } client and server modules .
* Following a call to { @ code initialize ( ) } network threads are active
* but will not accept any incoming connections or establish any
* outgoi... | checkState ( ! running ) ; checkState ( server == null ) ; checkState ( client == null ) ; final AddressResolverHandler resolverHandler = new AddressResolverHandler ( nonIoExecutorService ) ; // sharable , because it is using the default provider
final FinalUpstreamHandler finalUpstreamHandler = new FinalUpstreamHandle... |
public class GeographyPointValue { /** * by subtracting multiples of 360. */
private static double normalize ( double v , double range ) { } } | double a = v - Math . floor ( ( v + ( range / 2 ) ) / range ) * range ; // Make sure that a and v have the same sign
// when abs ( v ) = 180.
if ( Math . abs ( a ) == 180.0 && ( a * v ) < 0 ) { a *= - 1 ; } // The addition of 0.0 is to avoid negative
// zero , which just confuses things .
return a + 0.0 ; |
public class AbstractOccurrenceDependencyContextGenerator { /** * { @ inheritDoc } */
public SparseDoubleVector generateContext ( DependencyTreeNode [ ] tree , int focusIndex ) { } } | Queue < String > prevWords = new ArrayDeque < String > ( ) ; for ( int i = Math . max ( 0 , focusIndex - windowSize - 1 ) ; i < focusIndex ; ++ i ) prevWords . add ( getFeature ( tree [ i ] , i - focusIndex ) ) ; Queue < String > nextWords = new ArrayDeque < String > ( ) ; for ( int i = focusIndex + 1 ; i < Math . min ... |
public class PickleUtils { /** * read a line of text , possibly including the terminating LF char */
public static String readline ( InputStream input , boolean includeLF ) throws IOException { } } | StringBuilder sb = new StringBuilder ( ) ; while ( true ) { int c = input . read ( ) ; if ( c == - 1 ) { if ( sb . length ( ) == 0 ) throw new IOException ( "premature end of file" ) ; break ; } if ( c != '\n' || includeLF ) sb . append ( ( char ) c ) ; if ( c == '\n' ) break ; } return sb . toString ( ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link SubjectType } { @ code > } } */
@ XmlElementDecl ( namespace = "urn:oasis:names:tc:xacml:2.0:context:schema:os" , name = "Subject" ) public JAXBElement < SubjectType > createSubject ( SubjectType value ) { } } | return new JAXBElement < SubjectType > ( _Subject_QNAME , SubjectType . class , null , value ) ; |
public class FileSystem { /** * Reply the basename of the specified file without all the extensions .
* @ param filename is the name to parse .
* @ return the basename of the specified file without all the extensions . */
@ Pure public static String shortBasename ( File filename ) { } } | if ( filename == null ) { return null ; } final String largeBasename = filename . getName ( ) ; final int idx = largeBasename . indexOf ( getFileExtensionCharacter ( ) ) ; if ( idx < 0 ) { return largeBasename ; } return largeBasename . substring ( 0 , idx ) ; |
public class DictImpl { /** * Creates a SoyDict implementation for a particular underlying provider map .
* < p > The map may be mutable , but will not be mutated by the DictImpl . */
public static DictImpl forProviderMap ( Map < String , ? extends SoyValueProvider > providerMap , RuntimeMapTypeTracker . Type mapType... | return new DictImpl ( providerMap , mapType ) ; |
public class MpMessages { /** * 群发语音消息给指定人
* @ param openIds
* @ param voice
* @ return */
public long voice ( List < String > openIds , String voice ) { } } | return send ( new Filter ( false , null ) , openIds , "voice" , voice ) ; |
public class PlanNode { /** * Look at nodes below this node , searching for nodes that have the supplied type . As soon as a node with a matching type is
* found , then no other nodes below it are searched .
* @ param typeToFind the type of node to find ; may not be null
* @ return the collection of nodes that ar... | List < PlanNode > results = new LinkedList < PlanNode > ( ) ; LinkedList < PlanNode > queue = new LinkedList < PlanNode > ( ) ; queue . add ( this ) ; while ( ! queue . isEmpty ( ) ) { PlanNode aNode = queue . poll ( ) ; if ( aNode . getType ( ) == Type . PROJECT ) { results . add ( aNode ) ; } else { queue . addAll ( ... |
public class DrawerBuilder { /** * Sets the activity which will be generated for the generation
* The activity is required and will be used to inflate the content in .
* After generation it is set to null to prevent a memory leak .
* @ param activity current activity which will contain the drawer */
public Drawer... | this . mRootView = ( ViewGroup ) activity . findViewById ( android . R . id . content ) ; this . mActivity = activity ; this . mLayoutManager = new LinearLayoutManager ( mActivity ) ; return this ; |
public class SingleFieldConstraintEBLeftSide { /** * This adds a new connective . */
@ Override public void addNewConnective ( ) { } } | String factType = getExpressionLeftSide ( ) . getPreviousGenericType ( ) ; if ( factType == null ) { factType = getExpressionLeftSide ( ) . getGenericType ( ) ; } String fieldName = getExpressionLeftSide ( ) . getFieldName ( ) ; String fieldType = getExpressionLeftSide ( ) . getGenericType ( ) ; if ( this . getConnecti... |
public class PersistenceXMLLoader { /** * Parses the persistence unit .
* @ param top
* the top
* @ return the persistence metadata
* @ throws Exception
* the exception */
private static PersistenceUnitMetadata parsePersistenceUnit ( final URL url , final String [ ] persistenceUnits , Element top , final Stri... | PersistenceUnitMetadata metadata = new PersistenceUnitMetadata ( versionName , getPersistenceRootUrl ( url ) , url ) ; String puName = top . getAttribute ( "name" ) ; if ( ! Arrays . asList ( persistenceUnits ) . contains ( puName ) ) { // Returning null because this persistence unit is not intended for
// creating ent... |
public class ClassCompare { /** * appends blanks to the string if its shorter than < code > len < / code > .
* @ param sthe string to pad
* @ param lenthe minimum length for the string to have
* @ returnthe padded string */
protected String fillUp ( String s , int len ) { } } | while ( s . length ( ) < len ) s += " " ; return s ; |
public class SessionImpl { /** * { @ inheritDoc } */
public void move ( String srcAbsPath , String destAbsPath , boolean triggerEventsForDescendants ) throws ItemExistsException , PathNotFoundException , VersionException , LockException , RepositoryException { } } | // In this particular case we decide what to do whether it is a rename or a real move
move ( srcAbsPath , destAbsPath , triggerEventsForDescendants , triggerEventsForDescendants ) ; |
public class DistributedDelayQueue { /** * Same as { @ link # putMulti ( MultiItem , long ) } but allows a maximum wait time if an upper bound was set
* via { @ link QueueBuilder # maxItems } .
* @ param items items to add
* @ param delayUntilEpoch future epoch ( milliseconds ) when this item will be available to... | Preconditions . checkArgument ( delayUntilEpoch > 0 , "delayUntilEpoch cannot be negative" ) ; queue . checkState ( ) ; return queue . internalPut ( null , items , queue . makeItemPath ( ) + epochToString ( delayUntilEpoch ) , maxWait , unit ) ; |
public class AmazonElastiCacheAsyncClient { /** * Simplified method form for invoking the DescribeReservedCacheNodesOfferings operation with an AsyncHandler .
* @ see # describeReservedCacheNodesOfferingsAsync ( DescribeReservedCacheNodesOfferingsRequest ,
* com . amazonaws . handlers . AsyncHandler ) */
@ Override... | return describeReservedCacheNodesOfferingsAsync ( new DescribeReservedCacheNodesOfferingsRequest ( ) , asyncHandler ) ; |
public class ClusterState { /** * Returns a member by ID .
* @ param id The member ID .
* @ return The member . */
public ServerMember getRemoteMember ( int id ) { } } | MemberState member = membersMap . get ( id ) ; return member != null ? member . getMember ( ) : null ; |
public class ManagedExecutorServiceImpl { /** * Declarative Services method for setting the context service reference
* @ param ref reference to the service */
@ Reference ( policy = ReferencePolicy . DYNAMIC , target = "(id=unbound)" ) protected void setContextService ( ServiceReference < WSContextService > ref ) { ... | contextSvcRef . setReference ( ref ) ; |
public class DomService { /** * Apply the " left " style attribute on the given element .
* @ param element
* The DOM element .
* @ param left
* The left value . */
public static void setLeft ( Element element , int left ) { } } | if ( Dom . isIE ( ) ) { // Limitation in IE8 . . .
while ( left > 1000000 ) { left -= 1000000 ; } while ( left < - 1000000 ) { left += 1000000 ; } } Dom . setStyleAttribute ( element , "left" , left + "px" ) ; |
public class UploadMultipartPartRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UploadMultipartPartRequest uploadMultipartPartRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( uploadMultipartPartRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( uploadMultipartPartRequest . getAccountId ( ) , ACCOUNTID_BINDING ) ; protocolMarshaller . marshall ( uploadMultipartPartRequest . getVaultName ( ) , VAULTNAM... |
public class BasePanel { /** * Process the " Delete " toolbar command .
* @ return true If command was handled */
public boolean onDelete ( ) { } } | Record record = this . getMainRecord ( ) ; if ( record == null ) return false ; if ( record . getEditMode ( ) == Constants . EDIT_NONE ) return true ; if ( record . getEditMode ( ) == Constants . EDIT_ADD ) { // If they ' re adding , can ' t delete nothing !
this . onRefresh ( ) ; return true ; } try { if ( record . ge... |
public class JmsSpout { /** * < code > ISpout < / code > implementation .
* Connects the JMS spout to the configured JMS destination
* topic / queue . */
@ SuppressWarnings ( "rawtypes" ) public void open ( Map conf , TopologyContext context , SpoutOutputCollector collector ) { } } | if ( this . jmsProvider == null ) { throw new IllegalStateException ( "JMS provider has not been set." ) ; } if ( this . tupleProducer == null ) { throw new IllegalStateException ( "JMS Tuple Producer has not been set." ) ; } Integer topologyTimeout = ( Integer ) conf . get ( "topology.message.timeout.secs" ) ; // TODO... |
public class PropositionUtil { /** * Binary search for a primitive parameter by timestamp , optimized for when
* the parameters are stored in a list that does not implement
* < code > java . util . RandomAccess < / code > .
* @ param list
* a < code > List < / code > of < code > PrimitiveParameter < / code >
... | int low = 0 ; int high = list . size ( ) - 1 ; ListIterator < T > i = list . listIterator ( ) ; while ( low <= high ) { /* * We use > > > instead of > > or / 2 to avoid overflow . Sun ' s
* implementation of binary search actually doesn ' t do this ( bug
* # 5045582 ) . */
int mid = ( low + high ) >>> 1 ; TemporalP... |
public class CmsCopy { /** * Performs the copy operation for a single VFS resource . < p >
* @ param source the source VFS path
* @ param target the target VFS path
* @ param sitePrefix the site prefix
* @ param copyMode the copy mode for siblings
* @ param overwrite the overwrite flag
* @ throws CmsExcepti... | // calculate the target name
String finalTarget = CmsLinkManager . getAbsoluteUri ( target , CmsResource . getParentFolder ( source ) ) ; if ( finalTarget . equals ( source ) || ( isMultiOperation ( ) && finalTarget . startsWith ( source ) ) ) { throw new CmsVfsException ( Messages . get ( ) . container ( Messages . ER... |
public class AttachVolumeRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AttachVolumeRequest attachVolumeRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( attachVolumeRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( attachVolumeRequest . getGatewayARN ( ) , GATEWAYARN_BINDING ) ; protocolMarshaller . marshall ( attachVolumeRequest . getTargetName ( ) , TARGETNAME_BINDING ) ; pro... |
public class ResourceTypeProperties { /** * Returns the required locality levels , in order of preference ,
* for the resource type .
* @ param type The type of the resource .
* @ return The list of locality levels . */
public static List < LocalityLevel > neededLocalityLevels ( ResourceType type ) { } } | List < LocalityLevel > l = new ArrayList < LocalityLevel > ( ) ; switch ( type ) { case MAP : l . add ( LocalityLevel . NODE ) ; l . add ( LocalityLevel . RACK ) ; l . add ( LocalityLevel . ANY ) ; break ; case REDUCE : l . add ( LocalityLevel . ANY ) ; break ; case JOBTRACKER : l . add ( LocalityLevel . ANY ) ; break ... |
public class JSRInlinerAdapter { /** * Detects a JSR instruction and sets a flag to indicate we will need to do
* inlining . */
@ Override public void visitJumpInsn ( final int opcode , final Label lbl ) { } } | super . visitJumpInsn ( opcode , lbl ) ; LabelNode ln = ( ( JumpInsnNode ) instructions . getLast ( ) ) . label ; if ( opcode == JSR && ! subroutineHeads . containsKey ( ln ) ) { subroutineHeads . put ( ln , new BitSet ( ) ) ; } |
public class TypedQuery { /** * Add the given list of async listeners on the { @ link com . datastax . driver . core . Row } object .
* Example of usage :
* < pre class = " code " > < code class = " java " >
* . withRowAsyncListeners ( Arrays . asList ( row - > {
* / / Do something with the row object here
* ... | this . options . setRowAsyncListeners ( Optional . of ( rowAsyncListeners ) ) ; return this ; |
public class EmbeddedView { /** * { @ inheritDoc } */
@ Override protected void initView ( ) { } } | super . initView ( ) ; this . box = new VBox ( ) ; this . box . setAlignment ( Pos . CENTER ) ; final ScrollPane scrollPane = new ScrollPane ( ) ; scrollPane . setPrefSize ( 600 , 600 ) ; scrollPane . setContent ( this . box ) ; node ( ) . setCenter ( scrollPane ) ; addNode ( EmbeddedView . ROOT_EMBEDDED_FXML . get ( )... |
public class ExpressionBasedActionHandler { /** * This method returns the value , associated with the expression , for the
* supplied data .
* @ param trace The trace
* @ param node The node
* @ param direction The direction
* @ param headers The optional headers
* @ param values The values
* @ return The... | if ( expression != null ) { return expression . evaluate ( trace , node , direction , headers , values ) ; } return null ; |
public class GitlabAPI { /** * Uploads a file to a project
* @ param project
* @ param file
* @ return
* @ throws IOException on gitlab api call error */
public GitlabUpload uploadFile ( GitlabProject project , File file ) throws IOException { } } | String tailUrl = GitlabProject . URL + "/" + sanitizeProjectId ( project . getId ( ) ) + GitlabUpload . URL ; return dispatch ( ) . withAttachment ( "file" , file ) . to ( tailUrl , GitlabUpload . class ) ; |
public class VaultsInner { /** * Get the Vault details .
* @ param resourceGroupName The name of the resource group where the recovery services vault is present .
* @ param vaultName The name of the recovery services vault .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws... | return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , vaultName ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class PAbstractObject { /** * Get a property as a double or throw an exception .
* @ param key the property name */
@ Override public final double getDouble ( final String key ) { } } | Double result = optDouble ( key ) ; if ( result == null ) { throw new ObjectMissingException ( this , key ) ; } return result ; |
public class POSVerb { /** * setter for biolexicon _ id - sets
* @ generated
* @ param v value to set into the feature */
public void setBiolexicon_id ( String v ) { } } | if ( POSVerb_Type . featOkTst && ( ( POSVerb_Type ) jcasType ) . casFeat_biolexicon_id == null ) jcasType . jcas . throwFeatMissing ( "biolexicon_id" , "ch.epfl.bbp.uima.types.POSVerb" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( POSVerb_Type ) jcasType ) . casFeatCode_biolexicon_id , v ) ; |
public class HtmlDocletWriter { /** * Return the link to the given class .
* @ param linkInfo the information about the link .
* @ return the link for the given class . */
public Content getLink ( LinkInfoImpl linkInfo ) { } } | LinkFactoryImpl factory = new LinkFactoryImpl ( this ) ; return factory . getLink ( linkInfo ) ; |
public class HMenuScreen { /** * Get the Html keywords .
* @ return The Keywords . */
public String getHtmlKeywords ( ) { } } | Record recMenu = this . getMainRecord ( ) ; if ( recMenu . getField ( MenusModel . KEYWORDS ) . getLength ( ) > 0 ) return recMenu . getField ( MenusModel . KEYWORDS ) . toString ( ) ; else return super . getHtmlKeywords ( ) ; |
public class InverseMapper { /** * The inverse function . Input keys and values are swapped . */
public void map ( K key , V value , OutputCollector < V , K > output , Reporter reporter ) throws IOException { } } | output . collect ( value , key ) ; |
public class VoiceApi { /** * Retrieve the specified call from hold .
* @ param connId The connection ID of the call .
* @ param reasons Information on causes for , and results of , actions taken by the user of the current DN . For details about reasons , refer to the [ * Genesys Events and Models Reference Manual ... | try { VoicecallsidanswerData retrieveData = new VoicecallsidanswerData ( ) ; retrieveData . setReasons ( Util . toKVList ( reasons ) ) ; retrieveData . setExtensions ( Util . toKVList ( extensions ) ) ; RetrieveData data = new RetrieveData ( ) ; data . data ( retrieveData ) ; ApiSuccessResponse response = this . voiceA... |
public class IllegalMethodCallCheck { /** * Setter .
* @ param pIllegalMethodNames the list of method names to flag */
public void setIllegalMethodNames ( final String ... pIllegalMethodNames ) { } } | final Set < String > methodNames = new HashSet < > ( ) ; Collections . addAll ( methodNames , pIllegalMethodNames ) ; illegalMethodNames = methodNames ; |
public class SpaceAPI { /** * Adds a list of users ( either through user _ id or email ) to the space .
* @ param spaceId
* The id of the space
* @ param spaceMemberAdd
* Information about the user ( s ) to add */
public void addSpaceMembers ( int spaceId , SpaceMemberAdd spaceMemberAdd ) { } } | getResourceFactory ( ) . getApiResource ( "/space/" + spaceId + "/member/" ) . entity ( spaceMemberAdd , MediaType . APPLICATION_JSON_TYPE ) . post ( ) ; |
public class KeyDispatcher { /** * documentation inherited from interface WindowFocusListener */
public void windowLostFocus ( WindowEvent e ) { } } | // un - press any keys that were left down
if ( ! _downKeys . isEmpty ( ) ) { long now = System . currentTimeMillis ( ) ; for ( KeyEvent down : _downKeys . values ( ) ) { KeyEvent up = new KeyEvent ( down . getComponent ( ) , KeyEvent . KEY_RELEASED , now , down . getModifiers ( ) , down . getKeyCode ( ) , down . getKe... |
public class EndpointMethodHelper { /** * introspectPathParams
* @ param method */
public void introspectPathParams ( ) throws DeploymentException { } } | // Section 4.3 JSR 356 - The allowed types for the @ PathParam parameters are String , any Java primitive type , or boxed version thereof .
Class < ? > [ ] pathParamTypesAllowed = { String . class , char . class , Character . class , byte . class , Byte . class , short . class , Short . class , int . class , Integer . ... |
public class PhoneNumberAssociationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( PhoneNumberAssociation phoneNumberAssociation , ProtocolMarshaller protocolMarshaller ) { } } | if ( phoneNumberAssociation == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( phoneNumberAssociation . getValue ( ) , VALUE_BINDING ) ; protocolMarshaller . marshall ( phoneNumberAssociation . getName ( ) , NAME_BINDING ) ; protocolMarshall... |
public class HadoopConfigurationInjector { /** * Gets the path to the directory in which the generated links and Hadoop
* conf properties files are written .
* @ param props The Azkaban properties
* @ param workingDir The Azkaban job working directory */
public static String getPath ( Props props , String working... | return new File ( workingDir , getDirName ( props ) ) . toString ( ) ; |
public class Body { /** * Answer a { @ code byte [ ] } from { @ code body } bytes .
* @ param body the ByteBuffer
* @ return String */
private static byte [ ] bufferToArray ( final ByteBuffer body ) { } } | if ( body . position ( ) > 0 ) { body . flip ( ) ; } final int length = body . limit ( ) ; final byte [ ] bytes = new byte [ length ] ; System . arraycopy ( body . array ( ) , 0 , bytes , 0 , length ) ; return bytes ; |
public class UploadOfflineData { /** * Returns a new offline data object with the specified values . */
private static OfflineData createOfflineData ( DateTime transactionTime , long transactionMicroAmount , String transactionCurrency , String conversionName , List < UserIdentifier > userIdentifiers ) { } } | StoreSalesTransaction storeSalesTransaction = new StoreSalesTransaction ( ) ; // For times use the format yyyyMMdd HHmmss [ tz ] .
// For details , see
// https : / / developers . google . com / adwords / api / docs / appendix / codes - formats # date - and - time - formats
storeSalesTransaction . setTransactionTime ( ... |
public class ScriptEnvironmentManager { /** * Gets the scripting environment name given the script extension .
* @ param extension the scripting environment extension
* @ return the scripting environment name */
public String getEnvironmentNameForExtension ( String extension ) { } } | Preconditions . checkArgument ( StringUtils . isNotNullOrBlank ( extension ) , "Extension name cannot be null or empty" ) ; ScriptEngine engine = engineManager . getEngineByExtension ( extension ) ; Preconditions . checkArgument ( engine != null , extension + " is not a recognized scripting extension." ) ; return engin... |
public class MPP14Reader { /** * The project files to which external tasks relate appear not to be
* held against each task , instead there appears to be the concept
* of the " current " external task file , i . e . the last one used .
* This method iterates through the list of tasks marked as external
* and at... | // Sort the list of tasks into ID order
Collections . sort ( externalTasks ) ; // Find any external tasks which don ' t have a sub project
// object , and set this attribute using the most recent
// value .
SubProject currentSubProject = null ; for ( Task currentTask : externalTasks ) { SubProject sp = currentTask . ge... |
public class NullAway { /** * check that nullability annotations of an overriding method are consistent with those in the
* overridden method ( both return and parameters )
* @ param overriddenMethod method being overridden
* @ param overridingMethod overriding method
* @ param memberReferenceTree if override i... | final boolean isOverridenMethodUnannotated = NullabilityUtil . isUnannotated ( overriddenMethod , config ) ; final boolean overriddenMethodReturnsNonNull = ( ( isOverridenMethodUnannotated && handler . onUnannotatedInvocationGetExplicitlyNonNullReturn ( overriddenMethod , false ) ) || ( ! isOverridenMethodUnannotated &... |
import java . util . * ; class IsOddAtOddIndex { /** * This function checks if every odd index of the input list contains odd numbers .
* > > > is _ odd _ at _ odd _ index ( [ 2 , 1 , 4 , 3 , 6 , 7 , 6 , 3 ] )
* True
* > > > is _ odd _ at _ odd _ index ( [ 4 , 1 , 2 ] )
* True
* > > > is _ odd _ at _ odd _ in... | for ( int i = 1 ; i < numbers . size ( ) ; i += 2 ) { if ( numbers . get ( i ) % 2 == 0 ) { return false ; } } return true ; |
public class SMailHonestPostie { protected void prepareAsync ( Postcard postcard ) { } } | if ( asyncStrategy . alwaysAsync ( postcard ) && ! postcard . isAsync ( ) ) { logger . debug ( "...Calling async() automatically by strategy: {}" , asyncStrategy ) ; postcard . async ( ) ; } |
public class Matrix { /** * Repeat elements < code > rowRepeats < / code > times in row direction and < code > colRepeats < / code > times in column direction .
* @ param rowRepeats
* @ param colRepeats
* @ return a new matrix
* @ see IntMatrix # repelem ( int , int ) */
@ Override public Matrix < T > repelem (... | N . checkArgument ( rowRepeats > 0 && colRepeats > 0 , "rowRepeats=%s and colRepeats=%s must be bigger than 0" , rowRepeats , colRepeats ) ; final T [ ] [ ] c = N . newArray ( arrayType , rows * rowRepeats ) ; for ( int i = 0 , len = c . length ; i < len ; i ++ ) { c [ i ] = N . newArray ( componentType , cols * colRep... |
public class SpearmanCorrelation { /** * Estimates Spearman ' s Correlation for the provided data .
* @ param transposeDataList
* @ return */
public static double calculateCorrelation ( TransposeDataList transposeDataList ) { } } | Object [ ] keys = transposeDataList . keySet ( ) . toArray ( ) ; if ( keys . length != 2 ) { throw new IllegalArgumentException ( "The collection must contain observations from 2 groups." ) ; } Object keyX = keys [ 0 ] ; Object keyY = keys [ 1 ] ; FlatDataList flatDataListX = transposeDataList . get ( keyX ) . copy ( )... |
public class SwaggerController { /** * Serves the Swagger description of the REST API . As host , fills in the host where the controller
* lives . As options for the entity names , contains only those entity names that the user can
* actually see . */
@ GetMapping ( value = "/swagger.yml" , produces = "text/yaml" )... | response . setContentType ( "text/yaml" ) ; response . setCharacterEncoding ( "UTF-8" ) ; final UriComponents uriComponents = ServletUriComponentsBuilder . fromCurrentContextPath ( ) . build ( ) ; model . addAttribute ( "scheme" , uriComponents . getScheme ( ) ) ; String host = uriComponents . getHost ( ) ; if ( uriCom... |
public class ModuleTypeLoader { /** * Adds the type to the cache . */
private IType cacheType ( String name , Pair < IType , ITypeLoader > pair ) { } } | if ( pair != null ) { IType type = pair . getFirst ( ) ; // We have to make sure we aren ' t replacing an existing type so we obey the return from the put .
IType oldType = _typesByName . get ( name ) ; if ( oldType != null && oldType != CACHE_MISS ) { return oldType ; } _typesByName . add ( name , type ) ; ITypeLoader... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.