signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AbstractRStarTree { /** * Delete a leaf at a given path - deletions for non - leaves are not supported !
* @ param deletionPath Path to delete */
protected void deletePath ( IndexTreePath < E > deletionPath ) { } } | N leaf = getNode ( deletionPath . getParentPath ( ) . getEntry ( ) ) ; int index = deletionPath . getIndex ( ) ; // delete o
E entry = leaf . getEntry ( index ) ; leaf . deleteEntry ( index ) ; writeNode ( leaf ) ; // condense the tree
Stack < N > stack = new Stack < > ( ) ; condenseTree ( deletionPath . getParentPath ... |
public class AntBuilder { /** * Copied from org . apache . tools . ant . Task , since we need to get a real thing before it gets nulled in DispatchUtils . execute */
private Object performTask ( Task task ) { } } | Throwable reason = null ; try { // Have to call fireTestStared / fireTestFinished via reflection as they unfortunately have protected access in Project
final Method fireTaskStarted = Project . class . getDeclaredMethod ( "fireTaskStarted" , Task . class ) ; fireTaskStarted . setAccessible ( true ) ; fireTaskStarted . i... |
public class JsonPathLibrary { /** * Find JSON element by ` jsonPath ` from the ` source ` and check if the amount of found elements matches the given ` count ` .
* ` source ` can be either URI or the actual JSON content .
* You can add optional method ( ie GET , POST , PUT ) , data or content type as parameters . ... | boolean match = false ; System . out . println ( "*DEBUG* Reading jsonPath: " + jsonPath ) ; String json = requestUtil . readSource ( source , method , data , contentType ) ; List < Object > elements = null ; Object object = null ; try { object = JsonPath . read ( json , jsonPath ) ; } catch ( PathNotFoundException e )... |
public class ProductMarketplaceInfo { /** * Sets the additionalTermsSource value for this ProductMarketplaceInfo .
* @ param additionalTermsSource * Specifies the source of the { @ link # additionalTerms } value .
* To revert an overridden value to its default , set this field to { @ link
* ValueSourceType # PARE... | this . additionalTermsSource = additionalTermsSource ; |
public class TokenFilter { /** * Filters the given string , replacing any tokens with their corresponding
* values .
* @ param input
* The string to filter .
* @ return
* A copy of the input string , with any tokens replaced with their
* corresponding values . */
public String filter ( String input ) { } } | StringBuilder output = new StringBuilder ( ) ; Matcher tokenMatcher = tokenPattern . matcher ( input ) ; // Track last regex match
int endOfLastMatch = 0 ; // For each possible token
while ( tokenMatcher . find ( ) ) { // Pull possible leading text and first char before possible token
String literal = tokenMatcher . gr... |
public class WarUtils { /** * Adds the shiro filter to a web . xml file .
* @ param doc The xml DOM document to create the new xml elements with .
* @ param root The xml Element node to add the filter to . */
public static void addFilter ( Document doc , Element root ) { } } | Element filter = doc . createElement ( "filter" ) ; Element filterName = doc . createElement ( "filter-name" ) ; filterName . appendChild ( doc . createTextNode ( "ShiroFilter" ) ) ; filter . appendChild ( filterName ) ; Element filterClass = doc . createElement ( "filter-class" ) ; filterClass . appendChild ( doc . cr... |
public class DefaultExceptionFactory { /** * Create an { @ link LdapException } from an { @ link LdapResultCode } and message
* @ param resultCode the result code
* @ param message the exception message
* @ return a new LDAPException */
public static LdapException create ( LdapResultCode resultCode , String messa... | return new LdapException ( resultCode , message , null ) ; |
public class ReadableIntervalConverter { /** * Sets the values of the mutable duration from the specified interval .
* @ param writablePeriod the period to modify
* @ param object the interval to set from
* @ param chrono the chronology to use */
public void setInto ( ReadWritablePeriod writablePeriod , Object ob... | ReadableInterval interval = ( ReadableInterval ) object ; chrono = ( chrono != null ? chrono : DateTimeUtils . getIntervalChronology ( interval ) ) ; long start = interval . getStartMillis ( ) ; long end = interval . getEndMillis ( ) ; int [ ] values = chrono . get ( writablePeriod , start , end ) ; for ( int i = 0 ; i... |
public class ZipFileArtifactNotifier { /** * Validate change data , which is expected to be collections of files
* or collections of entry paths .
* Since the single root zip file is registered , the change is expected
* to be a single element in exactly one of the change collections .
* Null changes are unexpe... | boolean isAddition = ! added . isEmpty ( ) ; boolean isRemoval = ! removed . isEmpty ( ) ; boolean isUpdate = ! updated . isEmpty ( ) ; if ( ! isAddition && ! isRemoval && ! isUpdate ) { // Should never occur :
// Completely null changes are detected and cause an early return
// before reaching the validation method .
... |
public class CPFriendlyURLEntryPersistenceImpl { /** * Returns the number of cp friendly url entries where groupId = & # 63 ; and classNameId = & # 63 ; and classPK = & # 63 ; and languageId = & # 63 ; and main = & # 63 ; .
* @ param groupId the group ID
* @ param classNameId the class name ID
* @ param classPK t... | FinderPath finderPath = FINDER_PATH_COUNT_BY_G_C_C_L_M ; Object [ ] finderArgs = new Object [ ] { groupId , classNameId , classPK , languageId , main } ; Long count = ( Long ) finderCache . getResult ( finderPath , finderArgs , this ) ; if ( count == null ) { StringBundler query = new StringBundler ( 6 ) ; query . appe... |
public class ComplexImg { /** * Sets the real part at the specified position
* < br >
* If { @ link # isSynchronizePowerSpectrum ( ) } is true , then this will also
* update the corresponding power value .
* @ param x coordinate
* @ param y coordinate
* @ param value to be set */
public void setValueR ( int... | int idx = y * width + x ; setValueR_atIndex ( idx , value ) ; |
public class RSConfig { /** * Do not modify addRestResourceClasses ( ) method . It is automatically populated with all resources defined in the project . If required , comment out calling
* this method in getClasses ( ) . */
void addRestResourceClasses ( Set < Class < ? > > resources ) { } } | logger . info ( "Register ocelot resources..." ) ; for ( Object restEndpoint : restEndpoints ) { Class cls = unProxyClassServices . getRealClass ( restEndpoint . getClass ( ) ) ; logger . info ( "Register ocelot resource {}" , cls . getName ( ) ) ; resources . add ( cls ) ; } |
public class ProtocolDetectionResult { /** * Returns a { @ link ProtocolDetectionResult } which holds the detected protocol . */
@ SuppressWarnings ( "unchecked" ) public static < T > ProtocolDetectionResult < T > detected ( T protocol ) { } } | return new ProtocolDetectionResult < T > ( ProtocolDetectionState . DETECTED , checkNotNull ( protocol , "protocol" ) ) ; |
public class GetDetectorRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetDetectorRequest getDetectorRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getDetectorRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getDetectorRequest . getDetectorId ( ) , DETECTORID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . ... |
public class DenialOfServiceTaf { /** * Return of " True " means ID has was removed .
* Return of " False " means ID wasn ' t being denied .
* @ param ip
* @ return */
public static synchronized boolean removeDenyID ( String id ) { } } | if ( deniedID != null && deniedID . remove ( id ) != null ) { writeID ( ) ; if ( deniedID . isEmpty ( ) ) { deniedID = null ; } return true ; } return false ; |
public class FieldAccessor { /** * Copies field ' s value to the corresponding field in the specified object .
* Ignores static fields and fields that can ' t be modified reflectively .
* @ param to The object into which to copy the field .
* @ throws ReflectionException If the operation fails . */
public void co... | modify ( ( ) -> field . set ( to , field . get ( object ) ) , false ) ; |
public class Url { /** * Parses a cloudinary identifier of the form : < br >
* { @ code [ < resource _ type > / ] [ < image _ type > / ] [ v < version > / ] < public _ id > [ . < format > ] [ # < signature > ] } */
public Url fromIdentifier ( String identifier ) { } } | Matcher matcher = identifierPattern . matcher ( identifier ) ; if ( ! matcher . matches ( ) ) { throw new RuntimeException ( String . format ( "Couldn't parse identifier %s" , identifier ) ) ; } String resourceType = matcher . group ( 1 ) ; if ( resourceType != null ) { resourceType ( resourceType ) ; } String type = m... |
public class RelationshipJacksonSerializer { /** * < pre > compact :
* " id " : " 1337 " ,
* " source " : " / tenants / 28026b36-8fe4-4332-84c8-524e173a68bf " ,
* " name " : " contains " ,
* " target " : " 28026b36-8fe4-4332-84c8-524e173a68bf / environments / test "
* } < / pre >
* < pre > embedded :
* " ... | jg . writeStartObject ( ) ; jg . writeFieldName ( FIELD_ID ) ; jg . writeString ( relationship . getId ( ) ) ; jg . writeFieldName ( FIELD_NAME ) ; jg . writeString ( relationship . getName ( ) ) ; jg . writeFieldName ( FIELD_SOURCE ) ; jg . writeString ( relationship . getSource ( ) . toString ( ) ) ; jg . writeFieldN... |
public class ParseZonedDateTime { /** * { @ inheritDoc } */
@ Override protected ZonedDateTime parse ( final String string , final DateTimeFormatter formatter ) { } } | return ZonedDateTime . parse ( string , formatter ) ; |
public class SocketSystem { /** * Returns a unique identifying byte array for the server , generally
* the mac address . */
public byte [ ] getHardwareAddress ( ) { } } | if ( CurrentTime . isTest ( ) || System . getProperty ( "test.mac" ) != null ) { return new byte [ ] { 10 , 0 , 0 , 0 , 0 , 10 } ; } for ( NetworkInterfaceBase nic : getNetworkInterfaces ( ) ) { if ( ! nic . isLoopback ( ) ) { return nic . getHardwareAddress ( ) ; } } try { InetAddress localHost = InetAddress . getLoca... |
public class DataUtils { /** * Generates an artifact starting from gavc
* WARNING : use this method only if you have a missing reference in the database ! ! !
* @ param gavc
* @ return DbArtifact */
public static DbArtifact createDbArtifact ( final String gavc ) { } } | final DbArtifact artifact = new DbArtifact ( ) ; final String [ ] artifactInfo = gavc . split ( ":" ) ; if ( artifactInfo . length > 0 ) { artifact . setGroupId ( artifactInfo [ 0 ] ) ; } if ( artifactInfo . length > 1 ) { artifact . setArtifactId ( artifactInfo [ 1 ] ) ; } if ( artifactInfo . length > 2 ) { artifact .... |
public class AvatarNode { /** * Append service name to each avatar meta directory name
* @ param conf configuration of NameNode
* @ param serviceKey the non - empty name of the name node service */
public static void adjustMetaDirectoryNames ( Configuration conf , String serviceKey ) { } } | adjustMetaDirectoryName ( conf , DFS_SHARED_NAME_DIR0_KEY , serviceKey ) ; adjustMetaDirectoryName ( conf , DFS_SHARED_NAME_DIR1_KEY , serviceKey ) ; adjustMetaDirectoryName ( conf , DFS_SHARED_EDITS_DIR0_KEY , serviceKey ) ; adjustMetaDirectoryName ( conf , DFS_SHARED_EDITS_DIR1_KEY , serviceKey ) ; |
public class RedisInner { /** * Reboot specified Redis node ( s ) . This operation requires write permission to the cache resource . There can be potential data loss .
* @ param resourceGroupName The name of the resource group .
* @ param name The name of the Redis cache .
* @ param parameters Specifies which Red... | return forceRebootWithServiceResponseAsync ( resourceGroupName , name , parameters ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class DummyRPCServiceImpl { /** * { @ inheritDoc } */
public Object executeCommandOnCoordinator ( RemoteCommand command , boolean synchronous , Serializable ... args ) throws RPCException , SecurityException { } } | return executeCommand ( command , args ) ; |
public class RSAUtils { /** * Decrypt encrypted data with RSA private key , using { @ link # DEFAULT _ CIPHER _ TRANSFORMATION } .
* Note : if long data was encrypted using
* { @ link # encryptWithPublicKey ( byte [ ] , byte [ ] ) } , it will be correctly decrypted .
* @ param privateKeyData
* RSA private key d... | return decryptWithPrivateKey ( privateKeyData , encryptedData , DEFAULT_CIPHER_TRANSFORMATION ) ; |
public class TextFileCorpus { /** * Reads a single word from a file , assuming space + tab + EOL to be word boundaries
* @ param raf
* @ return null if EOF
* @ throws IOException */
String readWord ( BufferedReader raf ) throws IOException { } } | while ( true ) { // check the buffer first
if ( wbp < wordsBuffer . length ) { return wordsBuffer [ wbp ++ ] ; } String line = raf . readLine ( ) ; if ( line == null ) { // end of corpus
eoc = true ; return null ; } line = line . trim ( ) ; if ( line . length ( ) == 0 ) { continue ; } cache . writeInt ( - 3 ) ; // mark... |
public class OutboundChain { /** * This method analyzes the interfaces between the input array of
* inbound channels . If the interfaces between them match , implying they
* have the ability to form a chain , the method returns without exception .
* Otherwise , an IncoherentChainException is thrown describing the... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "verifyChainCoherency" ) ; } ChannelData [ ] channelDataArray = chainData . getChannelList ( ) ; // Verify there are multiple channels in this chain .
if ( channelDataArray . length > 1 ) { ChannelFrameworkImpl fw = ( Channel... |
public class DefaultDependencyResolver { /** * Adds all the transitive dependencies for a symbol to the provided list . The
* set is used to avoid adding dupes while keeping the correct order . NOTE :
* Use of a LinkedHashSet would require reversing the results to get correct
* dependency ordering . */
private vo... | DependencyInfo dependency = getDependencyInfo ( symbol ) ; if ( dependency == null ) { if ( this . strictRequires ) { throw new ServiceException ( "Unknown require of " + symbol ) ; } } else if ( ! seen . containsAll ( dependency . getProvides ( ) ) ) { seen . addAll ( dependency . getProvides ( ) ) ; for ( String requ... |
public class WeightedIntDiGraph { /** * Constructs a weighted directed graph with the same nodes and edges as
* the given unweighted graph */
public static WeightedIntDiGraph fromUnweighted ( IntDiGraph g , Function < DiEdge , Double > makeDefaultWeight ) { } } | WeightedIntDiGraph wg = new WeightedIntDiGraph ( makeDefaultWeight ) ; wg . addAll ( g ) ; return wg ; |
public class Bad { /** * Creates a Bad of type B .
* @ param < G > the success type of the Or
* @ param < B > the failure type of the Or
* @ param value the value of the Bad
* @ return an instance of Bad */
public static < G , B > Bad < G , B > of ( B value ) { } } | return new Bad < > ( value ) ; |
public class Value { /** * < code > string string _ value = 3 ; < / code > */
public java . lang . String getStringValue ( ) { } } | java . lang . Object ref = "" ; if ( typeCase_ == 3 ) { ref = type_ ; } if ( ref instanceof java . lang . String ) { return ( java . lang . String ) ref ; } else { com . google . protobuf . ByteString bs = ( com . google . protobuf . ByteString ) ref ; java . lang . String s = bs . toStringUtf8 ( ) ; if ( typeCase_ == ... |
public class TriggerDefinition { /** * Drop specified trigger from the schema using given mutation .
* @ param mutation The schema mutation
* @ param cfName The name of the parent ColumnFamily
* @ param timestamp The timestamp to use for the tombstone */
public void deleteFromSchema ( Mutation mutation , String c... | ColumnFamily cf = mutation . addOrGet ( SystemKeyspace . SCHEMA_TRIGGERS_CF ) ; int ldt = ( int ) ( System . currentTimeMillis ( ) / 1000 ) ; Composite prefix = CFMetaData . SchemaTriggersCf . comparator . make ( cfName , name ) ; cf . addAtom ( new RangeTombstone ( prefix , prefix . end ( ) , timestamp , ldt ) ) ; |
public class AmazonCloudFrontClient { /** * Get the configuration information about a distribution .
* @ param getDistributionConfigRequest
* The request to get a distribution configuration .
* @ return Result of the GetDistributionConfig operation returned by the service .
* @ throws NoSuchDistributionExceptio... | request = beforeClientExecution ( request ) ; return executeGetDistributionConfig ( request ) ; |
public class AmazonEC2Client { /** * Modifies the specified Spot Fleet request .
* While the Spot Fleet request is being modified , it is in the < code > modifying < / code > state .
* To scale up your Spot Fleet , increase its target capacity . The Spot Fleet launches the additional Spot Instances
* according to... | request = beforeClientExecution ( request ) ; return executeModifySpotFleetRequest ( request ) ; |
public class VirtualMachineScaleSetsInner { /** * Gets list of OS upgrades on a VM scale set instance .
* ServiceResponse < PageImpl1 < UpgradeOperationHistoricalStatusInfoInner > > * @ param resourceGroupName The name of the resource group .
* ServiceResponse < PageImpl1 < UpgradeOperationHistoricalStatusInfoInner... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( vmScaleSetName == null ) { throw new IllegalArgumentException ( "Parameter vmScaleSetName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == nul... |
public class URLClassPath { /** * Get the file extension of given fileName .
* @ return the file extension , or null if there is no file extension */
public static String getFileExtension ( String fileName ) { } } | int lastDot = fileName . lastIndexOf ( '.' ) ; return ( lastDot >= 0 ) ? fileName . substring ( lastDot ) : null ; |
public class CPDefinitionVirtualSettingUtil { /** * Returns the last cp definition virtual setting in the ordered set where uuid = & # 63 ; and companyId = & # 63 ; .
* @ param uuid the uuid
* @ param companyId the company ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > nul... | return getPersistence ( ) . fetchByUuid_C_Last ( uuid , companyId , orderByComparator ) ; |
public class ClientDatabase { /** * Get this property from the remote database .
* This does not make a remote call , it just return the property cached on remote db open .
* @ param strProperty The key to the remote property .
* @ return The value . */
public String getRemoteProperty ( String strProperty , boole... | if ( m_remoteProperties == null ) if ( readIfNotCached ) { try { this . getRemoteDatabase ( ) ; } catch ( RemoteException e ) { e . printStackTrace ( ) ; } } if ( m_remoteProperties != null ) return ( String ) m_remoteProperties . get ( strProperty ) ; return this . getFakeRemoteProperty ( strProperty ) ; |
public class SessionCsrfSecurityManager { /** * Generates a random String
* @ param length length of returned string
* @ param chars set of chars which will be using during random string generation
* @ return a random string with given length .
* @ throws IllegalArgumentException if ( length & lt ; 1 | | chars ... | if ( length < 1 ) throw new IllegalArgumentException ( "Invalid length: " + length ) ; if ( chars == null || chars . length == 0 ) throw new IllegalArgumentException ( "Null/Empty chars" ) ; StringBuilder sb = new StringBuilder ( ) ; Random random = new Random ( ) ; for ( int i = 0 ; i < length ; i ++ ) { char c = char... |
public class AndroidMobileCommandHelper { /** * This method forms a { @ link Map } of parameters for the element
* value replacement . It is used against input elements
* @ param gsmSignalStrength One of available GSM signal strength
* @ return a key - value pair . The key is the command name . The value is a { @... | return new AbstractMap . SimpleEntry < > ( GSM_SIGNAL , prepareArguments ( // https : / / github . com / appium / appium / issues / 12234
new String [ ] { "signalStrengh" , "signalStrength" } , new Object [ ] { gsmSignalStrength . ordinal ( ) , gsmSignalStrength . ordinal ( ) } ) ) ; |
public class Log4jLogQuery { @ Override public void logMessage ( LoggingEvent record ) { } } | if ( addMavenCoordinates ) { appendMavenCoordinates ( record ) ; } getEvents ( ) . add ( record ) ; |
public class MongoDBClient { /** * Parses the and scroll .
* @ param jsonClause
* the json clause
* @ param collectionName
* the collection name
* @ return the DB cursor
* @ throws JSONParseException
* the JSON parse exception */
private DBCursor parseAndScroll ( String jsonClause , String collectionName ... | BasicDBObject clause = ( BasicDBObject ) JSON . parse ( jsonClause ) ; DBCursor cursor = mongoDb . getCollection ( collectionName ) . find ( clause ) ; return cursor ; |
public class StreamEx { /** * Creates a new Stream which is the result of applying of the mapper
* { @ code BiFunction } to the first element of the current stream ( head ) and
* the stream containing the rest elements ( tail ) or supplier if the current
* stream is empty . The mapper or supplier may return { @ c... | HeadTailSpliterator < T , R > spliterator = new HeadTailSpliterator < > ( spliterator ( ) , mapper , supplier ) ; spliterator . context = context = context . detach ( ) ; return new StreamEx < > ( spliterator , context ) ; |
public class CompileCache { /** * Unconditionally compiles the template , but does not put it into the
* cache . This is useful for ( re ) compilations of a large number of template
* where keeping them for a build is not necessary .
* @ param tplfile
* absolute path of the file to compile
* @ return return a... | Task < CompileResult > task = createTask ( tplfile ) ; compiler . submit ( task ) ; return task ; |
public class LinkUtil { /** * Builds a mapped link to the path ( resource path ) with optional selectors and extension .
* @ param request the request context for path mapping ( the result is always mapped )
* @ param url the URL to use ( complete ) or the path to an addressed resource ( without any extension )
*... | // skip blank urls
if ( StringUtils . isBlank ( url ) ) { return url ; } // rebuild URL if not always external only
if ( ! isExternalUrl ( url ) ) { ResourceResolver resolver = request . getResourceResolver ( ) ; ResourceHandle resource = ResourceHandle . use ( resolver . getResource ( url ) ) ; // it ' s possible that... |
public class PlotCanvas { /** * Adds a label to this canvas . */
public void label ( String text , Font font , Color color , double ... coord ) { } } | Label label = new Label ( text , coord ) ; label . setFont ( font ) ; label . setColor ( color ) ; add ( label ) ; |
public class WeeklyAutoScalingSchedule { /** * The schedule for Thursday .
* @ param thursday
* The schedule for Thursday .
* @ return Returns a reference to this object so that method calls can be chained together . */
public WeeklyAutoScalingSchedule withThursday ( java . util . Map < String , String > thursday... | setThursday ( thursday ) ; return this ; |
public class Utils4J { /** * Creates a ZIP file and adds all files in a directory and all it ' s sub directories to the archive .
* @ param srcDir
* Directory to add - Cannot be < code > null < / code > and must be a valid directory .
* @ param destPath
* Path to use for the ZIP archive - May be < code > null <... | zipDir ( srcDir , null , destPath , destFile ) ; |
public class UnconditionalValueDerefAnalysis { /** * Check method call at given location to see if it unconditionally
* dereferences a parameter . Mark any such arguments as derefs .
* @ param location
* the Location of the method call
* @ param vnaFrame
* ValueNumberFrame at the Location
* @ param fact
*... | ConstantPoolGen constantPool = methodGen . getConstantPool ( ) ; for ( ValueNumber vn : checkUnconditionalDerefDatabase ( location , vnaFrame , constantPool , invDataflow . getFactAtLocation ( location ) , typeDataflow ) ) { fact . addDeref ( vn , location ) ; } |
public class TupleIndexHashTable { /** * We use this method to aviod to table lookups for the same hashcode ; which is what we would have to do if we did
* a get and then a create if the value is null . */
private TupleList getOrCreate ( final Tuple tuple ) { } } | final int hashCode = this . index . hashCodeOf ( tuple , left ) ; final int index = indexOf ( hashCode , this . table . length ) ; TupleList entry = ( TupleList ) this . table [ index ] ; // search to find an existing entry
while ( entry != null ) { if ( matches ( entry , tuple , hashCode , ! left ) ) { return entry ; ... |
public class JvmOperationImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setStrictFloatingPoint ( boolean newStrictFloatingPoint ) { } } | boolean oldStrictFloatingPoint = strictFloatingPoint ; strictFloatingPoint = newStrictFloatingPoint ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , TypesPackage . JVM_OPERATION__STRICT_FLOATING_POINT , oldStrictFloatingPoint , strictFloatingPoint ) ) ; |
public class CFTree { /** * Recursive insertion .
* @ param node Current node
* @ param nv Object data
* @ return New sibling , if the node was split . */
private TreeNode insert ( TreeNode node , NumberVector nv ) { } } | // Find closest child :
ClusteringFeature [ ] cfs = node . children ; assert ( cfs [ 0 ] != null ) : "Unexpected empty node!" ; // Find the best child :
ClusteringFeature best = cfs [ 0 ] ; double bestd = distance . squaredDistance ( nv , best ) ; for ( int i = 1 ; i < cfs . length ; i ++ ) { ClusteringFeature cf = cfs... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getTBM ( ) { } } | if ( tbmEClass == null ) { tbmEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 342 ) ; } return tbmEClass ; |
public class D6CrudInsertHelper { /** * Map model object properties to DB ( prepared statement )
* @ param mModelObj
* @ param preparedStatement
* @ throws D6Exception */
void map ( D6Model mModelObj , PreparedStatement preparedStatement , D6Inex includeExcludeColumnNames ) throws D6Exception { } } | log ( "#map obj=" + mModelObj ) ; final Set < String > columnNameSet = getAllColumnNames ( ) ; // index starts from 1
int parameterIndex = 1 ; if ( includeExcludeColumnNames != null ) { includeExcludeColumnNames . manipulate ( columnNameSet ) ; } for ( String columnName : columnNameSet ) { final D6ModelClassFieldInfo f... |
public class FeatureManagerBuilder { /** * Use the supplied feature enum classes for the feature manager . Same as calling { @ link # featureProvider ( FeatureProvider ) }
* with { @ link EnumBasedFeatureProvider } . Please note calling this method also set the name of the feature manager to the
* simple name of th... | this . featureProvider = new EnumBasedFeatureProvider ( featureEnum ) ; this . name = "FeatureManager[" + featureEnum [ 0 ] . getSimpleName ( ) + "]" ; return this ; |
public class ExecutionCompletionService { /** * { @ inheritDoc CompletionService }
* This future may safely be used as a NotifyingFuture if desired . This
* is because if it tries to set a listener it will be called immediately
* since the task has already been completed . */
public NotifyingFuture < V > poll ( l... | return completionQueue . poll ( timeout , unit ) ; |
public class DriverNode { /** * initialize driver node and all children of the node */
public void initialize ( ) { } } | thread = new Thread ( collectorProcessor ) ; thread . start ( ) ; for ( DriverNode dn : this . children ) { dn . initialize ( ) ; } |
public class DFSck { /** * To get the list , we need to call iteratively until the server says
* there is no more left . */
private Integer listCorruptFileBlocks ( String dir , int limit , String baseUrl ) throws IOException { } } | int errCode = - 1 ; int numCorrupt = 0 ; int cookie = 0 ; String lastBlock = null ; final String noCorruptLine = "has no CORRUPT files" ; final String noMoreCorruptLine = "has no more CORRUPT files" ; final String cookiePrefix = "Cookie:" ; boolean allDone = false ; while ( ! allDone ) { final StringBuffer url = new St... |
public class Http2ClientInitializer { /** * Configure the pipeline for a cleartext upgrade from HTTP to HTTP / 2. */
private void configureClearTextWithHttpUpgrade ( SocketChannel ch ) { } } | HttpClientCodec sourceCodec = new HttpClientCodec ( ) ; Http2ClientUpgradeCodec upgradeCodec = new Http2ClientUpgradeCodec ( connectionHandler ) ; HttpClientUpgradeHandler upgradeHandler = new HttpClientUpgradeHandler ( sourceCodec , upgradeCodec , 65536 ) ; ch . pipeline ( ) . addLast ( sourceCodec , upgradeHandler , ... |
public class DynamicArray { /** * Returns the index of the last occurrence of the specified element
* in this list , or - 1 if this list does not contain the element .
* More formally , returns the highest index < tt > i < / tt > such that
* < tt > ( o = = null & nbsp ; ? & nbsp ; get ( i ) = = null & nbsp ; : & ... | if ( o == null ) { for ( int i = size - 1 ; i >= 0 ; i -- ) if ( data [ i ] == null ) return i ; } else { for ( int i = size - 1 ; i >= 0 ; i -- ) if ( o . equals ( data [ i ] ) ) return i ; } return - 1 ; |
public class DCDs { /** * returns the result of evaluation equation 24 of an individual index
* @ param beta _ i the weight coefficent value
* @ param gN the g ' < sub > n < / sub > ( beta _ i ) value
* @ param gP the g ' < sub > p < / sub > ( beta _ i ) value
* @ param U the upper bound value obtained from { @... | // 6.2.2
double vi = 0 ; // Used as " other " value
if ( beta_i == 0 ) // if beta _ i = 0 . . .
{ // if beta _ i = 0 and g ' n ( beta _ i ) > = 0
if ( gN >= 0 ) vi = gN ; else if ( gP <= 0 ) // if beta _ i = 0 and g ' p ( beta _ i ) < = 0
vi = - gP ; } else // beta _ i is non zero
{ // Two cases
// if beta _ i in ( − U... |
public class UtilUnsafe { /** * Fetch the Unsafe . Use With Caution . */
public static Unsafe getUnsafe ( ) { } } | // Not on bootclasspath
if ( UtilUnsafe . class . getClassLoader ( ) == null ) return Unsafe . getUnsafe ( ) ; try { final Field fld = Unsafe . class . getDeclaredField ( "theUnsafe" ) ; fld . setAccessible ( true ) ; return ( Unsafe ) fld . get ( UtilUnsafe . class ) ; } catch ( Exception e ) { throw new RuntimeExcept... |
public class S3OutputLocationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( S3OutputLocation s3OutputLocation , ProtocolMarshaller protocolMarshaller ) { } } | if ( s3OutputLocation == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( s3OutputLocation . getOutputS3Region ( ) , OUTPUTS3REGION_BINDING ) ; protocolMarshaller . marshall ( s3OutputLocation . getOutputS3BucketName ( ) , OUTPUTS3BUCKETNAME_... |
public class AnnivMaster { /** * Set up the screen input fields . */
public void setupFields ( ) { } } | FieldInfo field = null ; field = new FieldInfo ( this , ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setDataClass ( Integer . class ) ; field . setHidden ( true ) ; field = new FieldInfo ( this , LAST_CHANGED , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setDataClass ( Date . class ) ;... |
public class ForgeVM { /** * Put the VM in the ready state iff
* it does not already belong to the mapping .
* @ param m the model to modify
* @ return { @ code true } iff successful */
@ Override public boolean applyAction ( Model m ) { } } | Mapping map = m . getMapping ( ) ; if ( ! map . contains ( id ) ) { map . addReadyVM ( id ) ; return true ; } return false ; |
public class FileSupport { /** * Locates a file in the classpath .
* @ param fileName
* @ param classPath
* @ return the found file or null if the file can not be located */
public static File getFileFromDirectoryInClassPath ( String fileName , String classPath ) { } } | Collection < String > paths = StringSupport . split ( classPath , ";:" , false ) ; for ( String singlePath : paths ) { File dir = new File ( singlePath ) ; if ( dir . isDirectory ( ) ) { File file = new File ( singlePath + '/' + fileName ) ; if ( file . exists ( ) ) { return file ; } } } return null ; |
public class Deadline { /** * Deadline . after ( - 100 * 365 , DAYS ) */
public Deadline offset ( long offset , TimeUnit units ) { } } | // May already be expired
if ( offset == 0 ) { return this ; } return new Deadline ( ticker , deadlineNanos , units . toNanos ( offset ) , isExpired ( ) ) ; |
public class PluginRepositoryUtil { /** * Loads a full repository definition from an XML file .
* @ param repo
* The repository that must be loaded
* @ param cl
* The classloader to be used to instantiate the plugin classes
* @ param in
* The stream to the XML file
* @ throws PluginConfigurationException ... | for ( PluginDefinition pd : loadFromXmlPluginPackageDefinitions ( cl , in ) ) { repo . addPluginDefinition ( pd ) ; } |
public class ZoneId { /** * Parses the ID , taking a flag to indicate whether { @ code ZoneRulesException }
* should be thrown or not , used in deserialization .
* @ param zoneId the time - zone ID , not null
* @ param checkAvailable whether to check if the zone ID is available
* @ return the zone ID , not null... | Objects . requireNonNull ( zoneId , "zoneId" ) ; if ( zoneId . length ( ) <= 1 || zoneId . startsWith ( "+" ) || zoneId . startsWith ( "-" ) ) { return ZoneOffset . of ( zoneId ) ; } else if ( zoneId . startsWith ( "UTC" ) || zoneId . startsWith ( "GMT" ) ) { return ofWithPrefix ( zoneId , 3 , checkAvailable ) ; } else... |
public class RecurringData { /** * Calculate start dates for a monthly absolute recurrence .
* @ param calendar current date
* @ param frequency frequency
* @ param dates array of start dates */
private void getMonthlyAbsoluteDates ( Calendar calendar , int frequency , List < Date > dates ) { } } | int currentDayNumber = calendar . get ( Calendar . DAY_OF_MONTH ) ; calendar . set ( Calendar . DAY_OF_MONTH , 1 ) ; int requiredDayNumber = NumberHelper . getInt ( m_dayNumber ) ; if ( requiredDayNumber < currentDayNumber ) { calendar . add ( Calendar . MONTH , 1 ) ; } while ( moreDates ( calendar , dates ) ) { int us... |
public class SeekBarPreference { /** * Obtains the summaries , which are shown depending on the currently persisted value , from a
* specific typed array .
* @ param typedArray
* The typed array , the summaries should be obtained from , as an instance of the class
* { @ link TypedArray } . The typed array may n... | try { setSummaries ( typedArray . getTextArray ( R . styleable . SeekBarPreference_android_summary ) ) ; } catch ( Resources . NotFoundException e ) { setSummaries ( null ) ; } |
public class UserDaoImpl { /** * Rotate the primary access key - > secondary access key , dropping the old secondary access key and generating a new primary access key
* @ param id */
@ Transactional public void rotateUserAccessKey ( final int id ) { } } | final UserEntity account = getById ( id ) ; if ( account != null ) { // Set the secondary token to the old primary token
account . setAccessKeySecondary ( account . getAccessKey ( ) ) ; // Now regenerate the primary token
account . setAccessKey ( SimpleId . alphanumeric ( UserManagerBearerToken . PREFIX , 100 ) ) ; upd... |
public class BasicFlowletContext { /** * Create a new { @ link TransactionContext } for this flowlet . Add all { @ link TransactionAware } s to the context .
* @ return a new TransactionContext . */
public TransactionContext createTransactionContext ( ) { } } | transactionContext = dataFabricFacade . createTransactionManager ( ) ; for ( TransactionAware transactionAware : transactionAwares ) { this . transactionContext . addTransactionAware ( transactionAware ) ; } return transactionContext ; |
public class PairSet { /** * Gets the < code > i < / code > < sup > th < / sup > element of the set
* @ param index
* position of the element in the sorted set
* @ return the < code > i < / code > < sup > th < / sup > element of the set
* @ throws IndexOutOfBoundsException
* if < code > i < / code > is less t... | return indexToPair ( matrix . get ( index ) ) ; |
public class AppServicePlansInner { /** * Get a Virtual Network gateway .
* Get a Virtual Network gateway .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param name Name of the App Service plan .
* @ param vnetName Name of the Virtual Network .
* @ param gatewayNam... | if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( name == null ) { throw new IllegalArgumentException ( "Parameter name is required and cannot be null." ) ; } if ( vnetName == null ) { throw new IllegalArgumentException ( "Pa... |
public class DocumentRootImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case BpsimPackage . DOCUMENT_ROOT__MIXED : getMixed ( ) . clear ( ) ; return ; case BpsimPackage . DOCUMENT_ROOT__XMLNS_PREFIX_MAP : getXMLNSPrefixMap ( ) . clear ( ) ; return ; case BpsimPackage . DOCUMENT_ROOT__XSI_SCHEMA_LOCATION : getXSISchemaLocation ( ) . clear ( ) ; return ; case BpsimPack... |
public class ByteBufFlux { /** * Open a { @ link java . nio . channels . FileChannel } from a path and stream
* { @ link ByteBuf } chunks with a given maximum size into the returned
* { @ link ByteBufFlux } , using the provided { @ link ByteBufAllocator } .
* @ param path the path to the resource to stream
* @ ... | Objects . requireNonNull ( path , "path" ) ; Objects . requireNonNull ( allocator , "allocator" ) ; if ( maxChunkSize < 1 ) { throw new IllegalArgumentException ( "chunk size must be strictly positive, " + "was: " + maxChunkSize ) ; } return new ByteBufFlux ( Flux . generate ( ( ) -> FileChannel . open ( path ) , ( fc ... |
public class HttpServer { private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { } } | in . defaultReadObject ( ) ; HttpListener [ ] listeners = getListeners ( ) ; HttpContext [ ] contexts = getContexts ( ) ; _listeners . clear ( ) ; _virtualHostMap . clear ( ) ; setContexts ( contexts ) ; setListeners ( listeners ) ; _statsLock = new Object [ 0 ] ; |
public class Task { /** * Inserts a child task prior to a given sibling task .
* @ param child new child task
* @ param previousSibling sibling task */
public void addChildTaskBefore ( Task child , Task previousSibling ) { } } | int index = m_children . indexOf ( previousSibling ) ; if ( index == - 1 ) { m_children . add ( child ) ; } else { m_children . add ( index , child ) ; } child . m_parent = this ; setSummary ( true ) ; if ( getParentFile ( ) . getProjectConfig ( ) . getAutoOutlineLevel ( ) == true ) { child . setOutlineLevel ( Integer ... |
public class Performance { /** * Writes log information .
* @ param startTimeMs the start time in milliseconds
* @ param times the number of the iteration
* @ param msg the message
* @ param workerId the id of the worker */
public static void logPerIteration ( long startTimeMs , int times , String msg , int wor... | long takenTimeMs = System . currentTimeMillis ( ) - startTimeMs ; double result = 1000.0 * sFileBytes / takenTimeMs / 1024 / 1024 ; LOG . info ( times + msg + workerId + " : " + result + " Mb/sec. Took " + takenTimeMs + " ms. " ) ; |
public class PmiDataInfo { /** * Creates a copy of this object
* @ return a copy of this object */
public PmiDataInfo copy ( ) { } } | PmiDataInfo r = new PmiDataInfo ( id ) ; // name is translatable
if ( name != null ) r . name = new String ( name ) ; // description is translatable
if ( description != null ) r . description = new String ( description ) ; // unit is translatable
if ( unit != null ) r . unit = new String ( unit ) ; r . category = categ... |
public class DSLSAMLAuthenticationProvider { /** * Logger for SAML events , cannot be null , must be set .
* @ param samlLogger logger */
@ Override @ Autowired ( required = false ) public void setSamlLogger ( SAMLLogger samlLogger ) { } } | Assert . notNull ( samlLogger , "SAMLLogger can't be null" ) ; this . samlLogger = samlLogger ; |
public class ConfigPropertyBean { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public T create ( CreationalContext < T > creationalContext ) { } } | InjectionPoint injectionPoint = getInjectionPoint ( beanManager , creationalContext ) ; // Note the config is cached per thread context class loader
// This shouldn ' t matter though as the config object is updated with values dynamically
// Also means that injecting config does things the same way as calling ` getConf... |
public class MPPUtility { /** * This method reads an eight byte double from the input array .
* @ param data the input array
* @ param offset offset of double data in the array
* @ return double value */
public static final double getDouble ( byte [ ] data , int offset ) { } } | double result = Double . longBitsToDouble ( getLong ( data , offset ) ) ; if ( Double . isNaN ( result ) ) { result = 0 ; } return result ; |
public class AbstractIntSet { /** * Add all of the values in the supplied array to the set .
* @ param values elements to be added to this set .
* @ return < tt > true < / tt > if this set did not already contain all of the specified elements . */
public boolean add ( int [ ] values ) { } } | boolean modified = false ; int vlength = values . length ; for ( int i = 0 ; i < vlength ; i ++ ) { modified = ( add ( values [ i ] ) || modified ) ; } return modified ; |
public class DefaultCacheManager { /** * { @ inheritDoc } */
@ Override public List < Address > getMembers ( ) { } } | Transport t = getTransport ( ) ; return t == null ? null : t . getMembers ( ) ; |
public class ReflectionUtils { /** * < p > setSystemOutputs . < / p >
* @ param classLoader a { @ link java . lang . ClassLoader } object .
* @ param out a { @ link java . io . PrintStream } object .
* @ param err a { @ link java . io . PrintStream } object .
* @ throws java . lang . Exception if any . */
publi... | Class < ? > systemClass = classLoader . loadClass ( "java.lang.System" ) ; Method setSystemOutMethod = systemClass . getMethod ( "setOut" , PrintStream . class ) ; setSystemOutMethod . invoke ( null , out ) ; Method setSystemErrMethod = systemClass . getMethod ( "setErr" , PrintStream . class ) ; setSystemErrMethod . i... |
public class DividableGridAdapter { /** * Sets the width of the bottom sheet , the items , which are displayed by the adapter , belong
* to .
* @ param width
* The width , which should be set , as an { @ link Integer } value */
public final void setWidth ( final int width ) { } } | if ( style == Style . LIST_COLUMNS && ( getDeviceType ( context ) == DeviceType . TABLET || getOrientation ( context ) == Orientation . LANDSCAPE ) ) { columnCount = 2 ; } else if ( style == Style . GRID ) { int padding = context . getResources ( ) . getDimensionPixelSize ( R . dimen . bottom_sheet_grid_item_horizontal... |
public class Tesseract1 { /** * Performs OCR operation . Use < code > SetImage < / code > , ( optionally )
* < code > SetRectangle < / code > , and one or more of the < code > Get * Text < / code >
* functions .
* @ param xsize width of image
* @ param ysize height of image
* @ param buf pixel data
* @ para... | return doOCR ( xsize , ysize , buf , null , rect , bpp ) ; |
public class XMLHelper { /** * Helper program : Extracts the specified XPATH expression
* from an XML - String .
* @ param node the node
* @ param xPath the x path
* @ return NodeList
* @ throws XPathExpressionException the x path expression exception */
public static NodeList getElementsB ( Node node , XPath... | return ( NodeList ) xPath . evaluate ( node , XPathConstants . NODESET ) ; |
public class XMLParser { /** * / * ( non - Javadoc )
* @ see com . abubusoft . kripton . xml . XmlPullParser # setProperty ( java . lang . String , java . lang . Object ) */
@ Override public void setProperty ( String property , Object value ) { } } | if ( property . equals ( PROPERTY_LOCATION ) ) { location = String . valueOf ( value ) ; } else { throw new KriptonRuntimeException ( "unsupported property: " + property ) ; } |
public class Wootric { /** * It configures the SDK with required parameters .
* @ param activity Activity where the survey will be presented .
* @ param clientId Found in API section of the Wootric ' s admin panel .
* @ param accountToken Found in Install section of the Wootric ' s admin panel . */
public static ... | Wootric local = singleton ; if ( local == null ) { synchronized ( Wootric . class ) { local = singleton ; if ( local == null ) { checkNotNull ( activity , "Activity" ) ; checkNotNull ( clientId , "Client Id" ) ; checkNotNull ( accountToken , "Account Token" ) ; singleton = local = new Wootric ( activity , clientId , ac... |
public class AbstractWSelectList { /** * Retrieves the code for the given option . Will return null if there is no matching option .
* @ param option the option
* @ param index the index of the option in the list .
* @ return the code for the given option , or null if there is no matching option . */
protected St... | if ( index < 0 ) { List < ? > options = getOptions ( ) ; if ( options == null || options . isEmpty ( ) ) { Integrity . issue ( this , "No options available, so cannot convert the option \"" + option + "\" to a code." ) ; } else { StringBuffer message = new StringBuffer ( ) ; message . append ( "The option \"" ) . appen... |
public class COF { /** * Computes the average chaining distance , the average length of a path
* through the given set of points to each target . The authors of COF decided
* to approximate this value using a weighted mean that assumes every object
* is reached from the previous point ( but actually every point c... | FiniteProgress lrdsProgress = LOG . isVerbose ( ) ? new FiniteProgress ( "Computing average chaining distances" , ids . size ( ) , LOG ) : null ; // Compute the chaining distances .
// We do < i > not < / i > bother to materialize the chaining order .
for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . adv... |
public class YggdrasilAuthenticator { /** * Tries refreshing the current session .
* This method will try refreshing the token . If YggdrasilAuthenticator
* failed to refresh , it will call { @ link # tryPasswordLogin ( ) } to ask the
* password for authentication . If no password is available , an
* { @ link A... | if ( authResult == null ) { // refresh operation is not available
PasswordProvider passwordProvider = tryPasswordLogin ( ) ; if ( passwordProvider == null ) { throw new AuthenticationException ( "no more authentication methods to try" ) ; } else { refreshWithPassword ( passwordProvider ) ; } } else { try { refreshWithT... |
public class CastOther { /** * final public static Method TO _ EXCEL = new Method ( " toExcel " , Types . EXCEL , new
* Type [ ] { Types . OBJECT } ) ; */
@ Override public Type _writeOut ( BytecodeContext bc , int mode ) throws TransformerException { } } | // Caster . toDecimal ( null ) ;
GeneratorAdapter adapter = bc . getAdapter ( ) ; char first = lcType . charAt ( 0 ) ; Type rtn ; switch ( first ) { case 'a' : if ( "array" . equals ( lcType ) ) { rtn = expr . writeOutAsType ( bc , MODE_REF ) ; if ( ! rtn . equals ( Types . ARRAY ) ) adapter . invokeStatic ( Types . CA... |
public class Client { /** * Get a connection from the pool , or create a new one and add it to the
* pool . Connections to a given host / port are reused . */
private Connection getConnection ( InetSocketAddress addr , Class < ? > protocol , Call call ) throws IOException { } } | if ( ! running . get ( ) ) { // the client is stopped
throw new IOException ( "The client is stopped" ) ; } Connection connection ; /* * we could avoid this allocation for each RPC by having a
* connectionsId object and with set ( ) method . We need to manage the
* refs for keys in HashMap properly . For now its ok... |
public class AbstractStyleRepeatedWordRule { /** * get synonyms for a repeated word */
public List < String > getSynonyms ( AnalyzedTokenReadings token ) { } } | List < String > synonyms = new ArrayList < String > ( ) ; if ( linguServices == null || token == null ) { return synonyms ; } List < AnalyzedToken > readings = token . getReadings ( ) ; for ( AnalyzedToken reading : readings ) { String lemma = reading . getLemma ( ) ; if ( lemma != null ) { List < String > rawSynonyms ... |
public class AbstractSemanticSequencer { /** * TODO : deprecate this method */
protected ISerializationContext createContext ( EObject deprecatedContext , EObject semanticObject ) { } } | return SerializationContext . fromEObject ( deprecatedContext , semanticObject ) ; |
public class WebSocketSerializer { /** * Serialize the Protocol to JSON String .
* @ param header
* the ProtocolHeader .
* @ param protocol
* the Protocol .
* @ return
* the JSON String .
* @ throws JsonGenerationException
* @ throws JsonMappingException
* @ throws IOException */
private static String... | ProtocolPair p = new ProtocolPair ( ) ; p . setProtocolHeader ( header ) ; if ( protocol == null ) { p . setType ( null ) ; } else { p . setType ( protocol . getClass ( ) ) ; } p . setProtocol ( toJsonStr ( protocol ) ) ; return toJsonStr ( p ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.