signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcSolidOrShell ( ) { } } | if ( ifcSolidOrShellEClass == null ) { ifcSolidOrShellEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1160 ) ; } return ifcSolidOrShellEClass ; |
public class MetricsData { /** * Adds the given entity id to the list of entities for the widget .
* @ param entityId The entity id to add to the list of entities */
public void addEntityId ( long entityId ) { } } | if ( this . entityIds == null ) this . entityIds = new ArrayList < Long > ( ) ; this . entityIds . add ( entityId ) ; |
public class JPATxEntityManager { /** * d638095.4 */
protected void registerEmInvocation ( UOWCoordinator uowCoord , Synchronization emInvocation ) { } } | try { ivAbstractJPAComponent . getEmbeddableWebSphereTransactionManager ( ) . registerSynchronization ( uowCoord , emInvocation , SYNC_TIER_OUTER ) ; // d638095.4
} catch ( Exception e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "registerEmInvocation experienced unex... |
public class XAttributeUtils { /** * Derives a prototype for the given attribute . This prototype attribute
* will be equal in all respects , expect for the value of the attribute .
* This value will be set to a default value , depending on the specific type
* of the given attribute .
* @ param instance
* Att... | XAttribute prototype = ( XAttribute ) instance . clone ( ) ; if ( prototype instanceof XAttributeList ) { } else if ( prototype instanceof XAttributeContainer ) { } else if ( prototype instanceof XAttributeLiteral ) { ( ( XAttributeLiteral ) prototype ) . setValue ( "DEFAULT" ) ; } else if ( prototype instanceof XAttri... |
public class BuilderModel { /** * Gathers component class and component information from the
* character manager for later reference by others . */
protected void gatherComponentInfo ( ComponentRepository crepo ) { } } | // get the list of all component classes
Iterators . addAll ( _classes , crepo . enumerateComponentClasses ( ) ) ; for ( int ii = 0 ; ii < _classes . size ( ) ; ii ++ ) { // get the list of components available for this class
ComponentClass cclass = _classes . get ( ii ) ; Iterator < Integer > iter = crepo . enumerateC... |
public class AdminApplication { /** * This implementation uses hard coded link information , but other
* applications can dynamically determine their admin links . */
public AppAdminLinks getAdminLinks ( ) { } } | AppAdminLinks links = new AppAdminLinks ( mConfig . getName ( ) ) ; // links . addAdminLink ( " Instrumentation " , " / system / console ? page = instrumentation " ) ;
// links . addAdminLink ( " Dashboard " , " / system / console ? page = dashboard " ) ;
// links . addAdminLink ( " Janitor " , " / system / console ? p... |
public class Files2 { /** * Copies a source to a destination , works recursively on directories .
* @ param source the source path
* @ param dest the destination path
* @ throws IOException if the source cannot be copied to the destination */
public static void copy ( final Path source , final Path dest ) throws ... | if ( Files . exists ( source ) ) { Files . walkFileTree ( source , new SimpleFileVisitor < Path > ( ) { @ Override public FileVisitResult visitFile ( final Path file , final BasicFileAttributes attrs ) throws IOException { Files . copy ( file , resolve ( dest , relativize ( source , file ) ) ) ; return super . visitFil... |
public class DistributedCache { /** * and does chmod for the files */
private static Path localizeCache ( Configuration conf , URI cache , long confFileStamp , CacheStatus cacheStatus , boolean isArchive ) throws IOException { } } | FileSystem fs = getFileSystem ( cache , conf ) ; FileSystem localFs = FileSystem . getLocal ( conf ) ; Path parchive = null ; if ( isArchive ) { parchive = new Path ( cacheStatus . localizedLoadPath , new Path ( cacheStatus . localizedLoadPath . getName ( ) ) ) ; } else { parchive = cacheStatus . localizedLoadPath ; } ... |
public class CmsDriverManager { /** * Updates the current users context dates with the given resource . < p >
* This checks the date information of the resource based on
* { @ link CmsResource # getDateLastModified ( ) } as well as
* { @ link CmsResource # getDateReleased ( ) } and { @ link CmsResource # getDateE... | CmsFlexRequestContextInfo info = dbc . getFlexRequestContextInfo ( ) ; if ( info != null ) { info . updateFromResource ( resource ) ; } |
public class WebApplicationHandlerMBean { public ObjectName [ ] getFilters ( ) { } } | List l = _webappHandler . getFilters ( ) ; return getComponentMBeans ( l . toArray ( ) , _filters ) ; |
public class LottieCompositionFactory { /** * Prefer passing in the json string directly . This method just calls ` toString ( ) ` on your JSONObject .
* If you are loading this animation from the network , just use the response body string instead of
* parsing it first for improved performance . */
@ Deprecated @ ... | return fromJsonStringSync ( json . toString ( ) , cacheKey ) ; |
public class FileSystemView { /** * Returns an iterator that provides all leaf - level directories in this view .
* @ return leaf - directory iterator */
Iterator < Path > dirIterator ( ) { } } | if ( dataset . getDescriptor ( ) . isPartitioned ( ) ) { return Iterators . transform ( partitionIterator ( ) , new Function < StorageKey , Path > ( ) { @ Override @ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = "NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE" , justification = "False positi... |
public class AbstractAutomaticCache { /** * Returns for given key id the cached object from the cache4Id cache . If
* the cache is NOT initialized , the cache will be initialized .
* @ param _ uuid UUID of searched cached object
* @ return cached object */
@ Override public T get ( final UUID _uuid ) { } } | if ( ! hasEntries ( ) ) { initialize ( AbstractAutomaticCache . class ) ; } return getCache4UUID ( ) . get ( _uuid ) ; |
public class ConditionalFunctions { /** * Returned expression results in NULL if expression1 = expression2 , otherwise returns expression1.
* Returns MISSING or NULL if either input is MISSING or NULL . . */
public static Expression nullIf ( Expression expression1 , Expression expression2 ) { } } | return x ( "NULLIF(" + expression1 . toString ( ) + ", " + expression2 . toString ( ) + ")" ) ; |
public class PythonIterativeStream { /** * A thin wrapper layer over { @ link IterativeStream # closeWith ( org . apache . flink . streaming . api . datastream . DataStream ) }
* < p > Please note that this function works with { @ link PythonDataStream } and thus wherever a DataStream is mentioned in
* the above { ... | ( ( IterativeStream < PyObject > ) this . stream ) . closeWith ( feedback_stream . stream ) ; return feedback_stream ; |
public class MobileElement { /** * Method returns central coordinates of an element .
* @ return The instance of the { @ link org . openqa . selenium . Point } */
public Point getCenter ( ) { } } | Point upperLeft = this . getLocation ( ) ; Dimension dimensions = this . getSize ( ) ; return new Point ( upperLeft . getX ( ) + dimensions . getWidth ( ) / 2 , upperLeft . getY ( ) + dimensions . getHeight ( ) / 2 ) ; |
public class AssetFiltersInner { /** * Update an Asset Filter .
* Updates an existing Asset Filter associated with the specified Asset .
* @ param resourceGroupName The name of the resource group within the Azure subscription .
* @ param accountName The Media Services account name .
* @ param assetName The Asse... | return updateWithServiceResponseAsync ( resourceGroupName , accountName , assetName , filterName , parameters ) . map ( new Func1 < ServiceResponse < AssetFilterInner > , AssetFilterInner > ( ) { @ Override public AssetFilterInner call ( ServiceResponse < AssetFilterInner > response ) { return response . body ( ) ; } }... |
public class LdapTemplate { /** * { @ inheritDoc } */
@ Override public void search ( Name base , String filter , NameClassPairCallbackHandler handler ) { } } | SearchControls controls = getDefaultSearchControls ( defaultSearchScope , DONT_RETURN_OBJ_FLAG , ALL_ATTRIBUTES ) ; if ( handler instanceof ContextMapperCallbackHandler ) { assureReturnObjFlagSet ( controls ) ; } search ( base , filter , controls , handler ) ; |
public class PRJUtil { /** * Write a prj file according the SRID code of an input table
* @ param connection database connection
* @ param location input table name
* @ param geomField geometry field name
* @ param fileName path of the prj file
* @ throws SQLException
* @ throws FileNotFoundException */
pub... | int srid = SFSUtilities . getSRID ( connection , location , geomField ) ; writePRJ ( connection , srid , fileName ) ; |
public class GoogleMapShapeConverter { /** * Add a list of LatLngs to the map
* @ param map google map
* @ param latLngs lat lngs
* @ return multi marker */
public static MultiMarker addLatLngsToMap ( GoogleMap map , MultiLatLng latLngs ) { } } | MultiMarker multiMarker = new MultiMarker ( ) ; for ( LatLng latLng : latLngs . getLatLngs ( ) ) { MarkerOptions markerOptions = new MarkerOptions ( ) ; if ( latLngs . getMarkerOptions ( ) != null ) { markerOptions . icon ( latLngs . getMarkerOptions ( ) . getIcon ( ) ) ; markerOptions . anchor ( latLngs . getMarkerOpt... |
public class Cached { /** * Taken from String Hash , but coded , to ensure consistent across Java versions . Also covers negative case ; */
public int cacheIdx ( String key ) { } } | int h = 0 ; for ( int i = 0 ; i < key . length ( ) ; i ++ ) { h = 31 * h + key . charAt ( i ) ; } if ( h < 0 ) h *= - 1 ; return h % segSize ; |
public class TypeQualifierApplications { /** * Populate a Set of TypeQualifierAnnotations representing directly - applied
* type qualifier annotations on given AnnotatedObject .
* @ param result
* Set of TypeQualifierAnnotations
* @ param o
* an AnnotatedObject
* @ param e
* ElementType representing kind ... | if ( ! o . getElementType ( ) . equals ( e ) ) { return ; } Collection < AnnotationValue > values = getDirectAnnotation ( o ) ; for ( AnnotationValue v : values ) { constructTypeQualifierAnnotation ( result , v ) ; } |
public class UpdateVersionRequest { /** * < pre >
* A Version containing the updated resource . Only fields set in the field
* mask will be updated .
* < / pre >
* < code > . google . appengine . v1 . Version version = 2 ; < / code > */
public com . google . appengine . v1 . Version getVersion ( ) { } } | return version_ == null ? com . google . appengine . v1 . Version . getDefaultInstance ( ) : version_ ; |
public class PlotTab { /** * This method is called from within the constructor to initialize the form .
* WARNING : Do NOT modify this code . The content of this method is always
* regenerated by the Form Editor . */
@ SuppressWarnings ( "unchecked" ) // < editor - fold defaultstate = " collapsed " desc = " Generat... | jPanel1 = new javax . swing . JPanel ( ) ; jScrollPaneAlgorithms = new javax . swing . JScrollPane ( ) ; jTableAlgoritms = new javax . swing . JTable ( ) ; jScrollPane3 = new javax . swing . JScrollPane ( ) ; jTableStreams = new javax . swing . JTable ( ) ; jTextFieldResultPath = new javax . swing . JTextField ( ) ; jB... |
public class TrajectorySplineFitLegacy { /** * Calculates a spline to a trajectory . Attention : The spline is fitted through a rotated version of the trajectory .
* To fit the spline the trajectory is rotated into its main direction . You can access this rotated trajectory by
* { @ link # getRotatedTrajectory ( ) ... | /* * 1 . Calculate the minimum bounding rectangle */
ArrayList < Point2D . Double > points = new ArrayList < Point2D . Double > ( ) ; for ( int i = 0 ; i < t . size ( ) ; i ++ ) { Point2D . Double p = new Point2D . Double ( ) ; p . setLocation ( t . get ( i ) . x , t . get ( i ) . y ) ; points . add ( p ) ; } Point2D .... |
public class WSX509TrustManager { /** * Increment the trailing number on the alias value until one is found that
* does not currently exist in the input store .
* @ param jKeyStore
* @ param alias
* @ return String
* @ throws KeyStoreException */
private String incrementAlias ( KeyStore jKeyStore , String ali... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "incrementAlias: " + alias ) ; int num = 0 ; String base ; int index = alias . lastIndexOf ( '_' ) ; if ( - 1 == index ) { // no underscore found
base = alias + '_' ; } else if ( index == ( alias . length ( ) - 1 ) ) { // alias... |
public class BELUtilities { /** * Returns a hash map of type { @ code K , V } optimized to trade memory
* efficiency for CPU time .
* Use constrained hash maps when the capacity of a hash map is known to be
* greater than sixteen ( the default initial capacity ) and the addition of
* elements beyond the map ' s... | return new HashMap < K , V > ( s , 1.0F ) ; |
public class TempFile { /** * Deletes the underlying temp file immediately .
* Subsequent calls will not delete the temp file , even if another file has the same path .
* If already deleted , has no effect . */
public void delete ( ) throws IOException { } } | File f = tempFile ; if ( f != null ) { FileUtils . delete ( f ) ; tempFile = null ; } |
public class JCDiagnostic { /** * where */
@ Deprecated public static DiagnosticFormatter < JCDiagnostic > getFragmentFormatter ( ) { } } | if ( fragmentFormatter == null ) { fragmentFormatter = new BasicDiagnosticFormatter ( JavacMessages . getDefaultMessages ( ) ) ; } return fragmentFormatter ; |
public class Document { /** * Loads the contents from an XML text
* A sanity check is performed , which is not too strict :
* A valid document must contain one node exactly
* and may furthermore contain instruction - and comment - tags .
* @ param xmlInput
* @ throws ParseException if the XML document can not... | if ( xmlInput == null ) { throw new IllegalArgumentException ( "input can not be null" ) ; } ArrayList splitContents = split ( xmlInput , interpreteAsXHTML , true ) ; build ( splitContents , interpreteAsXHTML ) ; int nodeCount = 0 ; ArrayList contentsToRemove = new ArrayList ( ) ; Iterator i = contents . iterator ( ) ;... |
public class RestletUtilSesameRealm { /** * Finds the roles mapped to a given user .
* @ param user
* The user .
* @ return The roles found . */
public Set < Role > findRoles ( final User user ) { } } | final Set < Role > result = new HashSet < Role > ( ) ; for ( final RoleMapping mapping : this . getRoleMappings ( ) ) { final Object source = mapping . getSource ( ) ; if ( ( user != null ) && user . equals ( source ) ) { // TODO : Fix this hardcoding when Restlet implements equals for Role objects again
RestletUtilRol... |
public class IDLProxyObject { /** * Put .
* @ param fullField the full field
* @ param field the field
* @ param value the value
* @ param object the object
* @ return the IDL proxy object */
private IDLProxyObject put ( String fullField , String field , Object value , Object object ) { } } | return doSetFieldValue ( fullField , field , value , object , this . cached , this . cachedFields ) ; |
public class Log { /** * Foward pass : y _ i = log ( x _ i ) */
@ Override public Tensor forward ( ) { } } | Tensor x = modInX . getOutput ( ) ; y = new Tensor ( x ) ; // copy
y . log ( ) ; return y ; |
public class ProjectiveStructureFromHomographies { /** * < p > Solves for camera matrices and scene structure . < / p >
* Homographies from view i to 0 : < br >
* x [ 0 ] = H * x [ i ]
* @ param homographies _ view0 _ to _ viewI ( Input ) Homographies matching pixels from view i to view 0.
* @ param observation... | if ( homographies_view0_to_viewI . size ( ) != observations . size ( ) ) { throw new IllegalArgumentException ( "Number of homographies and observations do not match" ) ; } LowLevelMultiViewOps . computeNormalizationLL ( ( List ) observations , N ) ; // Apply normalization to homographies
this . homographies = homograp... |
public class DataWriterBuilder { /** * Tell the writer the destination to write to .
* @ param destination destination to write to
* @ return this { @ link DataWriterBuilder } instance */
public DataWriterBuilder < S , D > writeTo ( Destination destination ) { } } | this . destination = destination ; log . debug ( "For destination: {}" , destination ) ; return this ; |
public class WsocHttpSessionListener { /** * ( non - Javadoc )
* @ see javax . servlet . http . HttpSessionListener # sessionDestroyed ( javax . servlet . http . HttpSessionEvent ) */
@ Override public void sessionDestroyed ( HttpSessionEvent event ) { } } | String id = event . getSession ( ) . getId ( ) ; if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "HttpSession destroyed: HttpSession ID: " + event . getSession ( ) . getId ( ) ) ; } // close the websocket session from here if the websocket session was secure .
if ( endpointManager != null ) { endpointManager . httpS... |
public class DescribeHostReservationsResult { /** * Details about the reservation ' s configuration .
* @ param hostReservationSet
* Details about the reservation ' s configuration . */
public void setHostReservationSet ( java . util . Collection < HostReservation > hostReservationSet ) { } } | if ( hostReservationSet == null ) { this . hostReservationSet = null ; return ; } this . hostReservationSet = new com . amazonaws . internal . SdkInternalList < HostReservation > ( hostReservationSet ) ; |
public class CfgParser { /** * Compute the distribution over CFG entries , the parse root , and the
* children , conditioned on the provided terminals and assuming the provided
* distributions over the root node . */
public CfgParseChart parseMarginal ( List < ? > terminals , Factor rootDist , boolean useSumProduct... | return marginal ( createParseChart ( terminals , useSumProduct ) , terminals , rootDist ) ; |
public class ODatabasePoolAbstract { /** * Closes all the databases . */
public void close ( ) { } } | for ( Entry < String , OResourcePool < String , DB > > pool : pools . entrySet ( ) ) { for ( DB db : pool . getValue ( ) . getResources ( ) ) { pool . getValue ( ) . close ( ) ; try { OLogManager . instance ( ) . debug ( this , "Closing pooled database '%s'..." , db . getName ( ) ) ; ( ( ODatabasePooled ) db ) . forceC... |
public class BackendBucketClient { /** * Retrieves the list of BackendBucket resources available to the specified project .
* < p > Sample code :
* < pre > < code >
* try ( BackendBucketClient backendBucketClient = BackendBucketClient . create ( ) ) {
* ProjectName project = ProjectName . of ( " [ PROJECT ] " )... | ListBackendBucketsHttpRequest request = ListBackendBucketsHttpRequest . newBuilder ( ) . setProject ( project ) . build ( ) ; return listBackendBuckets ( request ) ; |
public class PutLifecyclePolicyRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( PutLifecyclePolicyRequest putLifecyclePolicyRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( putLifecyclePolicyRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( putLifecyclePolicyRequest . getRegistryId ( ) , REGISTRYID_BINDING ) ; protocolMarshaller . marshall ( putLifecyclePolicyRequest . getRepositoryName ( ) , REPO... |
public class ResourceManager { /** * registers all ResourceIDs for the ResourceBuilders
* @ param resourceBuilder an instance of ResourceBuilder */
private void registerResourceIDsForResourceBuilder ( ResourceBuilderModel resourceBuilder ) { } } | List < ? extends ResourceModel > resources = resourceBuilder . announceResources ( ) ; if ( resources == null ) return ; resources . stream ( ) . map ( this :: getRegisteredListForResource ) . forEach ( list -> list . add ( resourceBuilder ) ) ; |
public class MainFrame { /** * GEN - LAST : event _ btLaunchMouseExited */
private void cbDisableTimeoutActionPerformed ( java . awt . event . ActionEvent evt ) // GEN - FIRST : event _ cbDisableTimeoutActionPerformed
{ } } | // GEN - HEADEREND : event _ cbDisableTimeoutActionPerformed
if ( serviceWorker != null ) { serviceWorker . setTimeoutDisabled ( cbDisableTimeout . isSelected ( ) ) ; } |
public class JNDIEnvironmentRefBindingHelper { /** * Update a ComponentNameSpaceConfiguration object with processed binding
* and extension metadata .
* @ param compNSConfig the configuration to update
* @ param allBindings the map of all bindings
* @ param envEntryValues the env - entry value bindings map
* ... | for ( JNDIEnvironmentRefType refType : JNDIEnvironmentRefType . VALUES ) { if ( refType . getBindingElementName ( ) != null ) { compNSConfig . setJNDIEnvironmentRefBindings ( refType . getType ( ) , allBindings . get ( refType ) ) ; } } compNSConfig . setEnvEntryValues ( envEntryValues ) ; compNSConfig . setResourceRef... |
public class ReflectionUtils { /** * Extract the last generic type from the passed class . For example
* < tt > public Class MyClass implements FilterClass & lt ; A , B & gt ; , SomeOtherClass & lt ; C & gt ; < / tt > will return { @ code B } .
* @ param clazz the class to extract from
* @ param filterClass the c... | Type type = getGenericClassType ( clazz , filterClass ) ; if ( type instanceof ParameterizedType ) { ParameterizedType pType = ( ParameterizedType ) type ; if ( filterClass . isAssignableFrom ( ( Class ) pType . getRawType ( ) ) ) { Type [ ] actualTypes = pType . getActualTypeArguments ( ) ; if ( actualTypes . length >... |
public class ProcessStarter { /** * < p > Executes the given command as if it had been executed from the command line of the host OS
* ( cmd . exe on windows , / bin / sh on * nix ) and calls the provided handler with the newly created process .
* < p > < b > NOTE : < / b > In gosu , you should take advantage of th... | Process process = null ; try { process = startImpl ( ) ; ShellProcess shellProcess = new ShellProcess ( process ) ; handler . run ( shellProcess ) ; try { process . exitValue ( ) ; } catch ( IllegalThreadStateException e ) { // Process not yet dead so kill
process . destroy ( ) ; } } catch ( IOException e ) { throw new... |
public class KeyVaultClientBaseImpl { /** * List keys in the specified vault .
* Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a stored key . The LIST operation is applicable to all key types , however only the base key identifier , attributes , and tags are ... | if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . getKeysNext ( nextUrl , this . acceptLanguage ( ) , this . userAgent ( ) ) . flatMap ( new Func1 < Response < Resp... |
public class BranchFilterModule { /** * Process map for branch replication . */
protected void processMap ( final URI map ) { } } | assert ! map . isAbsolute ( ) ; this . map = map ; currentFile = job . tempDirURI . resolve ( map ) ; // parse
logger . info ( "Processing " + currentFile ) ; final Document doc ; try { logger . debug ( "Reading " + currentFile ) ; doc = builder . parse ( new InputSource ( currentFile . toString ( ) ) ) ; } catch ( fin... |
public class DefaultFetchFilter { /** * Tells whether or not the given URI is excluded .
* @ param uri the URI to check
* @ return { @ code true } if the URI is excluded , { @ code false } otherwise . */
private boolean isExcluded ( String uri ) { } } | if ( excludeList == null || excludeList . isEmpty ( ) ) { return false ; } for ( String ex : excludeList ) { if ( uri . matches ( ex ) ) { return true ; } } return false ; |
public class DatasourceResourceProvider { /** * release datasource connection
* @ param dc
* @ param autoCommit */
void release ( DatasourceConnection dc ) { } } | if ( dc != null ) { try { dc . getConnection ( ) . commit ( ) ; dc . getConnection ( ) . setAutoCommit ( true ) ; dc . getConnection ( ) . setTransactionIsolation ( Connection . TRANSACTION_NONE ) ; } catch ( SQLException e ) { } getManager ( ) . releaseConnection ( ThreadLocalPageContext . get ( ) , dc ) ; } |
public class AfterBeanDiscoveryImpl { /** * Bean and observer registration is delayed until after all { @ link AfterBeanDiscovery } observers are notified . */
private void finish ( ) { } } | try { GlobalEnablementBuilder globalEnablementBuilder = getBeanManager ( ) . getServices ( ) . get ( GlobalEnablementBuilder . class ) ; for ( BeanRegistration registration : additionalBeans ) { processBeanRegistration ( registration , globalEnablementBuilder ) ; } for ( ObserverRegistration registration : additionalOb... |
public class Requests { /** * Create new request with method and url */
public static RequestBuilder newRequest ( String method , String url ) { } } | return new RequestBuilder ( ) . method ( method ) . url ( url ) ; |
public class BaseBuilder { /** * Iterates through all of the build steps and uses reflection call the specified method on either the builder itself or
* the component being built . Also calls { @ link # postProcess ( Object ) } and then { @ link # validate ( Object ) } .
* @ return the newly built component instanc... | T obj = createInstance ( ) ; try { for ( Step step : steps ) { if ( step . isBuilderMethodCall ( ) ) { callMethod ( this , step ) ; } else { callMethod ( obj , step ) ; } } } catch ( Exception e ) { throw new Siren4JRuntimeException ( e ) ; } postProcess ( obj ) ; validate ( obj ) ; return obj ; |
public class SetSystemPropertiesMojo { /** * { @ inheritDoc } */
public void execute ( ) throws MojoExecutionException , MojoFailureException { } } | if ( properties . isEmpty ( ) ) { getLog ( ) . debug ( "No system properties found" ) ; return ; } getLog ( ) . debug ( "Setting system properties:" ) ; for ( Enumeration < ? > propertyNames = properties . propertyNames ( ) ; propertyNames . hasMoreElements ( ) ; ) { String propertyName = propertyNames . nextElement ( ... |
public class AbstractWALDAO { /** * This method is called if recovery from the WAL file ( partially ) failed an
* analysis might be needed . */
final void _maintainWALFileAfterProcessing ( @ Nonnull @ Nonempty final String sWALFilename ) { } } | ValueEnforcer . notEmpty ( sWALFilename , "WALFilename" ) ; final File aWALFile = m_aIO . getFile ( sWALFilename ) ; final File aNewFile = new File ( aWALFile . getParentFile ( ) , aWALFile . getName ( ) + "." + PDTFactory . getCurrentMillis ( ) + ".bup" ) ; if ( FileOperationManager . INSTANCE . renameFile ( aWALFile ... |
public class DatabaseTableMeta { /** * 初始化的时候dump一下表结构 */
private boolean dumpTableMeta ( MysqlConnection connection , final CanalEventFilter filter ) { } } | try { ResultSetPacket packet = connection . query ( "show databases" ) ; List < String > schemas = new ArrayList < String > ( ) ; for ( String schema : packet . getFieldValues ( ) ) { schemas . add ( schema ) ; } for ( String schema : schemas ) { // filter views
packet = connection . query ( "show full tables from `" +... |
public class SLF4JLoggerImpl { /** * Log an exception ( throwable ) at the TRACE level with an accompanying message . If the exception is null , then this method
* calls { @ link # trace ( String , Object . . . ) } .
* @ param t the exception ( throwable ) to log
* @ param message the message accompanying the exc... | if ( ! isTraceEnabled ( ) ) return ; if ( t == null ) { this . trace ( message , params ) ; return ; } if ( message == null ) { logger . trace ( null , t ) ; return ; } logger . trace ( StringUtil . createString ( message , params ) , t ) ; |
public class WebcamDiscoveryService { /** * Stop discovery service . */
public void stop ( ) { } } | // return if not running
if ( ! running . compareAndSet ( true , false ) ) { return ; } try { runner . join ( ) ; } catch ( InterruptedException e ) { throw new WebcamException ( "Joint interrupted" ) ; } LOG . debug ( "Discovery service has been stopped" ) ; runner = null ; |
public class SimpleSipServlet { /** * { @ inheritDoc } */
protected void doBye ( SipServletRequest request ) throws ServletException , IOException { } } | if ( logger . isInfoEnabled ( ) ) { logger . info ( "Got BYE request:\n" + request ) ; } SipServletResponse sipServletResponse = request . createResponse ( 200 ) ; sipServletResponse . send ( ) ; RTSPStack rtsp = ( RTSPStack ) request . getSession ( ) . getAttribute ( "rtsp" ) ; try { rtsp . sendTeardown ( ) ; Thread .... |
public class RouterMiddleware { /** * Adds the < code > interceptor < / code > to the list of interceptors that will matches the specified
* < code > paths < / code > .
* @ param interceptor the interceptor object to be added .
* @ param paths the paths in which this interceptor will be invoked , an empty array t... | Preconditions . notNull ( interceptor , "no interceptor provided" ) ; interceptors . add ( new InterceptorEntry ( interceptor , paths ) ) ; |
public class ByteBufferOutputStream { /** * Write current content to the passed byte array . The copied elements are
* removed from this streams buffer .
* @ param aBuf
* Byte array to write to . May not be < code > null < / code > .
* @ param nOfs
* Offset to start writing . Must be & ge ; 0.
* @ param nLe... | ValueEnforcer . isArrayOfsLen ( aBuf , nOfs , nLen ) ; m_aBuffer . flip ( ) ; m_aBuffer . get ( aBuf , nOfs , nLen ) ; if ( bCompactBuffer ) m_aBuffer . compact ( ) ; |
public class FixedJitterBuffer { /** * Accepts specified packet
* @ param packet the packet to accept */
@ Override public void write ( RtpPacket packet , RTPFormat format ) { } } | // checking format
if ( format == null ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( "No format specified. Packet dropped!" ) ; } return ; } boolean locked = false ; try { locked = this . lock . tryLock ( ) || this . lock . tryLock ( 5 , TimeUnit . MILLISECONDS ) ; if ( locked ) { safeWrite ( packet , forma... |
public class DefaultASTValidateableHelper { /** * Retrieves a Map describing all of the properties which need to be constrained for the class
* represented by classNode . The keys in the Map will be property names and the values are the
* type of the corresponding property .
* @ param classNode the class to inspe... | final Map < String , ClassNode > fieldsToConstrain = new HashMap < String , ClassNode > ( ) ; final List < FieldNode > allFields = classNode . getFields ( ) ; for ( final FieldNode field : allFields ) { if ( ! field . isStatic ( ) ) { final PropertyNode property = classNode . getProperty ( field . getName ( ) ) ; if ( ... |
public class FragmentHelper { /** * / / / / / Others / / / / / / / */
@ Override public void executeOnUIThread ( Runnable runnable ) { } } | Activity activity = fragment . getActivity ( ) ; if ( activity != null && ! activity . isDestroyed ( ) ) { activity . runOnUiThread ( new SafeExecuteWrapperRunnable ( fragment , runnable ) ) ; } |
public class NFVORequestor { /** * Returns a KeyAgent with which requests regarding Keys can be sent to the NFVO .
* @ return a KeyAgent */
public synchronized ServiceAgent getServiceAgent ( ) { } } | if ( this . keyAgent == null ) { if ( isService ) { this . serviceAgent = new ServiceAgent ( this . serviceName , this . projectId , this . sslEnabled , this . nfvoIp , this . nfvoPort , this . version , this . serviceKey ) ; } else { this . serviceAgent = new ServiceAgent ( this . username , this . password , this . p... |
public class Scte35SpliceInsertScheduleActionSettingsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Scte35SpliceInsertScheduleActionSettings scte35SpliceInsertScheduleActionSettings , ProtocolMarshaller protocolMarshaller ) { } } | if ( scte35SpliceInsertScheduleActionSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( scte35SpliceInsertScheduleActionSettings . getDuration ( ) , DURATION_BINDING ) ; protocolMarshaller . marshall ( scte35SpliceInsertScheduleActi... |
public class AbstractAjcMojo { /** * Parameter which indicates an XML file containing AspectJ weaving instructions .
* Assigning this plugin parameter adds the < code > - xmlConfigured < / code > option to ajc .
* @ param xmlConfigured an XML file containing AspectJ weaving instructions . */
public void setXmlConfi... | try { final String path = xmlConfigured . getCanonicalPath ( ) ; if ( ! xmlConfigured . exists ( ) ) { getLog ( ) . warn ( "xmlConfigured parameter invalid. [" + path + "] does not exist." ) ; } else if ( ! path . trim ( ) . toLowerCase ( ) . endsWith ( ".xml" ) ) { getLog ( ) . warn ( "xmlConfigured parameter invalid.... |
public class DomHelpers { /** * If any child of el has prefix as prefix , remove it . drop all namespace
* decls on the way . If we find an element with a different prefix , go
* crazy .
* @ param el
* @ param prefix
* @ throws MarshalException */
private static void removePrefixFromChildren ( Element el , St... | NodeList nl = el . getChildNodes ( ) ; String localPrefix = null ; for ( int i = 0 ; i < nl . getLength ( ) ; i ++ ) { Node n = nl . item ( i ) ; if ( n . getNodeType ( ) != Node . ELEMENT_NODE ) { continue ; } localPrefix = n . getPrefix ( ) ; if ( localPrefix != null && localPrefix . length ( ) > 0 ) { if ( ! localPr... |
public class AdditionalRequestHeadersInterceptor { /** * Gets the header values list for a given header .
* If the header doesn ' t have any values , an empty list will be returned .
* @ param headerName the name of the header
* @ return the list of values for the header */
private List < String > getHeaderValues... | if ( additionalHttpHeaders . get ( headerName ) == null ) { additionalHttpHeaders . put ( headerName , new ArrayList < String > ( ) ) ; } return additionalHttpHeaders . get ( headerName ) ; |
public class BosClient { /** * Returns ListObjectsResponse containing a list of summary information about the objects in the specified buckets .
* List results are < i > always < / i > returned in lexicographic ( alphabetical ) order .
* @ param bucketName The name of the Bos bucket to list .
* @ param prefix An ... | return this . listObjects ( new ListObjectsRequest ( bucketName , prefix ) ) ; |
public class ObjectFactory { /** * Create an instance of { @ link Project . Layouts . Layout . Columns . Column } */
public Project . Layouts . Layout . Columns . Column createProjectLayoutsLayoutColumnsColumn ( ) { } } | return new Project . Layouts . Layout . Columns . Column ( ) ; |
public class JavaDecrypt { /** * des解密
* @ param code { @ link String }
* @ return { @ link String }
* @ throws InvalidKeyException 异常
* @ throws NoSuchAlgorithmException 异常
* @ throws NoSuchPaddingException 异常
* @ throws UnsupportedEncodingException 异常
* @ throws IllegalBlockSizeException 异常
* @ throws... | return JavaEncrypt . decryptDES ( code , "DES" ) ; |
public class ChannelManager { /** * Unregisters the given task from the channel manager .
* @ param vertexId the ID of the task to be unregistered
* @ param task the task to be unregistered */
public void unregister ( ExecutionVertexID vertexId , Task task ) { } } | final Environment environment = task . getEnvironment ( ) ; // destroy and remove OUTPUT channels from registered channels and cache
for ( ChannelID id : environment . getOutputChannelIDs ( ) ) { Channel channel = this . channels . remove ( id ) ; if ( channel != null ) { channel . destroy ( ) ; } this . receiverCache ... |
public class Configuration { /** * Register a typeName to Class mapping
* @ param typeName SQL type name
* @ param clazz java type */
public void registerType ( String typeName , Class < ? > clazz ) { } } | typeToName . put ( typeName . toLowerCase ( ) , clazz ) ; |
public class VarProperties { /** * private static final Pattern p = Pattern . compile ( " \ \ $ \ \ { . + \ \ } " ) ; */
public String getProperty ( String key ) { } } | String vorher = super . getProperty ( key ) ; String nachher = null ; while ( vorher != null && ! vorher . equals ( nachher = doReplacements ( vorher ) ) ) { vorher = nachher ; } return nachher ; |
public class RunInstancesExample { /** * Run some new ec2 instances .
* @ param imageId
* AMI for running new instances from
* @ param runCount
* count of instances to run
* @ return a list of started instances */
public static List < Instance > runInstances ( final String imageId , final int runCount ) { } } | // pass any credentials as aws - mock does not authenticate them at all
AWSCredentials credentials = new BasicAWSCredentials ( "foo" , "bar" ) ; AmazonEC2Client amazonEC2Client = new AmazonEC2Client ( credentials ) ; // the mock endpoint for ec2 which runs on your computer
String ec2Endpoint = "http://localhost:8000/aw... |
public class AlluxioWorkerExecutor { /** * Starts the Alluxio worker executor .
* @ param args command - line arguments */
public static void main ( String [ ] args ) throws Exception { } } | MesosExecutorDriver driver = new MesosExecutorDriver ( new AlluxioWorkerExecutor ( ) ) ; System . exit ( driver . run ( ) == Protos . Status . DRIVER_STOPPED ? 0 : 1 ) ; |
public class JacocoReportPublisher { /** * TODO only collect the jacoco report if unit tests have run
* @ param context
* @ param mavenSpyLogsElt maven spy report . WARNING experimental structure for the moment , subject to change .
* @ throws IOException
* @ throws InterruptedException */
@ Override public voi... | TaskListener listener = context . get ( TaskListener . class ) ; FilePath workspace = context . get ( FilePath . class ) ; Run run = context . get ( Run . class ) ; Launcher launcher = context . get ( Launcher . class ) ; List < Element > jacocoPrepareAgentEvents = XmlUtils . getExecutionEventsByPlugin ( mavenSpyLogsEl... |
public class CmsAttributeHandler { /** * Sets the warning message for the given value index . < p >
* @ param valueIndex the value index
* @ param message the warning message
* @ param tabbedPanel the forms tabbed panel if available */
public void setWarningMessage ( int valueIndex , String message , CmsTabbedPan... | if ( ! m_attributeValueViews . isEmpty ( ) ) { FlowPanel parent = ( FlowPanel ) m_attributeValueViews . get ( 0 ) . getParent ( ) ; CmsAttributeValueView valueView = ( CmsAttributeValueView ) parent . getWidget ( valueIndex ) ; valueView . setWarningMessage ( message ) ; if ( tabbedPanel != null ) { int tabIndex = tabb... |
public class RemoveUnusedCode { /** * Strip as many unreferenced args off the end of the function declaration as possible . We start
* from the end of the function declaration because removing parameters from the middle of the
* param list could mess up the interpretation of parameters being sent over by any functi... | Node lastArg ; while ( ( lastArg = argList . getLastChild ( ) ) != null ) { Node lValue = lastArg ; if ( lastArg . isDefaultValue ( ) ) { lValue = lastArg . getFirstChild ( ) ; if ( NodeUtil . mayHaveSideEffects ( lastArg . getLastChild ( ) , compiler ) ) { break ; } } if ( lValue . isRest ( ) ) { lValue = lValue . get... |
public class FieldAnnotation { /** * Is the instruction a write of a field ?
* @ param ins
* the Instruction to check
* @ param cpg
* ConstantPoolGen of the method containing the instruction
* @ return the Field if instruction is a write of a field , null otherwise */
public static FieldAnnotation isWrite ( I... | if ( ins instanceof PUTFIELD || ins instanceof PUTSTATIC ) { FieldInstruction fins = ( FieldInstruction ) ins ; String className = fins . getClassName ( cpg ) ; return new FieldAnnotation ( className , fins . getName ( cpg ) , fins . getSignature ( cpg ) , fins instanceof PUTSTATIC ) ; } else { return null ; } |
public class ResponseValidator { /** * validate a given response content object with status code " 200 " and media content type " application / json "
* uri , httpMethod , JSON _ MEDIA _ TYPE ( " 200 " ) , DEFAULT _ MEDIA _ TYPE ( " application / json " ) is to locate the schema to validate
* @ param responseConten... | return validateResponseContent ( responseContent , uri , httpMethod , GOOD_STATUS_CODE ) ; |
public class MatrixFunctions { /** * Applies the < i > cube root < / i > function element wise on this
* matrix . Note that this is an in - place operation .
* @ see MatrixFunctions # cbrt ( DoubleMatrix )
* @ return this matrix */
public static DoubleMatrix cbrti ( DoubleMatrix x ) { } } | /* # mapfct ( ' Math . cbrt ' ) # */
// RJPP - BEGIN - - - - -
for ( int i = 0 ; i < x . length ; i ++ ) x . put ( i , ( double ) Math . cbrt ( x . get ( i ) ) ) ; return x ; // RJPP - END - - - - - |
public class Control { /** * This method retrieves the minimum value this control will accept .
* If this control is a string control , this method returns the minimum string
* size that can be set on this control .
* @ return the minimum value or the smallest string size
* @ throws StateException if this contr... | if ( type == V4L4JConstants . CTRL_TYPE_LONG ) throw new UnsupportedMethod ( "This control is a long control and does not support calls to getMinValue()" ) ; synchronized ( state ) { if ( state . isNotReleased ( ) ) return min ; else throw new StateException ( "This control has been released and must not be used" ) ; } |
public class BandedAligner { /** * Classical Banded Alignment .
* Both sequences must be highly similar .
* Align 2 sequence completely ( i . e . while first sequence will be aligned against whole second sequence ) .
* @ param scoring scoring system
* @ param seq1 first sequence
* @ param seq2 second sequence... | if ( scoring instanceof AffineGapAlignmentScoring ) return BandedAffineAligner . align ( ( AffineGapAlignmentScoring < NucleotideSequence > ) scoring , seq1 , seq2 , offset1 , length1 , offset2 , length2 , width ) ; else return BandedLinearAligner . align ( ( LinearGapAlignmentScoring < NucleotideSequence > ) scoring ,... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcFlowFitting ( ) { } } | if ( ifcFlowFittingEClass == null ) { ifcFlowFittingEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 242 ) ; } return ifcFlowFittingEClass ; |
public class Crypto { /** * Returns an ASCII string that can be used for encrypting / decrypting
* data with the AES - 128 algorithm . The given seed < strong > does not < / strong >
* guarantee the same result for subsequent invocations .
* @ param seed A string to seed the generator with .
* @ return A unique... | String returnKey = null ; try { SecureRandom rand = SecureRandom . getInstance ( "SHA1PRNG" ) ; byte [ ] salt = new byte [ 16 ] ; rand . nextBytes ( salt ) ; PBEKeySpec password = new PBEKeySpec ( seed . toCharArray ( ) , salt , 1000 , 128 ) ; SecretKeyFactory factory = SecretKeyFactory . getInstance ( "PBKDF2WithHmacS... |
public class BinarySearch { /** * Checks that { @ code fromIndex } and { @ code toIndex } are in the range and
* throws an appropriate exception , if they aren ' t . */
private static void rangeCheck ( int length , int fromIndex , int toIndex ) { } } | if ( fromIndex > toIndex ) { throw new IllegalArgumentException ( "fromIndex(" + fromIndex + ") > toIndex(" + toIndex + ")" ) ; } if ( fromIndex < 0 ) { throw new ArrayIndexOutOfBoundsException ( fromIndex ) ; } if ( toIndex > length ) { throw new ArrayIndexOutOfBoundsException ( toIndex ) ; } |
public class AVLGroupTree { /** * Add the provided centroid to the tree . */
public void add ( double centroid , int count , List < Double > data ) { } } | this . centroid = centroid ; this . count = count ; this . data = data ; tree . add ( ) ; |
public class CmsLinkManager { /** * Calculates a relative URI from " fromUri " to " toUri " ,
* both URI must be absolute . < p >
* @ param fromUri the URI to start
* @ param toUri the URI to calculate a relative path to
* @ return a relative URI from " fromUri " to " toUri " */
public static String getRelative... | StringBuffer result = new StringBuffer ( ) ; int pos = 0 ; while ( true ) { int i = fromUri . indexOf ( '/' , pos ) ; int j = toUri . indexOf ( '/' , pos ) ; if ( ( i == - 1 ) || ( i != j ) || ! fromUri . regionMatches ( pos , toUri , pos , i - pos ) ) { break ; } pos = i + 1 ; } // count hops up from here to the commo... |
public class AbstractIoSession { /** * TODO Add method documentation */
public final void increaseWrittenBytes ( int increment , long currentTime ) { } } | if ( increment <= 0 ) { return ; } writtenBytes += increment ; lastWriteTime = currentTime ; idleCountForBoth . set ( 0 ) ; idleCountForWrite . set ( 0 ) ; if ( getService ( ) instanceof AbstractIoService ) { getService ( ) . getStatistics ( ) . increaseWrittenBytes ( increment , currentTime ) ; } increaseScheduledWrit... |
public class PackedDecimal { /** * Setzt die Anzahl der Nachkommastellen .
* @ param n z . B . 0 , falls keine Nachkommastelle gesetzt sein soll
* @ param mode Rundungs - Mode
* @ return eine neue { @ link PackedDecimal } */
public PackedDecimal setScale ( int n , RoundingMode mode ) { } } | BigDecimal result = toBigDecimal ( ) . setScale ( n , mode ) ; return PackedDecimal . valueOf ( result ) ; |
public class AbstractRemoveTask { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . msgstore . cache . xalist . Task # commitStage1 ( com . ibm . ws . sib . msgstore . Transaction ) */
public final void commitInternal ( final PersistentTransaction transaction ) throws SevereMessageStoreException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "commitInternal" , transaction ) ; getLink ( ) . commitRemove ( transaction ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "commitInternal" ) ; |
public class QueryExecutionContextMarshaller { /** * Marshall the given parameter object . */
public void marshall ( QueryExecutionContext queryExecutionContext , ProtocolMarshaller protocolMarshaller ) { } } | if ( queryExecutionContext == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( queryExecutionContext . getDatabase ( ) , DATABASE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e ... |
public class BaseNCodec { /** * Calculates the amount of space needed to encode the supplied array .
* @ param pArray byte [ ] array which will later be encoded
* @ return amount of space needed to encoded the supplied array .
* Returns a long since a max - len array will require > Integer . MAX _ VALUE */
public... | // Calculate non - chunked size - rounded up to allow for padding
// cast to long is needed to avoid possibility of overflow
long len = ( ( pArray . length + unencodedBlockSize - 1 ) / unencodedBlockSize ) * ( long ) encodedBlockSize ; if ( lineLength > 0 ) { // We ' re using chunking
// Round up to nearest multiple
le... |
public class pqpolicy { /** * Use this API to fetch filtered set of pqpolicy resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static pqpolicy [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | pqpolicy obj = new pqpolicy ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; pqpolicy [ ] response = ( pqpolicy [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class FullTextLinkList { /** * indexed getter for fullTextLinks - gets an indexed value -
* @ generated
* @ param i index in the array to get
* @ return value of the element at index i */
public FullTextLink getFullTextLinks ( int i ) { } } | if ( FullTextLinkList_Type . featOkTst && ( ( FullTextLinkList_Type ) jcasType ) . casFeat_fullTextLinks == null ) jcasType . jcas . throwFeatMissing ( "fullTextLinks" , "de.julielab.jules.types.FullTextLinkList" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( FullTextLinkList_T... |
public class WeakObjectRegistry { /** * Registers an object in the meta model if it is not already registered .
* @ param object
* The object to register .
* @ return The id of the object . It doesn ' t matter if the object was just registered or already known . */
public UUID registerIfUnknown ( final Object obj... | final Optional < UUID > id = getId ( object ) ; if ( ! id . isPresent ( ) ) { return registerObject ( object ) ; } return id . get ( ) ; |
public class Graph { /** * Function that checks whether a Graph is a valid Graph ,
* as defined by the given { @ link GraphValidator } .
* @ return true if the Graph is valid . */
public Boolean validate ( GraphValidator < K , VV , EV > validator ) throws Exception { } } | return validator . validate ( this ) ; |
public class JDKLoggingRouter { /** * Calls the { @ link Logger } for the given clazz .
* @ param logLevel the log level
* @ param message the to be logged message
* @ param clazz the originating class */
@ Override public void logMessage ( LogLevel logLevel , String message , Class clazz , String methodName ) { ... | Logger logger = Logger . getLogger ( clazz . getName ( ) ) ; logger . logp ( convertToJDK14Level ( logLevel ) , clazz . getName ( ) , methodName , message ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.