signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class FogbugzManager { /** * Fetches the XML from the Fogbugz API and returns a Document object * with the response XML in it , so we can use that . */ private Document getFogbugzDocument ( Map < String , String > parameters ) throws IOException , ParserConfigurationException , SAXException { } }
URL uri = new URL ( this . mapToFogbugzUrl ( parameters ) ) ; HttpURLConnection con = ( HttpURLConnection ) uri . openConnection ( ) ; DocumentBuilderFactory dbFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder dBuilder = dbFactory . newDocumentBuilder ( ) ; return dBuilder . parse ( con . getInputStr...
public class Cache { /** * Find the specified key in the cache ; the object is returned without * an additional pin . If there is no object in the cache with the * specified key , the < code > FaultStrategy < / code > , if installed , is * invoked . < p > * If the returned object were previously pinned , it wil...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "findAndFault" , key ) ; Bucket bucket = getOrCreateBucketForKey ( key ) ; // d739870 Element element ; Object object = null ; synchronized ( bucket ) { element = bucket . findByKey ( key ) ; if ( element != null ) { // We foun...
public class MappableJournalSegmentWriter { /** * Maps the segment writer into memory , returning the mapped buffer . * @ return the buffer that was mapped into memory */ MappedByteBuffer map ( ) { } }
if ( writer instanceof MappedJournalSegmentWriter ) { return ( ( MappedJournalSegmentWriter < E > ) writer ) . buffer ( ) ; } try { JournalWriter < E > writer = this . writer ; MappedByteBuffer buffer = channel . map ( FileChannel . MapMode . READ_WRITE , 0 , segment . descriptor ( ) . maxSegmentSize ( ) ) ; this . wri...
public class MXBeanUtil { /** * UnRegisters the mxbean if registered already . * @ param cacheManagerName name generated by URI and classloader . * @ param name cache name . * @ param stats is mxbean , a statistics mxbean . */ public static void unregisterCacheObject ( String cacheManagerName , String name , bool...
synchronized ( mBeanServer ) { ObjectName objectName = calculateObjectName ( cacheManagerName , name , stats ) ; Set < ObjectName > registeredObjectNames = mBeanServer . queryNames ( objectName , null ) ; if ( isRegistered ( cacheManagerName , name , stats ) ) { // should just be one for ( ObjectName registeredObjectNa...
public class SphereUtil { /** * Use cosine or haversine dynamically . * Complexity : 4-5 trigonometric functions , 1 sqrt . * @ param lat1 Latitude of first point in degree * @ param lon1 Longitude of first point in degree * @ param lat2 Latitude of second point in degree * @ param lon2 Longitude of second po...
return cosineOrHaversineRad ( deg2rad ( lat1 ) , deg2rad ( lon1 ) , deg2rad ( lat2 ) , deg2rad ( lon2 ) ) ;
public class LongTermRetentionBackupsInner { /** * Lists the long term retention backups for a given server . * @ param locationName The location of the database * @ param longTermRetentionServerName the String value * @ param onlyLatestPerDatabase Whether or not to only get the latest backup for each database . ...
return listByServerSinglePageAsync ( locationName , longTermRetentionServerName , onlyLatestPerDatabase , databaseState ) . concatMap ( new Func1 < ServiceResponse < Page < LongTermRetentionBackupInner > > , Observable < ServiceResponse < Page < LongTermRetentionBackupInner > > > > ( ) { @ Override public Observable < ...
public class CipherUtil { /** * Converts a time to timestamp format . * @ param time Time to convert , or null for current time . * @ return Time in timestamp format . */ public static String getTimestamp ( Date time ) { } }
return getTimestampFormatter ( ) . format ( time == null ? new Date ( ) : time ) ;
public class PROXY { /** * Find the method for a target of its parent * @ param objClass the object class * @ param methodName the method name * @ param parameterTypes the method parameter types * @ return the method * @ throws NoSuchMethodException */ public static Method findMethod ( Class < ? > objClass , ...
try { return objClass . getDeclaredMethod ( methodName , parameterTypes ) ; } catch ( NoSuchMethodException e ) { if ( Object . class . equals ( objClass ) ) throw e ; try { // try super return findMethod ( objClass . getSuperclass ( ) , methodName , parameterTypes ) ; } catch ( NoSuchMethodException parentException ) ...
public class LdapHelper { /** * Load all Users for a given Group . * @ param group the given Group . * @ return Users as a Set of Nodes for that Group . */ @ Override public Set < Node > getUsersForGroup ( Node group ) { } }
Set < Node > users = new TreeSet < > ( ) ; try { String query = "(" + groupIdentifyer + "=" + group . getName ( ) + ")" ; SearchResult searchResult ; Attributes attributes ; SearchControls controls = new SearchControls ( ) ; controls . setSearchScope ( SearchControls . SUBTREE_SCOPE ) ; NamingEnumeration < SearchResult...
public class XlsUtil { /** * 导出list对象到excel * @ param config 配置 * @ param list 导出的list * @ param filePath 保存xls路径 * @ param fileName 保存xls文件名 * @ return 处理结果 , true成功 , false失败 * @ throws Exception */ public static boolean list2Xls ( ExcelConfig config , List < ? > list , String filePath , String fileName )...
// 创建目录 File file = new File ( filePath ) ; if ( ! ( file . exists ( ) ) ) { if ( ! file . mkdirs ( ) ) { throw new RuntimeException ( "创建导出目录失败!" ) ; } } OutputStream outputStream = null ; try { if ( ! fileName . toLowerCase ( ) . endsWith ( EXCEL ) ) { fileName += EXCEL ; } File excelFile = new File ( filePath + "/" ...
public class ManagementClientImpl { /** * / * ( non - Javadoc ) * @ see tuwien . auto . calimero . mgmt . ManagementClient # writeDomainAddress ( byte [ ] ) */ public void writeDomainAddress ( byte [ ] domain ) throws KNXTimeoutException , KNXLinkClosedException { } }
if ( domain . length != 2 && domain . length != 6 ) throw new KNXIllegalArgumentException ( "invalid length of domain address" ) ; tl . broadcast ( true , priority , DataUnitBuilder . createAPDU ( DOA_WRITE , domain ) ) ;
public class N { /** * Removes the first occurrence of the specified element from the specified * array . All subsequent elements are shifted to the left ( subtracts one * from their indices ) . If the array doesn ' t contains such an element , no * elements are removed from the array . * This method returns a ...
if ( N . isNullOrEmpty ( a ) ) { return N . EMPTY_BYTE_ARRAY ; } int index = indexOf ( a , 0 , element ) ; return index == INDEX_NOT_FOUND ? a . clone ( ) : delete ( a , index ) ;
public class FeatureSearch { private void buildUI ( ) { } }
// Create the layout : VLayout layout = new VLayout ( ) ; layout . setWidth100 ( ) ; layout . setHeight100 ( ) ; logicalOperatorRadio = new RadioGroupItem ( "logicalOperator" ) ; logicalOperatorRadio . setValueMap ( I18nProvider . getSearch ( ) . radioOperatorOr ( ) , I18nProvider . getSearch ( ) . radioOperatorAnd ( )...
public class DynamicArray { /** * Removes all of the elements from this list . The list will * be empty after this call returns . */ public void clear ( ) { } }
modCount ++ ; // Let gc do its work for ( int i = 0 ; i < size ; i ++ ) data [ i ] = null ; size = 0 ;
public class GenericClientFactory { /** * Load client metadata . * @ param puProperties */ protected void loadClientMetadata ( Map < String , Object > puProperties ) { } }
clientMetadata = new ClientMetadata ( ) ; String luceneDirectoryPath = puProperties != null ? ( String ) puProperties . get ( PersistenceProperties . KUNDERA_INDEX_HOME_DIR ) : null ; String indexerClass = puProperties != null ? ( String ) puProperties . get ( PersistenceProperties . KUNDERA_INDEXER_CLASS ) : null ; St...
public class OdsFileWriterAdapter { /** * Flushes all available flushers to the adaptee writer . * The thread falls asleep if we reach the end of the queue without a FinalizeFlusher . * @ throws IOException if the adaptee throws an IOException */ public synchronized void flushAdaptee ( ) throws IOException { } }
OdsFlusher flusher = this . flushers . poll ( ) ; if ( flusher == null ) return ; while ( flusher != null ) { this . adaptee . update ( flusher ) ; if ( flusher . isEnd ( ) ) { this . stopped = true ; this . notifyAll ( ) ; // wakes up other threads : end of game return ; } flusher = this . flushers . poll ( ) ; } try ...
public class Utils { /** * Writes the contents of source to target without mutating source ( so safe for * multithreaded access to source ) and without GC ( unless source is a direct buffer ) . */ public static void putByteBuffer ( ByteBuffer source , ByteBuffer target ) { } }
if ( source . hasArray ( ) ) { byte [ ] array = source . array ( ) ; int arrayOffset = source . arrayOffset ( ) ; target . put ( array , arrayOffset + source . position ( ) , source . remaining ( ) ) ; } else { target . put ( source . duplicate ( ) ) ; }
public class AssetAttributes { /** * An array of the network interfaces interacting with the EC2 instance where the finding is generated . * @ param networkInterfaces * An array of the network interfaces interacting with the EC2 instance where the finding is generated . */ public void setNetworkInterfaces ( java . ...
if ( networkInterfaces == null ) { this . networkInterfaces = null ; return ; } this . networkInterfaces = new java . util . ArrayList < NetworkInterface > ( networkInterfaces ) ;
public class ECPImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eSet ( int featureID , Object newValue ) { } }
switch ( featureID ) { case AfplibPackage . ECP__RS_NAME : setRSName ( ( String ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ;
public class MapWidget { /** * Return the Object that represents one the default RenderGroups in the DOM tree when drawing . * @ param group * The general group definition ( RenderGroup . SCREEN , RenderGroup . WORLD , . . . ) * @ return paintable group */ public PaintableGroup getGroup ( RenderGroup group ) { } ...
switch ( group ) { case RASTER : return rasterGroup ; case VECTOR : return vectorGroup ; case WORLD : return worldGroup ; case SCREEN : default : return screenGroup ; }
public class AWSLogsClient { /** * Creates or updates a subscription filter and associates it with the specified log group . Subscription filters * allow you to subscribe to a real - time stream of log events ingested through < a > PutLogEvents < / a > and have them * delivered to a specific destination . Currently...
request = beforeClientExecution ( request ) ; return executePutSubscriptionFilter ( request ) ;
public class FXBindableASTTransformation { /** * Creates a new PropertyNode for the JavaFX property based on the original property . The new property * will have " Property " appended to its name and its type will be one of the * Property types in JavaFX . * @ param orig The original property * @ return A new Pro...
ClassNode origType = orig . getType ( ) ; ClassNode newType = PROPERTY_TYPE_MAP . get ( origType ) ; // For the ObjectProperty , we need to add the generic type to it . if ( newType == null ) { if ( isTypeCompatible ( ClassHelper . LIST_TYPE , origType ) || isTypeCompatible ( OBSERVABLE_LIST_CNODE , origType ) ) { newT...
public class DetectorImpl { /** * Searches DTMF tone . * @ param f the low frequency array * @ param F the high frequency array . * @ return DTMF tone . */ private String getTone ( double f [ ] , double F [ ] ) { } }
int fm = getMax ( f ) ; boolean fd = true ; for ( int i = 0 ; i < f . length ; i ++ ) { if ( fm == i ) { continue ; } double r = f [ fm ] / ( f [ i ] + 1E-15 ) ; if ( r < threshold ) { fd = false ; break ; } } if ( ! fd ) { return null ; } int Fm = getMax ( F ) ; boolean Fd = true ; for ( int i = 0 ; i < F . length ; i...
public class SrvTradingSettings { /** * < p > Save entity into DB . < / p > * @ param pAddParam additional param * @ param pEntity entity * @ throws Exception - an exception */ @ Override public final synchronized void saveTradingSettings ( final Map < String , Object > pAddParam , final TradingSettings pEntity )...
if ( pEntity . getIsNew ( ) ) { throw new ExceptionWithCode ( ExceptionWithCode . FORBIDDEN , "insert_not_allowed::" + pAddParam . get ( "user" ) ) ; } else if ( pEntity . getItsId ( ) != 1L ) { throw new ExceptionWithCode ( ExceptionWithCode . FORBIDDEN , "id_not_allowed::" + pAddParam . get ( "user" ) ) ; } else { ge...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Dictionary } { @ code > } } */ @ XmlElementDecl ( namespace = PROV_NS , name = "dictionary" ) public JAXBElement < Dictionary > createDictionary ( Dictionary value ) { } }
return new JAXBElement < Dictionary > ( _Dictionary_QNAME , Dictionary . class , null , value ) ;
public class AdminParserUtils { /** * Adds OPT _ FORMAT option to OptionParser , with one argument . * @ param parser OptionParser to be modified * @ param required Tells if this option is required or optional */ public static void acceptsFormat ( OptionParser parser ) { } }
parser . accepts ( OPT_FORMAT , "format of key or entry, could be hex, json or binary" ) . withRequiredArg ( ) . describedAs ( "hex | json | binary" ) . ofType ( String . class ) ;
public class Swarm { /** * Deploy an archive . * @ param deployment The ShrinkWrap archive to deploy . * @ return The container . * @ throws DeploymentException if an error occurs . */ public Swarm deploy ( Archive < ? > deployment ) throws Exception { } }
if ( this . server == null ) { throw SwarmMessages . MESSAGES . containerNotStarted ( "deploy(Archive<?>)" ) ; } this . server . deployer ( ) . deploy ( deployment ) ; return this ;
public class FatFileSystem { /** * Returns the volume label of this file system . * @ return the volume label */ public String getVolumeLabel ( ) { } }
checkClosed ( ) ; final String fromDir = rootDirStore . getLabel ( ) ; if ( fromDir == null && fatType != FatType . FAT32 ) { return ( ( Fat16BootSector ) bs ) . getVolumeLabel ( ) ; } else { return fromDir ; }
public class FastMath { /** * Internal helper function to compute arctangent . * @ param xa number from which arctangent is requested * @ param xb extra bits for x ( may be 0.0) * @ param leftPlane if true , result angle must be put in the left half plane * @ return atan ( xa + xb ) ( or angle shifted by { @ co...
boolean negate = false ; int idx ; if ( xa == 0.0 ) { // Matches + / - 0.0 ; return correct sign return leftPlane ? copySign ( Math . PI , xa ) : xa ; } if ( xa < 0 ) { // negative xa = - xa ; xb = - xb ; negate = true ; } if ( xa > 1.633123935319537E16 ) { // Very large input return ( negate ^ leftPlane ) ? ( - Math ....
public class GeneralizedImageOps { /** * If an image is to be created then the generic type can ' t be used a specific one needs to be . An arbitrary * specific image type is returned here . */ public static < T > T convertGenericToSpecificType ( Class < ? > type ) { } }
if ( type == GrayI8 . class ) return ( T ) GrayU8 . class ; if ( type == GrayI16 . class ) return ( T ) GrayS16 . class ; if ( type == InterleavedI8 . class ) return ( T ) InterleavedU8 . class ; if ( type == InterleavedI16 . class ) return ( T ) InterleavedS16 . class ; return ( T ) type ;
public class ChangePasswordDialog { /** * This method is called from within the constructor to * initialize the form . */ private void initComponents ( String initialMessage , String initialUsername ) { } }
java . awt . GridBagConstraints gridBagConstraints ; getContentPane ( ) . setLayout ( new java . awt . GridBagLayout ( ) ) ; addWindowListener ( new java . awt . event . WindowAdapter ( ) { public void windowClosing ( java . awt . event . WindowEvent evt ) { closeDialog ( evt ) ; } } ) ; userMessage = new javax . swing...
public class BaseMojo { /** * Set up a classloader for the execution of the main class . * @ return the classloader * @ throws org . apache . maven . plugin . MojoExecutionException */ protected ClassLoader getClassLoader ( Set < Artifact > artifacts ) throws Exception { } }
Set < URL > classpathURLs = new LinkedHashSet < URL > ( ) ; addCustomClasspaths ( classpathURLs , true ) ; // add ourselves to top of classpath URL mainClasses = new File ( project . getBuild ( ) . getOutputDirectory ( ) ) . toURI ( ) . toURL ( ) ; getLog ( ) . debug ( "Adding to classpath : " + mainClasses ) ; classpa...
public class TypeConverter { /** * Discover all the type key mappings for this conversion */ private static List < Object > getTypeKeys ( Conversion < ? > conversion ) { } }
List < Object > result = new ArrayList < Object > ( ) ; synchronized ( typeConversions ) { // Clone the conversions Map < Object , Conversion < ? > > map = new HashMap < Object , Conversion < ? > > ( typeConversions ) ; // Find all keys that map to this conversion instance for ( Map . Entry < Object , Conversion < ? > ...
public class Ifc4FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcBuildingSystemTypeEnum createIfcBuildingSystemTypeEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcBuildingSystemTypeEnum result = IfcBuildingSystemTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class FSNamesystem { /** * Remove the indicated filename from the namespace . This may * invalidate some blocks that make up the file . */ boolean deleteInternal ( String src , INode [ ] inodes , boolean recursive , boolean enforcePermission ) throws IOException { } }
ArrayList < BlockInfo > collectedBlocks = new ArrayList < BlockInfo > ( ) ; INode targetNode = null ; byte [ ] [ ] components = inodes == null ? INodeDirectory . getPathComponents ( src ) : null ; writeLock ( ) ; try { if ( NameNode . stateChangeLog . isDebugEnabled ( ) ) { NameNode . stateChangeLog . debug ( "DIR* Nam...
public class ID3v2Frame { /** * Read the information from the flags array . * @ param flags the flags found in the frame header * @ exception ID3v2FormatException if an error occurs */ private void parseFlags ( byte [ ] flags ) throws ID3v2FormatException { } }
if ( flags . length != FRAME_FLAGS_SIZE ) { throw new ID3v2FormatException ( "Error parsing flags of frame: " + id + ". Expected 2 bytes." ) ; } else { tagAlterDiscard = ( flags [ 0 ] & 0x40 ) != 0 ; fileAlterDiscard = ( flags [ 0 ] & 0x20 ) != 0 ; readOnly = ( flags [ 0 ] & 0x10 ) != 0 ; grouped = ( flags [ 1 ] & 0x4...
public class TextAdapterActivity { /** * Default behavior returns true if Throwable is included in RETRY _ EXCEPTIONS * attribute ( if declared ) . If this attribute is not declared , any IOExceptions are * considered retryable . */ public boolean isRetryable ( Throwable ex ) { } }
try { String retryableAttr = getAttributeValueSmart ( PROP_RETRY_EXCEPTIONS ) ; if ( retryableAttr != null ) { for ( String retryableExClass : retryableAttr . split ( "," ) ) { if ( ex . getClass ( ) . getName ( ) . equals ( retryableExClass ) || ( ex . getCause ( ) != null && ex . getCause ( ) . getClass ( ) . getName...
public class WikiPageUtil { /** * Returns the decoded http string - all special symbols , replaced by * replaced by the % [ HEX HEX ] sequence , where [ HEX HEX ] is the hexadecimal * code of the escaped symbol will be restored to its original characters * ( see RFC - 2616 http : / / www . w3 . org / Protocols / ...
if ( str == null ) { return "" ; } StringBuffer buf = new StringBuffer ( ) ; char [ ] array = str . toCharArray ( ) ; for ( int i = 0 ; i < array . length ; i ++ ) { char ch = array [ i ] ; if ( ch == '%' ) { if ( i + 2 >= array . length ) { break ; } int val = ( array [ ++ i ] - '0' ) ; val <<= 4 ; val |= ( array [ ++...
public class IntIteratorUtils { /** * Merges several iterators of ascending { @ code int } values into a single iterator of ascending { @ code int } values . * It isn ' t checked if the given source iterators are actually ascending , if they are not , the order of values in the * returned iterator is undefined . ...
if ( iterators . isEmpty ( ) ) { return IntIterators . EMPTY_ITERATOR ; } if ( iterators . size ( ) == 1 ) { return iterators . get ( 0 ) ; } return new MergeIntIterator ( iterators ) ;
public class VersionsImpl { /** * Deleted an unlabelled utterance . * @ param appId The application ID . * @ param versionId The version ID . * @ param utterance The utterance text to delete . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws ErrorResponseException thrown...
return deleteUnlabelledUtteranceWithServiceResponseAsync ( appId , versionId , utterance ) . toBlocking ( ) . single ( ) . body ( ) ;
public class GrpcSerializationUtils { /** * Gets a Netty buffer directly from a gRPC ReadableBuffer . * @ param buffer the input buffer * @ return the raw ByteBuf , or null if the ByteBuf cannot be extracted */ public static ByteBuf getByteBufFromReadableBuffer ( ReadableBuffer buffer ) { } }
if ( ! sZeroCopyReceiveSupported ) { return null ; } try { if ( buffer instanceof CompositeReadableBuffer ) { Queue < ReadableBuffer > buffers = ( Queue < ReadableBuffer > ) sCompositeBuffers . get ( buffer ) ; if ( buffers . size ( ) == 1 ) { return getByteBufFromReadableBuffer ( buffers . peek ( ) ) ; } else { Compos...
public class GattError { /** * Converts the bluetooth communication status given by other BluetoothGattCallbacks to error name . It also parses the DFU errors . * @ param error the status number * @ return the error name as stated in the gatt _ api . h file */ public static String parse ( final int error ) { } }
switch ( error ) { case 0x0001 : return "GATT INVALID HANDLE" ; case 0x0002 : return "GATT READ NOT PERMIT" ; case 0x0003 : return "GATT WRITE NOT PERMIT" ; case 0x0004 : return "GATT INVALID PDU" ; case 0x0005 : return "GATT INSUF AUTHENTICATION" ; case 0x0006 : return "GATT REQ NOT SUPPORTED" ; case 0x0007 : return "...
public class StringTool { /** * Generates a copyright string for the specified copyright holder from the * specified first year to the current year . */ public static String copyright ( String holder , int startYear ) { } }
Calendar cal = Calendar . getInstance ( ) ; int year = cal . get ( Calendar . YEAR ) ; return "&copy; " + holder + " " + startYear + "-" + year ;
public class ApiOvhTelephony { /** * Alter this object properties * REST : PUT / telephony / { billingAccount } / line / { serviceName } / abbreviatedNumber / { abbreviatedNumber } * @ param body [ required ] New object properties * @ param billingAccount [ required ] The name of your billingAccount * @ param s...
String qPath = "/telephony/{billingAccount}/line/{serviceName}/abbreviatedNumber/{abbreviatedNumber}" ; StringBuilder sb = path ( qPath , billingAccount , serviceName , abbreviatedNumber ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class SemaphoreCompletionService { /** * Signal that a task that called { @ link # continueTaskInBackground ( ) } has finished and * optionally execute another task on the just - freed thread . */ public Future < T > backgroundTaskFinished ( final Callable < T > cleanupTask ) { } }
QueueingTask futureTask = null ; if ( cleanupTask != null ) { if ( trace ) log . tracef ( "Background task finished, executing cleanup task" ) ; futureTask = new QueueingTask ( cleanupTask ) ; executor . execute ( futureTask ) ; } else { semaphore . release ( ) ; if ( trace ) log . tracef ( "Background task finished, a...
public class OperationMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Operation operation , ProtocolMarshaller protocolMarshaller ) { } }
if ( operation == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( operation . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( operation . getType ( ) , TYPE_BINDING ) ; protocolMarshaller . marshall ( operation . getStatus ( ) , S...
public class Session { /** * Get a snapshot of the grants used for this session for the web server . * This method should be synchronized by the caller around the session . * @ return List of { @ link GrantReport } objects for this session sorted by id . */ public List < GrantReport > getGrantReportList ( ) { } }
Map < Integer , GrantReport > grantReportMap = new TreeMap < Integer , GrantReport > ( ) ; for ( Map . Entry < Integer , ResourceGrant > entry : idToGrant . entrySet ( ) ) { grantReportMap . put ( entry . getKey ( ) , new GrantReport ( entry . getKey ( ) . intValue ( ) , entry . getValue ( ) . getAddress ( ) . toString...
public class CorruptReplicasMap { /** * Get Nodes which have corrupt replicas of Block * @ param blk Block for which nodes are requested * @ return collection of nodes . Null if does not exists */ Collection < DatanodeDescriptor > getNodes ( Block blk ) { } }
if ( corruptReplicasMap . size ( ) == 0 ) return null ; return corruptReplicasMap . get ( blk ) ;
public class Util { /** * Convert this class name by inserting this package after the domain . * ie . , if location = 2 , com . xyz . abc . ClassName - > com . xyz . newpackage . abc . ClassName . * @ param className * @ param package location ( positive = from left , negative = from right ; 0 = before package , ...
int startSeq = 0 ; if ( location >= 0 ) { for ( int i = 0 ; i < location ; i ++ ) { startSeq = className . indexOf ( '.' , startSeq + 1 ) ; } } else { startSeq = className . length ( ) ; for ( int i = location ; i < 0 ; i ++ ) { startSeq = className . lastIndexOf ( '.' , startSeq - 1 ) ; } } if ( startSeq == - 1 ) retu...
public class CmsRewriteAliasMatcher { /** * Tries to rewrite a given path , and either returns the rewrite result or null if no * rewrite alias matched the path . < p > * @ param path the path to match * @ return the rewrite result or null if no rewrite alias matched */ public RewriteResult match ( String path ) ...
for ( CmsRewriteAlias alias : m_aliases ) { try { Pattern pattern = Pattern . compile ( alias . getPatternString ( ) ) ; Matcher matcher = pattern . matcher ( path ) ; if ( matcher . matches ( ) ) { String newPath = matcher . replaceFirst ( alias . getReplacementString ( ) ) ; return new RewriteResult ( newPath , alias...
public class FileListFromTaskOptions { /** * Set the time the request was issued . Client libraries typically set this to the current system clock time ; set it explicitly if you are calling the REST API directly . * @ param ocpDate the ocpDate value to set * @ return the FileListFromTaskOptions object itself . */ ...
if ( ocpDate == null ) { this . ocpDate = null ; } else { this . ocpDate = new DateTimeRfc1123 ( ocpDate ) ; } return this ;
public class KoreanCalendar { /** * / * [ deutsch ] * < p > Erzeugt ein neues koreanisches Kalenderdatum . < / p > * @ param year references the year using different systems like eras or sexagesimal cycles * @ param month the month which might be a leap month * @ param dayOfMonth the day of month to be checked ...
int cycle = year . getCycle ( ) ; int yearOfCycle = year . getYearOfCycle ( ) . getNumber ( ) ; return KoreanCalendar . of ( cycle , yearOfCycle , month , dayOfMonth ) ;
public class LambdaUtils { /** * 将val分发给consumer */ public static < T > T pass ( T val , Consumer < T > consumer ) { } }
if ( consumer != null ) consumer . accept ( val ) ; return val ;
public class StandardAlgConfigPanel { /** * Searches inside the children of " root " for a component that ' s a JPanel . Then inside the JPanel it * looks for the target . If the target is inside the JPanel the JPanel is removed from root . */ protected static void removeChildInsidePanel ( JComponent root , JComponen...
int N = root . getComponentCount ( ) ; for ( int i = 0 ; i < N ; i ++ ) { try { JPanel p = ( JPanel ) root . getComponent ( i ) ; Component [ ] children = p . getComponents ( ) ; for ( int j = 0 ; j < children . length ; j ++ ) { if ( children [ j ] == target ) { root . remove ( i ) ; return ; } } } catch ( ClassCastEx...
public class StreamResource { /** * Intercepts the stream represented by this StreamResource , sending the * contents of the given InputStream over that stream as " blob " * instructions . * @ param data * An InputStream containing the data to be sent over the intercepted * stream . * @ throws GuacamoleExce...
// Send input over stream tunnel . interceptStream ( streamIndex , data ) ;
public class TeaToolsUtils { /** * A function that returns an array of all the available properties on * a given class . * < b > NOTE : < / b > If possible , the results of this method should be cached * by the caller . * @ param beanClass the bean class to introspect * @ return an array of all the available ...
// Code taken from KettleUtilities . getPropertyDescriptors ( Class ) if ( beanClass == null ) { return NO_PROPERTIES ; } PropertyDescriptor [ ] properties = null ; Map < String , PropertyDescriptor > allProps = null ; try { allProps = BeanAnalyzer . getAllProperties ( new GenericType ( beanClass ) ) ; } catch ( Throwa...
public class Postconditions { /** * A { @ code double } specialized version of { @ link # checkPostcondition ( Object , * ContractConditionType ) } . * @ param value The value * @ param condition The predicate * @ return value * @ throws PostconditionViolationException If the predicate is false */ public stat...
return checkPostconditionD ( value , condition . predicate ( ) , condition . describer ( ) ) ;
public class IndirectSort { /** * Creates the initial order array . */ private static int [ ] createOrderArray ( final int start , final int length ) { } }
final int [ ] order = new int [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { order [ i ] = start + i ; } return order ;
public class MetricValueMarshaller { /** * Marshall the given parameter object . */ public void marshall ( MetricValue metricValue , ProtocolMarshaller protocolMarshaller ) { } }
if ( metricValue == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( metricValue . getCount ( ) , COUNT_BINDING ) ; protocolMarshaller . marshall ( metricValue . getCidrs ( ) , CIDRS_BINDING ) ; protocolMarshaller . marshall ( metricValue . g...
public class ProxyHandler { /** * Customize proxy URL connection . Method to allow derived handlers to customize the connection . */ protected void customizeConnection ( String pathInContext , String pathParams , HttpRequest request , URLConnection connection ) throws IOException { } }
public class Latency { /** * Copy the current immutable object by setting a value for the { @ link AbstractLatency # getPercentile999th ( ) percentile999th } attribute . * @ param value A new value for percentile999th * @ return A modified copy of the { @ code this } object */ public final Latency withPercentile999...
double newValue = value ; return new Latency ( this . median , this . percentile98th , this . percentile99th , newValue , this . mean , this . min , this . max ) ;
public class PolicyEventsInner { /** * Queries policy events for the resource group level policy assignment . * @ param subscriptionId Microsoft Azure subscription ID . * @ param resourceGroupName Resource group name . * @ param policyAssignmentName Policy assignment name . * @ param queryOptions Additional par...
return ServiceFuture . fromResponse ( listQueryResultsForResourceGroupLevelPolicyAssignmentWithServiceResponseAsync ( subscriptionId , resourceGroupName , policyAssignmentName , queryOptions ) , serviceCallback ) ;
public class ScannerParamFilter { /** * Check if the parameter should be excluded by the scanner * @ param msg the message that is currently under scanning * @ param param the Value / Name param object that is currently under scanning * @ return true if the parameter should be excluded */ public boolean isToExclu...
return ( ( paramType == NameValuePair . TYPE_UNDEFINED ) || ( param . getType ( ) == paramType ) ) && ( ( urlPattern == null ) || urlPattern . matcher ( msg . getRequestHeader ( ) . getURI ( ) . toString ( ) . toUpperCase ( Locale . ROOT ) ) . matches ( ) ) && ( paramNamePattern . matcher ( param . getName ( ) ) . matc...
public class EnvironmentsInner { /** * Claims the environment and assigns it to the user . * @ param resourceGroupName The name of the resource group . * @ param labAccountName The name of the lab Account . * @ param labName The name of the lab . * @ param environmentSettingName The name of the environment Sett...
return claimWithServiceResponseAsync ( resourceGroupName , labAccountName , labName , environmentSettingName , environmentName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ;
public class BDDFactory { /** * Returns a LogicNG internal BDD data structure of a given BDD . * @ param bdd the BDD * @ return the BDD as LogicNG data structure */ public BDDNode toLngBdd ( final int bdd ) { } }
final BDDConstant falseNode = BDDConstant . getFalsumNode ( this . f ) ; final BDDConstant trueNode = BDDConstant . getVerumNode ( this . f ) ; if ( bdd == BDDKernel . BDD_FALSE ) return falseNode ; if ( bdd == BDDKernel . BDD_TRUE ) return trueNode ; final List < int [ ] > nodes = this . kernel . allNodes ( bdd ) ; fi...
public class XPATHErrorResources { /** * Return a named ResourceBundle for a particular locale . This method mimics the behavior * of ResourceBundle . getBundle ( ) . * @ param className Name of local - specific subclass . * @ return the ResourceBundle * @ throws MissingResourceException */ public static final ...
Locale locale = Locale . getDefault ( ) ; String suffix = getResourceSuffix ( locale ) ; try { // first try with the given locale return ( XPATHErrorResources ) ResourceBundle . getBundle ( className + suffix , locale ) ; } catch ( MissingResourceException e ) { try // try to fall back to en _ US if we can ' t load { /...
public class ViewBackgroundPreferenceController { /** * Display the main user - facing view of the portlet . * @ param request * @ return */ @ RenderMapping public String getView ( RenderRequest req , Model model ) { } }
final String [ ] images = imageSetSelectionStrategy . getImageSet ( req ) ; model . addAttribute ( "images" , images ) ; final String [ ] thumbnailImages = imageSetSelectionStrategy . getImageThumbnailSet ( req ) ; model . addAttribute ( "thumbnailImages" , thumbnailImages ) ; final String [ ] imageCaptions = imageSetS...
public class DisassociateSkillFromSkillGroupRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DisassociateSkillFromSkillGroupRequest disassociateSkillFromSkillGroupRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( disassociateSkillFromSkillGroupRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disassociateSkillFromSkillGroupRequest . getSkillGroupArn ( ) , SKILLGROUPARN_BINDING ) ; protocolMarshaller . marshall ( disassociateSkillFromSki...
public class GetStagesResult { /** * The current page of elements from this collection . * @ param item * The current page of elements from this collection . */ public void setItem ( java . util . Collection < Stage > item ) { } }
if ( item == null ) { this . item = null ; return ; } this . item = new java . util . ArrayList < Stage > ( item ) ;
public class ManagementRemotingServices { /** * Set up the services to create a channel listener and operation handler service . * @ param serviceTarget the service target to install the services into * @ param endpointName the endpoint name to install the services into * @ param channelName the name of the chann...
final OptionMap options = OptionMap . EMPTY ; final ServiceName operationHandlerName = endpointName . append ( channelName ) . append ( ModelControllerClientOperationHandlerFactoryService . OPERATION_HANDLER_NAME_SUFFIX ) ; serviceTarget . addService ( operationHandlerName , operationHandlerService ) . addDependency ( ...
public class GeometryExtrude { /** * Extract the roof of a polygon * @ param polygon * @ param height * @ return */ public static Polygon extractRoof ( Polygon polygon , double height ) { } }
GeometryFactory factory = polygon . getFactory ( ) ; Polygon roofP = ( Polygon ) polygon . copy ( ) ; roofP . apply ( new TranslateCoordinateSequenceFilter ( height ) ) ; final LinearRing shell = factory . createLinearRing ( getCounterClockWise ( roofP . getExteriorRing ( ) ) . getCoordinates ( ) ) ; final int nbOfHole...
public class Select { /** * Save any body content of this tag , which will generally be the * option ( s ) representing the values displayed to the user . * @ throws JspException if a JSP exception has occurred */ public int doAfterBody ( ) throws JspException { } }
if ( hasErrors ( ) ) { return SKIP_BODY ; } // if this is a repeater we need to repeater over the body . . . if ( _repeater ) { if ( doRepeaterAfterBody ( ) ) return EVAL_BODY_AGAIN ; } if ( bodyContent != null ) { String value = bodyContent . getString ( ) ; bodyContent . clearBody ( ) ; if ( value == null ) value = "...
public class SARLSemanticSequencer { /** * Contexts : * XCastedExpression returns XUnaryOperation * XCastedExpression . SarlCastedExpression _ 1_0_0_0 returns XUnaryOperation * XPrimaryExpression returns XUnaryOperation * XMultiplicativeExpression returns XUnaryOperation * XMultiplicativeExpression . XBinaryO...
if ( errorAcceptor != null ) { if ( transientValues . isValueTransient ( semanticObject , XbasePackage . Literals . XABSTRACT_FEATURE_CALL__FEATURE ) == ValueTransient . YES ) errorAcceptor . accept ( diagnosticProvider . createFeatureValueMissing ( semanticObject , XbasePackage . Literals . XABSTRACT_FEATURE_CALL__FEA...
public class JoinSomeValueCreator { /** * { @ inheritDoc } */ @ Override protected void init ( ) { } }
dataJoinNo = StringUtil . getMatchNos ( labels , conf . getStrings ( SimpleJob . JOIN_DATA_COLUMN ) ) ;
public class StringRecord { /** * Read a UTF8 encoded string from in */ public static String readString ( final DataInput in ) throws IOException { } }
if ( in . readBoolean ( ) ) { final int length = in . readInt ( ) ; if ( length < 0 ) { throw new IOException ( "length of StringRecord is " + length ) ; } final byte [ ] bytes = new byte [ length ] ; in . readFully ( bytes , 0 , length ) ; return decode ( bytes ) ; } return null ;
public class ACRA { /** * Initialize ACRA for a given Application . The call to this method should * be placed as soon as possible in the { @ link Application # attachBaseContext ( Context ) } * method . * @ param app Your Application class . * @ param config CoreConfiguration to manually set up ACRA configurat...
final boolean senderServiceProcess = isACRASenderServiceProcess ( ) ; if ( senderServiceProcess ) { if ( ACRA . DEV_LOGGING ) log . d ( LOG_TAG , "Not initialising ACRA to listen for uncaught Exceptions as this is the SendWorker process and we only send reports, we don't capture them to avoid infinite loops" ) ; } fina...
public class TransmitMessageRequest { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . runtime . SIMPRemoteMessageControllable # getStartTick ( ) */ public long getStartTick ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getStateTick" ) ; long startTick = getTickRange ( ) . startstamp ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getStartTick" , new Long ( startTick ) ) ; return startTick ...
public class RuntimeUtil { /** * 返回输入的JVM参数列表 */ public static String getVmArguments ( ) { } }
List < String > vmArguments = ManagementFactory . getRuntimeMXBean ( ) . getInputArguments ( ) ; return StringUtils . join ( vmArguments , " " ) ;
public class AbstractConverterBuilder { /** * Configures a worker pool for the converter . This worker pool implicitly sets a maximum * number of conversions that are concurrently undertaken by the resulting converter . When a * converter is requested to concurrently execute more conversions than { @ code maximumPo...
assertNumericArgument ( corePoolSize , true ) ; assertNumericArgument ( maximumPoolSize , false ) ; assertSmallerEquals ( corePoolSize , maximumPoolSize ) ; assertNumericArgument ( keepAliveTime , true ) ; assertNumericArgument ( keepAliveTime , true ) ; this . corePoolSize = corePoolSize ; this . maximumPoolSize = max...
public class BuilderImpl { /** * Create a builder with specified builder */ @ Override public synchronized Builder create ( String builderConfigId ) throws InvalidBuilderException { } }
if ( builderConfigId == null || builderConfigId . isEmpty ( ) ) { String err = Tr . formatMessage ( tc , "JWT_BUILDER_INVALID" , new Object [ ] { builderConfigId } ) ; throw new InvalidBuilderException ( err ) ; } if ( ! active ) { String err = Tr . formatMessage ( tc , "JWT_BUILDER_NOT_ACTIVE" , new Object [ ] { build...
public class AcceptDirectConnectGatewayAssociationProposalRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AcceptDirectConnectGatewayAssociationProposalRequest acceptDirectConnectGatewayAssociationProposalRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( acceptDirectConnectGatewayAssociationProposalRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( acceptDirectConnectGatewayAssociationProposalRequest . getDirectConnectGatewayId ( ) , DIRECTCONNECTGATEWAYID_BINDING ) ; protocolMa...
public class PoolablePreparedStatement { /** * Method setRef . * @ param parameterIndex * @ param x * @ throws SQLException * @ see java . sql . PreparedStatement # setRef ( int , Ref ) */ @ Override public void setRef ( int parameterIndex , Ref x ) throws SQLException { } }
internalStmt . setRef ( parameterIndex , x ) ;
public class Utils { /** * Gets the actual type arguments that are used in a given implementation of a given generic base class or interface . * ( Based on code copyright 2007 by Ian Robertson ) . * @ param base the generic base class or interface * @ param implementation the type ( potentially ) implementing the...
checkArgNotNull ( base , "base" ) ; checkArgNotNull ( implementation , "implementation" ) ; Map < Type , Type > resolvedTypes = new HashMap < Type , Type > ( ) ; // first we need to resolve all supertypes up to the required base class or interface // and find the right Type for it Type type ; Queue < Type > toCheck = n...
public class DBUtils { /** * 本函数所查找的结果只能返回一条记录 , 若查找到的多条记录符合要求将返回第一条符合要求的记录 * @ param sql 传入的SQL 语句 * @ param arg 占位符参数 * @ return 将查找到的的记录包装成一个Map对象 , 并返回该Map , 若没有记录则返回null */ public static Map < String , Object > getMap ( String sql , Object ... arg ) { } }
List < Map < String , Object > > list = DBUtils . getListMap ( sql , arg ) ; if ( list . isEmpty ( ) ) { return null ; } return list . get ( 0 ) ;
public class AttributeProvider { /** * if the the FAV is actually a BasicFileAttributeView then there is an isLink method * if this is not already set and FAV implements LinkInfoSettable use it to add this link info */ @ SuppressWarnings ( "PMD.CollapsibleIfStatements" ) private < V extends FileAttributeView > V addI...
if ( BasicFileAttributeView . class . isAssignableFrom ( type ) ) { if ( ( ! v ( ( ) -> BasicFileAttributeView . class . cast ( fav ) . readAttributes ( ) ) . isSymbolicLink ( ) ) ) { if ( ! ( fav instanceof LinkInfoSettable ) ) { throw new UnsupportedOperationException ( "the attribute view need to implement LinkInfoS...
public class Evaluation { /** * Get a String representation of the confusion matrix */ public String confusionToString ( ) { } }
int nClasses = confusion ( ) . getClasses ( ) . size ( ) ; // First : work out the longest label size int maxLabelSize = 0 ; for ( String s : labelsList ) { maxLabelSize = Math . max ( maxLabelSize , s . length ( ) ) ; } // Build the formatting for the rows : int labelSize = Math . max ( maxLabelSize + 5 , 10 ) ; Strin...
public class ItemsUnion { /** * Create an instance of ItemsUnion based on ItemsSketch * @ param < T > type of item * @ param sketch the basis of the union * @ return an instance of ItemsUnion */ public static < T > ItemsUnion < T > getInstance ( final ItemsSketch < T > sketch ) { } }
return new ItemsUnion < > ( sketch . getK ( ) , sketch . getComparator ( ) , ItemsSketch . copy ( sketch ) ) ;
public class Manager { /** * This method is invoked by iPojo every time a new target handler appears . * @ param targetItf the appearing target handler */ public void targetAppears ( TargetHandler targetItf ) { } }
this . defaultTargetHandlerResolver . addTargetHandler ( targetItf ) ; // When a target is deployed , we may also have to update instance states . // Consider as an example when the DM restarts . Targets may be injected // before and after the pojo was started by iPojo . // See # 519 for more details . // Notice we res...
public class CommerceOrderItemPersistenceImpl { /** * Returns the first commerce order item in the ordered set where commerceOrderId = & # 63 ; and CPInstanceId = & # 63 ; . * @ param commerceOrderId the commerce order ID * @ param CPInstanceId the cp instance ID * @ param orderByComparator the comparator to orde...
List < CommerceOrderItem > list = findByC_I ( commerceOrderId , CPInstanceId , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ;
public class AMPManager { /** * Check if server supports specified action . * @ param connection active xmpp connection * @ param action action to check * @ return true if this action is supported . * @ throws XMPPErrorException * @ throws NoResponseException * @ throws NotConnectedException * @ throws In...
String featureName = AMPExtension . NAMESPACE + "?action=" + action . toString ( ) ; return isFeatureSupportedByServer ( connection , featureName ) ;
public class CommandFactory { /** * This command accelerates the player in the direction of its body . * @ param power Power is between minpower ( - 100 ) and maxpower ( + 100 ) . */ public void addDashCommand ( int power ) { } }
StringBuilder buf = new StringBuilder ( ) ; buf . append ( "(dash " ) ; buf . append ( power ) ; buf . append ( ')' ) ; fifo . add ( fifo . size ( ) , buf . toString ( ) ) ;
public class RDBMUserLayoutStore { /** * Save the user layout . */ @ Override public void setUserLayout ( final IPerson person , final IUserProfile profile , final Document layoutXML , final boolean channelsAdded ) { } }
final long startTime = System . currentTimeMillis ( ) ; final int userId = person . getID ( ) ; final int profileId = profile . getProfileId ( ) ; // don ' t try to save null layouts . if ( layoutXML == null ) { logger . error ( "Invalid attempt to save NULL user layout for user " + person . getUserName ( ) + ". Skippi...
public class JSONObject { /** * get int value . * @ param key key . * @ param def default value . * @ return value or default value . */ public int getInt ( String key , int def ) { } }
Object tmp = objectMap . get ( key ) ; return tmp != null && tmp instanceof Number ? ( ( Number ) tmp ) . intValue ( ) : def ;
public class JScoreElementAbstract { /** * For debugging purpose , draw the outer of bounding box of * the element */ protected void renderDebugBoundingBoxOuter ( Graphics2D context ) { } }
java . awt . Color previousColor = context . getColor ( ) ; context . setColor ( java . awt . Color . RED ) ; Rectangle2D bb = getBoundingBox ( ) ; bb . setRect ( bb . getX ( ) - 1 , bb . getY ( ) - 1 , bb . getWidth ( ) + 2 , bb . getHeight ( ) + 2 ) ; context . draw ( bb ) ; context . setColor ( previousColor ) ;
public class XMLResultsParser { /** * Parses the input stream as either XML select or ask results . */ @ Override public Result parse ( Command cmd , InputStream input , ResultType type ) { } }
return parseResults ( cmd , input , type ) ;
public class DefaultMethodCall { /** * Creates a { @ link net . bytebuddy . implementation . DefaultMethodCall } implementation which searches the given list * of interface types for a suitable default method in their order . If no such prioritized interface is suitable , * because it is either not defined on the i...
List < Class < ? > > list = new ArrayList < Class < ? > > ( ) ; for ( Class < ? > prioritizedInterface : prioritizedInterfaces ) { list . add ( prioritizedInterface ) ; } return prioritize ( new TypeList . ForLoadedTypes ( list ) ) ;
public class BinaryNode { /** * { @ inheritDoc } */ public Node replaceNode ( int index , Node newNode ) { } }
if ( index == 0 ) { return newNode ; } int leftNodes = left . countNodes ( ) ; if ( index <= leftNodes ) { return newInstance ( left . replaceNode ( index - 1 , newNode ) , right ) ; } else { return newInstance ( left , right . replaceNode ( index - leftNodes - 1 , newNode ) ) ; }
public class SSLConfig { /** * This method tries to normalize the ConfigURL value in an attempt to * correct any URL parsing errors . * @ param propertiesURL * @ return String */ public static String validateURL ( final String propertiesURL ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Existing propertiesURL: " + propertiesURL ) ; int end = 0 ; // get rid of all of the / or \ after file : and replace with just / char c ; for ( int i = propertiesURL . indexOf ( ':' , 0 ) + 1 ; i < propertiesURL . length ( ) ;...
public class VoltCompiler { /** * Key prefix includes attributes that make a cached statement usable if they match * For example , if the SQL is the same , but the partitioning isn ' t , then the statements * aren ' t actually interchangeable . */ String getKeyPrefix ( StatementPartitioning partitioning , Determini...
// no caching for inferred yet if ( partitioning . isInferred ( ) ) { return null ; } String joinOrderPrefix = "#" ; if ( joinOrder != null ) { joinOrderPrefix += joinOrder ; } boolean partitioned = partitioning . wasSpecifiedAsSingle ( ) ; return joinOrderPrefix + String . valueOf ( detMode . toChar ( ) ) + ( partitio...
public class PendingCloudwatchLogsExports { /** * Log types that are in the process of being enabled . After they are enabled , these log types are exported to * Amazon CloudWatch Logs . * @ param logTypesToDisable * Log types that are in the process of being enabled . After they are enabled , these log types are...
if ( logTypesToDisable == null ) { this . logTypesToDisable = null ; return ; } this . logTypesToDisable = new java . util . ArrayList < String > ( logTypesToDisable ) ;