signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class BlockTemplate { /** * If the tree is a { @ link JCBlock } , returns a list of disjoint matches corresponding to the exact * list of template statements found consecutively ; otherwise , returns an empty list . */ @ Override public Iterable < BlockTemplateMatch > match ( JCTree tree , Context context ) { ...
// TODO ( lowasser ) : consider nonconsecutive matches ? if ( tree instanceof JCBlock ) { JCBlock block = ( JCBlock ) tree ; ImmutableList < JCStatement > targetStatements = ImmutableList . copyOf ( block . getStatements ( ) ) ; return matchesStartingAnywhere ( block , 0 , targetStatements , context ) . first ( ) . or ...
public class FNCImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setFNNRGLen ( Integer newFNNRGLen ) { } }
Integer oldFNNRGLen = fnnrgLen ; fnnrgLen = newFNNRGLen ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . FNC__FNNRG_LEN , oldFNNRGLen , fnnrgLen ) ) ;
public class SegmentationHelper { /** * Read all of the bytes in an input stream . * @ param bytes the { @ link InputStream } of bytes to read * @ return an array of all bytes retrieved from the stream * @ throws IOException if the stream fails */ public static byte [ ] readAll ( InputStream bytes ) throws IOExce...
ByteArrayOutputStream builder = new ByteArrayOutputStream ( ) ; int read = bytes . read ( ) ; while ( read != - 1 ) { builder . write ( read ) ; read = bytes . read ( ) ; } builder . flush ( ) ; bytes . close ( ) ; return builder . toByteArray ( ) ;
public class FacesServlet { /** * < p class = " changed _ modified _ 2_0 " > < span * class = " changed _ modified _ 2_2 " > Process < / span > an incoming request , * and create the corresponding response according to the following * specification . < / p > * < div class = " changed _ modified _ 2_0 " > * < ...
HttpServletRequest request = ( HttpServletRequest ) req ; HttpServletResponse response = ( HttpServletResponse ) resp ; requestStart ( request . getRequestURI ( ) ) ; // V3 Probe hook if ( ! isHttpMethodValid ( request ) ) { response . sendError ( HttpServletResponse . SC_BAD_REQUEST ) ; return ; } if ( Thread . curren...
public class Derulo { /** * Get a java object from a JSON value * @ param jsonString a JSON value in string form * @ return a Number , Boolean , JsonObject , JsonArray or JsonNull * @ throws JsonException */ public static Object fromJSON ( String jsonString ) { } }
List < Token > tokens = Derulo . toTokens ( jsonString ) ; return fromJSON ( tokens ) ;
public class CmsTouch { /** * Rewrites the content of the given file . < p > * @ param resource the resource to rewrite the content for * @ throws CmsException if something goes wrong */ private static void hardTouch ( CmsObject cms , CmsResource resource ) throws CmsException { } }
CmsFile file = cms . readFile ( resource ) ; file . setContents ( file . getContents ( ) ) ; cms . writeFile ( file ) ;
public class EditManager { /** * Evaluate whether attribute changes exist in the ilfChild and if so apply them . Returns true * if some changes existed . If changes existed but matched those in the original node then they * are not applicable , are removed from the editSet , and false is returned . */ public static...
// first get edit set if it exists Element editSet = null ; try { editSet = getEditSet ( plfChild , null , null , false ) ; } catch ( Exception e ) { // should never occur unless problem during create in getEditSet // and we are telling it not to create . return false ; } if ( editSet == null || editSet . getChildNodes...
public class JsonParser { /** * Main parsing routine * @ throws JsonParseException * In case a parse error occurs . */ public void parse ( ) throws JsonParseException { } }
_readValue ( ) ; // Check for trailing whitespaces _skipSpaces ( ) ; final IJsonParsePosition aStartPos = m_aPos . getClone ( ) ; // Check for expected end of input final int c = _readChar ( ) ; if ( c != EOI ) throw _parseEx ( aStartPos , "Invalid character " + _getPrintableChar ( c ) + " after JSON root object" ) ;
public class fe_copy { /** * h = f */ public static void fe_copy ( int [ ] h , int [ ] f ) { } }
int f0 = f [ 0 ] ; int f1 = f [ 1 ] ; int f2 = f [ 2 ] ; int f3 = f [ 3 ] ; int f4 = f [ 4 ] ; int f5 = f [ 5 ] ; int f6 = f [ 6 ] ; int f7 = f [ 7 ] ; int f8 = f [ 8 ] ; int f9 = f [ 9 ] ; h [ 0 ] = f0 ; h [ 1 ] = f1 ; h [ 2 ] = f2 ; h [ 3 ] = f3 ; h [ 4 ] = f4 ; h [ 5 ] = f5 ; h [ 6 ] = f6 ; h [ 7 ] = f7 ; h [ 8 ] = ...
public class SelectOneMenuRenderer { /** * Renders the optional label . This method is protected in order to allow * third - party frameworks to derive from it . * @ param rw * the response writer * @ param clientId * the id used by the label to refernce the input field * @ throws IOException * may be thr...
String label = menu . getLabel ( ) ; { if ( ! menu . isRenderLabel ( ) ) { label = null ; } } if ( label != null ) { rw . startElement ( "label" , menu ) ; rw . writeAttribute ( "for" , clientId , "for" ) ; generateErrorAndRequiredClass ( menu , rw , outerClientId , menu . getLabelStyleClass ( ) , Responsive . getRespo...
public class StaticTypeCheckingVisitor { /** * A helper method which determines which receiver class should be used in error messages when a field or attribute * is not found . The returned type class depends on whether we have temporary type information available ( due to * instanceof checks ) and whether there is...
if ( ! typeCheckingContext . temporaryIfBranchTypeInformation . empty ( ) ) { List < ClassNode > nodes = getTemporaryTypesForExpression ( expr ) ; if ( nodes != null && nodes . size ( ) == 1 ) return nodes . get ( 0 ) ; } return type ;
public class ArtifactoryServer { /** * To populate the dropdown list from the jelly */ public List < Integer > getConnectionRetries ( ) { } }
List < Integer > items = new ArrayList < Integer > ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { items . add ( i ) ; } return items ;
public class NioGroovyMethods { /** * Create a new ObjectOutputStream for this path and then pass it to the * closure . This method ensures the stream is closed after the closure * returns . * @ param self a Path * @ param closure a closure * @ return the value returned by the closure * @ throws java . io ....
return IOGroovyMethods . withStream ( newObjectOutputStream ( self ) , closure ) ;
public class JdbcUtil { /** * Imports the data from < code > DataSet < / code > to database . * @ param dataset * @ param selectColumnNames * @ param offset * @ param count * @ param stmt the column order in the sql must be consistent with the column order in the DataSet . * @ return * @ throws UncheckedS...
return importData ( dataset , selectColumnNames , offset , count , Fn . alwaysTrue ( ) , stmt , batchSize , batchInterval ) ;
public class JKLogger { /** * Trace . * @ param format the format * @ param msg the msg */ public void trace ( Object format , Object ... msg ) { } }
if ( logger . isTraceEnabled ( ) ) { if ( format . toString ( ) . contains ( "{" ) ) { logger . trace ( format . toString ( ) , msg ) ; } else { logger . trace ( format . toString ( ) . concat ( " " ) . concat ( JKStringUtil . concat ( msg ) ) ) ; } }
public class MailMessageConverter { /** * Construct base64 body part from image data . * @ param image * @ param contentType * @ return * @ throws IOException */ protected BodyPart handleImageBinaryPart ( MimePart image , String contentType ) throws IOException , MessagingException { } }
ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; FileCopyUtils . copy ( image . getInputStream ( ) , bos ) ; String base64 = Base64 . encodeBase64String ( bos . toByteArray ( ) ) ; return new BodyPart ( base64 , contentType ) ;
public class ZipUtils { /** * APDPlat中的重要打包机制 * 将jar文件中的某个文件夹里面的内容复制到某个文件夹 * @ param jar 包含静态资源的jar包 * @ param subDir jar中包含待复制静态资源的文件夹名称 * @ param loc 静态资源复制到的目标文件夹 * @ param force 目标静态资源存在的时候是否强制覆盖 */ public static void unZip ( String jar , String subDir , String loc , boolean force ) { } }
try { File base = new File ( loc ) ; if ( ! base . exists ( ) ) { base . mkdirs ( ) ; } ZipFile zip = new ZipFile ( new File ( jar ) ) ; Enumeration < ? extends ZipEntry > entrys = zip . entries ( ) ; while ( entrys . hasMoreElements ( ) ) { ZipEntry entry = entrys . nextElement ( ) ; String name = entry . getName ( ) ...
public class ExpiresFilter { /** * Parse configuration lines like ' * < tt > access plus 1 month 15 days 2 hours < / tt > ' or ' * < tt > modification 1 day 2 hours 5 seconds < / tt > ' * @ param line */ protected ExpiresConfiguration parseExpiresConfiguration ( String line ) { } }
line = line . trim ( ) ; StringTokenizer tokenizer = new StringTokenizer ( line , " " ) ; String currentToken ; try { currentToken = tokenizer . nextToken ( ) ; } catch ( NoSuchElementException e ) { throw new IllegalStateException ( "Starting point (access|now|modification|a<seconds>|m<seconds>) not found in directive...
public class LogPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getSettingsSaved ( ) { } }
if ( settingsSavedEClass == null ) { settingsSavedEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( LogPackage . eNS_URI ) . getEClassifiers ( ) . get ( 12 ) ; } return settingsSavedEClass ;
public class CorporationApi { /** * Get corporation shareholders Return the current shareholders of a * corporation . - - - This route is cached for up to 3600 seconds - - - Requires * one of the following EVE corporation role ( s ) : Director SSO Scope : * esi - wallet . read _ corporation _ wallets . v1 * @ p...
ApiResponse < List < CorporationShareholdersResponse > > resp = getCorporationsCorporationIdShareholdersWithHttpInfo ( corporationId , datasource , ifNoneMatch , page , token ) ; return resp . getData ( ) ;
public class VersionImpl { /** * { @ inheritDoc } */ public Version [ ] getPredecessors ( ) throws RepositoryException { } }
checkValid ( ) ; PropertyData predecessorsData = ( PropertyData ) dataManager . getItemData ( nodeData ( ) , new QPathEntry ( Constants . JCR_PREDECESSORS , 0 ) , ItemType . PROPERTY ) ; if ( predecessorsData == null ) { return new Version [ 0 ] ; } List < ValueData > predecessorsValues = predecessorsData . getValues (...
public class ToLongFunctionBuilder { /** * One of ways of creating builder . This might be the only way ( considering all _ functional _ builders ) that might be utilize to specify generic params only once . */ @ Nonnull public static < T > ToLongFunctionBuilder < T > toLongFunction ( Consumer < ToLongFunction < T > > ...
return new ToLongFunctionBuilder ( consumer ) ;
public class CommerceTaxMethodWrapper { /** * Sets the localized names of this commerce tax method from the map of locales and localized names , and sets the default locale . * @ param nameMap the locales and localized names of this commerce tax method * @ param defaultLocale the default locale */ @ Override public...
_commerceTaxMethod . setNameMap ( nameMap , defaultLocale ) ;
public class UniverseApi { /** * Get constellation information ( asynchronously ) Get information on a * constellation - - - This route expires daily at 11:05 * @ param constellationId * constellation _ id integer ( required ) * @ param acceptLanguage * Language to use in the response ( optional , default to ...
com . squareup . okhttp . Call call = getUniverseConstellationsConstellationIdValidateBeforeCall ( constellationId , acceptLanguage , datasource , ifNoneMatch , language , callback ) ; Type localVarReturnType = new TypeToken < ConstellationResponse > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarRet...
public class ZipUtil { /** * Compresses the given directory and all of its sub - directories into the passed in * stream . It is the responsibility of the caller to close the passed in * stream properly . * @ param sourceDir * root directory . * @ param os * output stream ( will be buffered in this method )...
pack ( sourceDir , os , IdentityNameMapper . INSTANCE , compressionLevel ) ;
public class MarkLogicClientImpl { /** * as we use mergeGraphs , baseURI is always file . toURI */ public void performAdd ( File file , String baseURI , RDFFormat dataFormat , Transaction tx , Resource ... contexts ) throws RDFParseException { } }
try { graphManager . setDefaultMimetype ( dataFormat . getDefaultMIMEType ( ) ) ; if ( dataFormat . equals ( RDFFormat . NQUADS ) || dataFormat . equals ( RDFFormat . TRIG ) ) { graphManager . mergeGraphs ( new FileHandle ( file ) , tx ) ; } else { if ( notNull ( contexts ) && contexts . length > 0 ) { for ( int i = 0 ...
public class AutoValueOrOneOfProcessor { /** * Returns the contents of the { @ code AutoValue . CopyAnnotations . exclude } element , as a set of * { @ code TypeMirror } where each type is an annotation type . */ private Set < TypeMirror > getExcludedAnnotationTypes ( Element element ) { } }
Optional < AnnotationMirror > maybeAnnotation = getAnnotationMirror ( element , COPY_ANNOTATIONS_NAME ) ; if ( ! maybeAnnotation . isPresent ( ) ) { return ImmutableSet . of ( ) ; } @ SuppressWarnings ( "unchecked" ) List < AnnotationValue > excludedClasses = ( List < AnnotationValue > ) getAnnotationValue ( maybeAnnot...
public class LinkedListNodeImpl { /** * Inserts newElement after currentElement in the list defined by this * LinkedListManager . * @ param currentElement the reference element * @ param newElement the new element */ @ Override public void listInsertAfter ( final T currentElement , final T newElement ) throws Fra...
if ( currentElement . getUuid ( ) . equals ( newElement . getUuid ( ) ) ) { throw new IllegalStateException ( "Cannot link a node to itself!" ) ; } final T next = listGetNext ( currentElement ) ; if ( next == null ) { linkNodes ( getSiblingLinkType ( ) , currentElement , newElement ) ; } else { // unlink predecessor an...
public class RTMP { /** * Returns channel information for a given channel id . * @ param channelId * @ return channel info */ private ChannelInfo getChannelInfo ( int channelId ) { } }
ChannelInfo info = channels . putIfAbsent ( channelId , new ChannelInfo ( ) ) ; if ( info == null ) { info = channels . get ( channelId ) ; } return info ;
public class XSLTElementProcessor { /** * Set the properties of an object from the given attribute list . * @ param handler The stylesheet ' s Content handler , needed for * error reporting . * @ param rawName The raw name of the owner element , needed for * error reporting . * @ param attributes The list of ...
XSLTElementDef def = getElemDef ( ) ; AttributesImpl undefines = null ; boolean isCompatibleMode = ( ( null != handler . getStylesheet ( ) && handler . getStylesheet ( ) . getCompatibleMode ( ) ) || ! throwError ) ; if ( isCompatibleMode ) undefines = new AttributesImpl ( ) ; // Keep track of which XSLTAttributeDefs ha...
public class POContextStack { /** * Pop a non - stateful context from the Stack . Stateful contexts can be removed with { @ link # clearStateContexts ( ) } */ @ Override public synchronized IPOContext pop ( ) { } }
IPOContext obj = peek ( ) ; int len = size ( ) ; for ( int i = len - 1 ; i >= 0 ; i -- ) { if ( ! this . get ( i ) . isStateful ( ) ) { removeElementAt ( i ) ; return obj ; } } return obj ;
public class ClusterManager { /** * Allows the management thread to passively take part in the cluster * operations . * Other cluster members will not be made aware of this instance . */ public void launchAuto ( boolean active ) { } }
killAuto ( ) ; if ( mSock != null ) { try { mAuto = new AutomaticClusterManagementThread ( this , mCluster . getClusterName ( ) , active ) ; } catch ( Exception e ) { mAuto = new AutomaticClusterManagementThread ( this , active ) ; } if ( mAuto != null ) { mAuto . start ( ) ; } }
public class XAbstractWhileExpressionImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setPredicate ( XExpression newPredicate ) { } }
if ( newPredicate != predicate ) { NotificationChain msgs = null ; if ( predicate != null ) msgs = ( ( InternalEObject ) predicate ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - XbasePackage . XABSTRACT_WHILE_EXPRESSION__PREDICATE , null , msgs ) ; if ( newPredicate != null ) msgs = ( ( InternalEObject ) newPredi...
public class ShellCommandParser { /** * Parses arguments of a shell command line * @ param args the arguments to parse * @ param excluded a collection of commands that should not be parsed * @ return the parser result * @ throws IntrospectionException if a { @ link de . undercouch . citeproc . tool . CSLToolCom...
List < Class < ? extends Command > > classes = new ArrayList < > ( ) ; return getCommandClass ( args , 0 , classes , new HashSet < > ( excluded ) ) ;
public class ListDialogDecorator { /** * Adapts the color of the dialog ' s list items . */ private void adaptItemColor ( ) { } }
if ( adapter != null ) { RecyclerView . Adapter < ? > wrappedAdapter = adapter . getWrappedAdapter ( ) ; if ( wrappedAdapter instanceof ArrayRecyclerViewAdapter ) { ( ( ArrayRecyclerViewAdapter ) wrappedAdapter ) . setItemColor ( itemColor ) ; } }
public class ServerConfiguration { /** * Gets the value for the given key as a list . * @ param key the key to get the value for * @ param delimiter the delimiter to split the values * @ return the list of values for the given key */ public static List < String > getList ( PropertyKey key , String delimiter ) { }...
return sConf . getList ( key , delimiter ) ;
public class DebugRingSet { /** * { @ inheritDoc } */ @ Override public boolean contains ( IAtom atom ) { } }
logger . debug ( "Contains atom: " , super . contains ( atom ) ) ; return super . contains ( atom ) ;
public class Bagging { /** * Creates a new data set from the given sample counts . Points sampled * multiple times will have multiple entries in the data set . * @ param dataSet the data set that was sampled from * @ param sampledCounts the sampling values obtained from * { @ link # sampleWithReplacement ( int ...
ClassificationDataSet destination = new ClassificationDataSet ( dataSet . getNumNumericalVars ( ) , dataSet . getCategories ( ) , dataSet . getPredicting ( ) ) ; for ( int i = 0 ; i < sampledCounts . length ; i ++ ) for ( int j = 0 ; j < sampledCounts [ i ] ; j ++ ) { DataPoint dp = dataSet . getDataPoint ( i ) ; desti...
public class MetaLocale { /** * Render this locale to a string in compact or expanded form . */ private String render ( boolean compact ) { } }
StringBuilder buf = new StringBuilder ( ) ; render ( buf , LANGUAGE , UNDEF_LANGUAGE , compact ) ; render ( buf , SCRIPT , UNDEF_SCRIPT , compact ) ; render ( buf , TERRITORY , UNDEF_TERRITORY , compact ) ; render ( buf , VARIANT , UNDEF_VARIANT , compact ) ; return buf . toString ( ) ;
public class EnumerableType { /** * Returns a new Enumerable ( unmodifiable when possible ) * with items from sourceEnumerable mapped by mapFunction . */ public Object map ( Object sourceEnumerable , Function mapFunction ) { } }
return map ( sourceEnumerable , mapFunction , false ) ;
public class RepositoryResolver { /** * Create the install lists for the resources which we were asked to resolve * @ return the install lists */ List < List < RepositoryResource > > createInstallLists ( ) { } }
List < List < RepositoryResource > > installLists = new ArrayList < > ( ) ; // Create install list for each sample for ( SampleResource sample : samplesToInstall ) { installLists . add ( createInstallList ( sample ) ) ; } // Create install list for each requested feature for ( String featureName : requestedFeatureNames...
public class LifecycleManager { /** * Unregister query related MBeans for a cache , primarily the statistics , but also all other MBeans from the same * related group . */ private void unregisterQueryMBeans ( ComponentRegistry cr , String cacheName ) { } }
if ( mbeanServer != null ) { try { InfinispanQueryStatisticsInfo stats = cr . getComponent ( InfinispanQueryStatisticsInfo . class ) ; if ( stats != null ) { GlobalJmxStatisticsConfiguration jmxConfig = cr . getGlobalComponentRegistry ( ) . getGlobalConfiguration ( ) . globalJmxStatistics ( ) ; String queryGroupName = ...
public class gslbvserver { /** * Use this API to fetch filtered set of gslbvserver resources . * filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */ public static gslbvserver [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
gslbvserver obj = new gslbvserver ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; gslbvserver [ ] response = ( gslbvserver [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class JCudaDriver { /** * Allocates pitched device memory . * < pre > * CUresult cuMemAllocPitch ( * CUdeviceptr * dptr , * size _ t * pPitch , * size _ t WidthInBytes , * size _ t Height , * unsigned int ElementSizeBytes ) * < / pre > * < div > * < p > Allocates pitched device memory . * A...
return checkResult ( cuMemAllocPitchNative ( dptr , pPitch , WidthInBytes , Height , ElementSizeBytes ) ) ;
public class HttpResponse { /** * 将结果对象输出 * @ param obj 输出对象 */ @ SuppressWarnings ( "unchecked" ) public void finish ( final Object obj ) { } }
finish ( request . getJsonConvert ( ) , ( Type ) null , obj ) ;
public class SimpleGapFunction { /** * Executes the gap function . If the first interval ( < code > lhs < / code > ) is * before the second ( < code > rhs < / code > ) and the distance between them is * less than or equal to the < code > maximumGap < / code > , then * this method returns < code > true < / code > ...
if ( this . relation == null ) { return false ; } else { return this . relation . hasRelation ( lhs , rhs ) ; }
public class PopupController { /** * init fxml when loaded . */ @ PostConstruct public void init ( ) { } }
try { popup = new JFXPopup ( FXMLLoader . load ( getClass ( ) . getResource ( "/fxml/ui/popup/DemoPopup.fxml" ) ) ) ; } catch ( IOException ioExc ) { ioExc . printStackTrace ( ) ; } burger1 . setOnMouseClicked ( ( e ) -> popup . show ( rippler1 , PopupVPosition . TOP , PopupHPosition . LEFT ) ) ; burger2 . setOnMouseCl...
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getOBPRGLength ( ) { } }
if ( obprgLengthEEnum == null ) { obprgLengthEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 53 ) ; } return obprgLengthEEnum ;
public class CrowdingDistance { /** * Assigns crowding distances to all solutions in a < code > SolutionSet < / code > . * @ param solutionList The < code > SolutionSet < / code > . * @ throws org . uma . jmetal . util . JMetalException */ @ Override public void computeDensityEstimator ( List < S > solutionList ) {...
int size = solutionList . size ( ) ; if ( size == 0 ) { return ; } if ( size == 1 ) { solutionList . get ( 0 ) . setAttribute ( getAttributeIdentifier ( ) , Double . POSITIVE_INFINITY ) ; return ; } if ( size == 2 ) { solutionList . get ( 0 ) . setAttribute ( getAttributeIdentifier ( ) , Double . POSITIVE_INFINITY ) ; ...
public class SVGPlot { /** * Create a SVG rectangle * @ param x X coordinate * @ param y Y coordinate * @ param w Width * @ param h Height * @ return new element */ public Element svgRect ( double x , double y , double w , double h ) { } }
return SVGUtil . svgRect ( document , x , y , w , h ) ;
public class NetworkTopology { /** * Check if two nodes are on the same rack * @ param node1 one node * @ param node2 another node * @ return true if node1 and node2 are pm the same rack ; false otherwise * @ exception IllegalArgumentException when either node1 or node2 is null , or * node1 or node2 do not be...
if ( node1 == null || node2 == null ) { return false ; } netlock . readLock ( ) . lock ( ) ; try { return node1 . getParent ( ) == node2 . getParent ( ) ; } finally { netlock . readLock ( ) . unlock ( ) ; }
public class DB { /** * Selects user metadata with a specified key . * @ param userId The user id . * @ param key The metadata key . * @ return The list of values . * @ throws SQLException on database error . */ public List < Meta > userMetadata ( final long userId , final String key ) throws SQLException { } }
Connection conn = null ; PreparedStatement stmt = null ; ResultSet rs = null ; List < Meta > meta = Lists . newArrayListWithExpectedSize ( 16 ) ; Timer . Context ctx = metrics . userMetadataTimer . time ( ) ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . prepareStatement ( selectUserMetaKeySQL ) ;...
public class PlannerReader { /** * This method extracts data for a single calendar from a Planner file . * @ param plannerCalendar Calendar data * @ param parentMpxjCalendar parent of derived calendar */ private void readCalendar ( net . sf . mpxj . planner . schema . Calendar plannerCalendar , ProjectCalendar pare...
// Create a calendar instance ProjectCalendar mpxjCalendar = m_projectFile . addCalendar ( ) ; // Populate basic details mpxjCalendar . setUniqueID ( getInteger ( plannerCalendar . getId ( ) ) ) ; mpxjCalendar . setName ( plannerCalendar . getName ( ) ) ; mpxjCalendar . setParent ( parentMpxjCalendar ) ; // Set working...
public class FacebookAlbumListFragment { /** * Asynchronously requests the user name associated with the linked account . Tries to finish the * { @ link FacebookSettingsActivity } when completed . */ private void requestAccountName ( ) { } }
GraphUserCallback callback = new GraphUserCallback ( ) { @ Override public void onCompleted ( GraphUser user , Response response ) { FacebookSettingsActivity activity = ( FacebookSettingsActivity ) getActivity ( ) ; if ( activity == null || activity . isFinishing ( ) ) { return ; } if ( response != null && response . g...
public class SentenceDetectorME { /** * Detect the position of the first words of sentences in a String . * @ param s The string to be processed . * @ return A integer array containing the positions of the end index of * every sentence */ public int [ ] sentPosDetect ( String s ) { } }
double sentProb = 1 ; sentProbs . clear ( ) ; StringBuffer sb = new StringBuffer ( s ) ; List enders = scanner . getPositions ( s ) ; List positions = new ArrayList ( enders . size ( ) ) ; for ( int i = 0 , end = enders . size ( ) , index = 0 ; i < end ; i ++ ) { Integer candidate = ( Integer ) enders . get ( i ) ; int...
public class GVRAccessibilitySpeech { /** * Start speech recognizer . * @ param speechListener */ public void start ( GVRAccessibilitySpeechListener speechListener ) { } }
mTts . setSpeechListener ( speechListener ) ; mTts . getSpeechRecognizer ( ) . startListening ( mTts . getSpeechRecognizerIntent ( ) ) ;
public class BackupClientImpl { /** * failureProcessing . * @ param data * response data * @ return String * result * @ throws BackupExecuteException * will be generated BackupExecuteException */ private String failureProcessing ( BackupAgentResponse response ) throws BackupExecuteException { } }
try { String result = "\nFailure :\n" + "\tstatus code : " + response . getStatus ( ) + "\n" + "\tmessage : " + new String ( response . getResponseData ( ) , "UTF-8" ) + "\n\n" ; return result ; } catch ( UnsupportedEncodingException e ) { throw new BackupExecuteException ( "Can not encoded the responce : " + e . ...
public class SubscribableQueue { /** * Adds a collection of objects to the queue , targeting only the subscriber identified by the provided identifier object , unless said object is null . The added objects will only be visible to the * subscriber . * @ param c The collection of objects to add * @ param identifie...
checkNotNullArgument ( c ) ; if ( isPublisherThread ( ) ) { boolean changed = false ; if ( identifier != null ) { final Long id = subscriberIdentifiers . get ( identifier ) ; checkNotNullIdentifier ( id ) ; changed = queues . get ( id ) . addAll ( c ) ; } else { for ( Queue < T > queue : queues . values ( ) ) { if ( qu...
public class EntityTagResourceProvider { /** * todo : response for case mixed case where some subset of creations fail */ @ Override public Collection < String > createResources ( Request request ) throws InvalidQueryException , ResourceNotFoundException , ResourceAlreadyExistsException { } }
Collection < String > relativeUrls = new ArrayList < > ( ) ; AtlasQuery atlasQuery = queryFactory . createEntityQuery ( request ) ; Collection < String > guids = new ArrayList < > ( ) ; for ( Map < String , Object > entityMap : atlasQuery . execute ( ) ) { guids . add ( String . valueOf ( entityMap . get ( "id" ) ) ) ;...
public class InputSettings { /** * Used to select the audio stream to decode for inputs that have multiple available . * @ param audioSelectors * Used to select the audio stream to decode for inputs that have multiple available . */ public void setAudioSelectors ( java . util . Collection < AudioSelector > audioSel...
if ( audioSelectors == null ) { this . audioSelectors = null ; return ; } this . audioSelectors = new java . util . ArrayList < AudioSelector > ( audioSelectors ) ;
public class CoordinatesResolver { /** * { @ inheritDoc } */ public final File resolve ( String value ) throws Exception { } }
MavenGAV mavenGAV = resolveCoordinates ( value ) ; logger . info ( String . format ( "Using maven coordinates '%s' as project" , mavenGAV ) ) ; resolveTemporaryProjectFile ( ) ; return resolveProjectFile ( ) ;
public class AmfView { /** * { @ inheritDoc } */ @ Override protected void renderMergedOutputModel ( Map < String , Object > model , HttpServletRequest request , HttpServletResponse response ) throws Exception { } }
Object value = filterModel ( model ) ; try { AmfTrace trace = null ; if ( log . isDebugEnabled ( ) ) { trace = new AmfTrace ( ) ; } ByteArrayOutputStream outBuffer = new ByteArrayOutputStream ( ) ; SerializationContext context = new SerializationContext ( ) ; Amf3Output out = new Amf3Output ( context ) ; if ( trace != ...
public class EmailTemplate { /** * Process a PluginMessage and creates email content based on templates . * @ param msg the PluginMessage to be processed * @ return a Map with following entries : * - " emailSubject " : Subject of the email * - " emailBodyPlain " : Content for plain text email * - " emailBodyH...
Map < String , String > emailProcessed = new HashMap < > ( ) ; PluginMessageDescription pmDesc = new PluginMessageDescription ( msg ) ; // Prepare emailSubject directly from PluginMessageDescription class emailProcessed . put ( "emailSubject" , pmDesc . getEmailSubject ( ) ) ; // Check if templates are defined in prope...
public class BaseHashMap { /** * clear all the key / value data in a range . */ private void clearElementArrays ( final int from , final int to ) { } }
if ( isIntKey ) { int counter = to ; while ( -- counter >= from ) { intKeyTable [ counter ] = 0 ; } } else if ( isLongKey ) { int counter = to ; while ( -- counter >= from ) { longKeyTable [ counter ] = 0 ; } } else if ( isObjectKey ) { int counter = to ; while ( -- counter >= from ) { objectKeyTable [ counter ] = null...
public class SVGParser { /** * < view > element */ private void view ( Attributes attributes ) throws SVGParseException { } }
debug ( "<view>" ) ; if ( currentElement == null ) throw new SVGParseException ( "Invalid document. Root element must be <svg>" ) ; SVG . View obj = new SVG . View ( ) ; obj . document = svgDocument ; obj . parent = currentElement ; parseAttributesCore ( obj , attributes ) ; parseAttributesConditional ( obj , attribute...
public class GroovyMain { /** * package - level visibility for testing purposes ( just usage / errors at this stage ) */ static void processArgs ( String [ ] args , final PrintStream out , final PrintStream err ) { } }
GroovyCommand groovyCommand = new GroovyCommand ( ) ; CommandLine parser = new CommandLine ( groovyCommand ) . setUnmatchedArgumentsAllowed ( true ) . setStopAtUnmatched ( true ) ; try { List < CommandLine > result = parser . parse ( args ) ; if ( CommandLine . printHelpIfRequested ( result , out , err , Help . Ansi . ...
public class SeaGlassTabbedPaneUI { /** * Update the Synth styles when something changes . * @ param c the component . */ private void updateStyle ( JTabbedPane c ) { } }
SeaGlassContext context = getContext ( c , ENABLED ) ; SynthStyle oldStyle = style ; style = SeaGlassLookAndFeel . updateStyle ( context , this ) ; tabPlacement = tabPane . getTabPlacement ( ) ; orientation = ControlOrientation . getOrientation ( tabPlacement == LEFT || tabPlacement == RIGHT ? VERTICAL : HORIZONTAL ) ;...
public class Atom10Generator { /** * Utility method to serialize an entry to writer . */ public static void serializeEntry ( final Entry entry , final Writer writer ) throws IllegalArgumentException , FeedException , IOException { } }
// Build a feed containing only the entry final List < Entry > entries = new ArrayList < Entry > ( ) ; entries . add ( entry ) ; final Feed feed1 = new Feed ( ) ; feed1 . setFeedType ( "atom_1.0" ) ; feed1 . setEntries ( entries ) ; // Get Rome to output feed as a JDOM document final WireFeedOutput wireFeedOutput = new...
public class TSDB { /** * Collects the stats and metrics tracked by this instance . * @ param collector The collector to use . */ public void collectStats ( final StatsCollector collector ) { } }
final byte [ ] [ ] kinds = { METRICS_QUAL . getBytes ( CHARSET ) , TAG_NAME_QUAL . getBytes ( CHARSET ) , TAG_VALUE_QUAL . getBytes ( CHARSET ) } ; try { final Map < String , Long > used_uids = UniqueId . getUsedUIDs ( this , kinds ) . joinUninterruptibly ( ) ; collectUidStats ( metrics , collector ) ; if ( config . ge...
public class AgigaSentenceReader { /** * Assumes the position of vn is at a " sent " tag * @ return */ private List < AgigaTypedDependency > parseDependencies ( VTDNav vn , DependencyForm form ) throws NavException , PilotException { } }
require ( vn . matchElement ( AgigaConstants . SENTENCE ) ) ; // Move to the < basic - deps > tag require ( vn . toElement ( VTDNav . FC , form . getXmlTag ( ) ) ) ; List < AgigaTypedDependency > agigaDeps = new ArrayList < AgigaTypedDependency > ( ) ; // Loop through the dep tags AutoPilot basicDepRelAp = new AutoPilo...
public class WebUtils { /** * Converts the given params into a query string started with ? * @ param params The params * @ param encoding The encoding to use * @ return The query string * @ throws UnsupportedEncodingException If the given encoding is not supported */ @ SuppressWarnings ( "rawtypes" ) public sta...
if ( encoding == null ) encoding = "UTF-8" ; StringBuilder queryString = new StringBuilder ( "?" ) ; for ( Iterator i = params . entrySet ( ) . iterator ( ) ; i . hasNext ( ) ; ) { Map . Entry entry = ( Map . Entry ) i . next ( ) ; boolean hasMore = i . hasNext ( ) ; boolean wasAppended = appendEntry ( entry , queryStr...
public class DataUtils { public static < T > List < T > getList ( final Cursor cursor , final Class < T > klass ) { } }
try { return getObjectsFromCursor ( cursor , klass ) ; } catch ( final Exception e ) { Logger . ex ( e ) ; return null ; }
public class VirtualMachineScaleSetsInner { /** * Gets a list of SKUs available for your VM scale set , including the minimum and maximum VM instances allowed for each SKU . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set . * @ throws IllegalArgum...
return listSkusWithServiceResponseAsync ( resourceGroupName , vmScaleSetName ) . map ( new Func1 < ServiceResponse < Page < VirtualMachineScaleSetSkuInner > > , Page < VirtualMachineScaleSetSkuInner > > ( ) { @ Override public Page < VirtualMachineScaleSetSkuInner > call ( ServiceResponse < Page < VirtualMachineScaleSe...
public class OldDataMonitor { /** * Inform monitor that some data in a deprecated format has been loaded , * and converted in - memory to a new structure . * @ param obj Saveable object ; calling save ( ) on this object will persist * the data in its new format to disk . * @ param version Hudson release when th...
OldDataMonitor odm = get ( Jenkins . getInstance ( ) ) ; try { SaveableReference ref = referTo ( obj ) ; while ( true ) { VersionRange vr = odm . data . get ( ref ) ; if ( vr != null && odm . data . replace ( ref , vr , new VersionRange ( vr , version , null ) ) ) { break ; } else if ( odm . data . putIfAbsent ( ref , ...
public class CmdLine { /** * Prints the help on the command line * @ param options Options object from commons - cli */ public static void printHelp ( final Options options ) { } }
Collection < Option > c = options . getOptions ( ) ; System . out . println ( "Command line options are:" ) ; int longestLongOption = 0 ; for ( Option op : c ) { if ( op . getLongOpt ( ) . length ( ) > longestLongOption ) { longestLongOption = op . getLongOpt ( ) . length ( ) ; } } longestLongOption += 2 ; String space...
public class ContextServiceImpl { /** * Adds each thread context configuration from this - the base instance - to a another context service * if the thread context configuration is not already present on the context service . * Precondition : invoker must have a write lock on the contextSvc parameter . * @ param ...
final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; lock . writeLock ( ) . lock ( ) ; try { // Detect and stop infinite recursion from baseContextRef if ( lock . getWriteHoldCount ( ) > 1 ) { IllegalArgumentException x = ignoreWarnOrFail ( null , IllegalArgumentException . class , "CWWKC1020.baseContextRef...
public class CmsGalleryService { /** * Returns a map with the available locales . < p > * The map entry key is the current locale and the value the localized nice name . < p > * @ return the map representation of all available locales */ private Map < String , String > buildLocalesMap ( ) { } }
TreeMap < String , String > localesMap = new TreeMap < String , String > ( ) ; Iterator < Locale > it = OpenCms . getLocaleManager ( ) . getAvailableLocales ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Locale locale = it . next ( ) ; localesMap . put ( locale . toString ( ) , locale . getDisplayName ( getWorkplace...
public class GlobalCluster { /** * The list of cluster IDs for secondary clusters within the global database cluster . Currently limited to 1 item . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setGlobalClusterMembers ( java . util . Collection ) } or { @ ...
if ( this . globalClusterMembers == null ) { setGlobalClusterMembers ( new com . amazonaws . internal . SdkInternalList < GlobalClusterMember > ( globalClusterMembers . length ) ) ; } for ( GlobalClusterMember ele : globalClusterMembers ) { this . globalClusterMembers . add ( ele ) ; } return this ;
public class RNAUtils { /** * / * To Do check for other modified phosphates ? */ private static boolean hasPhosphat ( MonomerNotationUnitRNA monomerNotationUnitRNA ) { } }
if ( monomerNotationUnitRNA . getContents ( ) . get ( monomerNotationUnitRNA . getContents ( ) . size ( ) - 1 ) . getUnit ( ) . endsWith ( "P" ) ) { LOG . info ( "MonomerNotationUnitRNA " + monomerNotationUnitRNA . getUnit ( ) + " has a phosphate" ) ; return true ; } LOG . info ( "MonomerNotationUnitRNA " + monomerNota...
public class WrappingUtils { /** * Wraps the parent ' s child with a ScaleTypeDrawable . */ static ScaleTypeDrawable wrapChildWithScaleType ( DrawableParent parent , ScalingUtils . ScaleType scaleType ) { } }
Drawable child = parent . setDrawable ( sEmptyDrawable ) ; child = maybeWrapWithScaleType ( child , scaleType ) ; parent . setDrawable ( child ) ; Preconditions . checkNotNull ( child , "Parent has no child drawable!" ) ; return ( ScaleTypeDrawable ) child ;
public class AbstractGeometryIndexController { /** * Get the real world location of the event , while making sure it is within the maximum bounds . If no maximum bounds * have been set , the original event location in world space is returned . * @ param event * The event to extract the location from . * @ retur...
Coordinate location = getLocation ( event , RenderSpace . WORLD ) ; location = getLocationWithinMaxBounds ( location ) ; return location ;
public class HystrixTimer { /** * Clears all listeners . * NOTE : This will result in race conditions if { @ link # addTimerListener ( com . netflix . hystrix . util . HystrixTimer . TimerListener ) } is being concurrently called . */ public static void reset ( ) { } }
ScheduledExecutor ex = INSTANCE . executor . getAndSet ( null ) ; if ( ex != null && ex . getThreadPool ( ) != null ) { ex . getThreadPool ( ) . shutdownNow ( ) ; }
public class BatchGetDevEndpointsRequest { /** * The list of DevEndpoint names , which may be the names returned from the < code > ListDevEndpoint < / code > operation . * @ param devEndpointNames * The list of DevEndpoint names , which may be the names returned from the < code > ListDevEndpoint < / code > * oper...
if ( devEndpointNames == null ) { this . devEndpointNames = null ; return ; } this . devEndpointNames = new java . util . ArrayList < String > ( devEndpointNames ) ;
public class DatabaseTableMetrics { /** * Record the row count for an individual database table . * @ param registry The registry to bind metrics to . * @ param tableName The name of the table to report table size for . * @ param dataSourceName Will be used to tag metrics with " db " . * @ param dataSource The ...
monitor ( registry , dataSource , dataSourceName , tableName , Tags . of ( tags ) ) ;
public class StatusCounter { /** * Increments finalStatus counter by single value . * @ param status * finalStatus for which the counter should be incremented . */ public void incrementFor ( Status status ) { } }
final int statusCounter = getValueFor ( status ) + 1 ; this . counter . put ( status , statusCounter ) ; size ++ ; if ( finalStatus == Status . PASSED && status != Status . PASSED ) { finalStatus = Status . FAILED ; }
public class InJvmContainerExecutor { /** * Overrides the parent method while still invoking it . Since * { @ link # isContainerActive ( ContainerId ) } method is also overridden here and * always returns ' false ' the super . launchContainer ( . . ) will only go through * the prep routine ( e . g . , creating te...
Container container = containerStartContext . getContainer ( ) ; Path containerWorkDir = containerStartContext . getContainerWorkDir ( ) ; super . launchContainer ( containerStartContext ) ; int exitCode = 0 ; if ( container . getLaunchContext ( ) . getCommands ( ) . toString ( ) . contains ( "bin/java" ) ) { ExecJavaC...
public class CreateFleetRequest { /** * Range of IP addresses and port settings that permit inbound traffic to access game sessions that running on the * fleet . For fleets using a custom game build , this parameter is required before game sessions running on the fleet * can accept connections . For Realtime Server...
if ( this . eC2InboundPermissions == null ) { setEC2InboundPermissions ( new java . util . ArrayList < IpPermission > ( eC2InboundPermissions . length ) ) ; } for ( IpPermission ele : eC2InboundPermissions ) { this . eC2InboundPermissions . add ( ele ) ; } return this ;
public class ConvertImage { /** * Converts a { @ link InterleavedF64 } into a { @ link GrayF64 } by computing the average value of each pixel * across all the bands . * @ param input ( Input ) The ImageInterleaved that is being converted . Not modified . * @ param output ( Optional ) The single band output image ...
if ( output == null ) { output = new GrayF64 ( input . width , input . height ) ; } else { output . reshape ( input . width , input . height ) ; } if ( BoofConcurrency . USE_CONCURRENT ) { ConvertInterleavedToSingle_MT . average ( input , output ) ; } else { ConvertInterleavedToSingle . average ( input , output ) ; } r...
public class LogRepositoryComponent { /** * Dumps trace records stored in the memory buffer to disk . This action * happens only if trace destination was set to memory . */ public static synchronized void dumpTraceMemory ( ) { } }
LogRepositoryWriter writer = getBinaryHandler ( ) . getTraceWriter ( ) ; if ( writer instanceof LogRepositoryWriterCBuffImpl ) { ( ( LogRepositoryWriterCBuffImpl ) writer ) . dumpItems ( ) ; }
public class TranspilationPasses { /** * Process transpilations if the input language needs transpilation from certain features , on any * JS file that has features not present in the compiler ' s output language mode . * @ param compiler An AbstractCompiler * @ param combinedRoot The combined root for all JS fil...
if ( compiler . getOptions ( ) . needsTranspilationFrom ( featureSet ) ) { FeatureSet languageOutFeatures = compiler . getOptions ( ) . getOutputFeatureSet ( ) ; for ( Node singleRoot : combinedRoot . children ( ) ) { // Only run the transpilation if this file has features not in the compiler ' s target output // langu...
public class URLUtils { /** * Retrieve the element ID from the path * @ param relativePath path * @ return element ID , may be { @ code null } */ public static String getElementID ( final String relativePath ) { } }
final String fragment = FileUtils . getFragment ( relativePath ) ; if ( fragment != null ) { if ( fragment . lastIndexOf ( SLASH ) != - 1 ) { final String id = fragment . substring ( fragment . lastIndexOf ( SLASH ) + 1 ) ; return id . isEmpty ( ) ? null : id ; } } return null ;
public class Calc { /** * Convert an array of atoms into an array of vecmath points * @ param atoms * list of atoms * @ return list of Point3ds storing the x , y , z coordinates of each atom */ public static Point3d [ ] atomsToPoints ( Atom [ ] atoms ) { } }
Point3d [ ] points = new Point3d [ atoms . length ] ; for ( int i = 0 ; i < atoms . length ; i ++ ) { points [ i ] = atoms [ i ] . getCoordsAsPoint3d ( ) ; } return points ;
public class IndexGenerator { /** * Starts index generation using the database credentials in the * properties file specified in args [ 0 ] . < br > * The properties file should have the following structure : * < ul > < li > host = dbhost < / li > * < li > db = revisiondb < / li > * < li > user = username < /...
if ( args == null || args . length != 1 ) { System . out . println ( ( "You need to specify the database configuration file. \n" + "It should contain the access credentials to you revision database in the following format: \n" + " host=dbhost \n" + " db=revisiondb \n" + " user=username \n" + " password=pwd \n" + " ...
public class CustomCreative { /** * Gets the customCreativeAssets value for this CustomCreative . * @ return customCreativeAssets * A list of file assets that are associated with this creative , * and can be * referenced in the snippet . */ public com . google . api . ads . admanager . axis . v201902 . CustomCrea...
return customCreativeAssets ;
public class HttpResponseMessageImpl { /** * Method to update the caching related headers for a response message . This * will configure the message such that if Set - Cookie ( 2 ) information is * present then additional headers will be added to ensure that the message * is not cached on any intermediate caches ...
// regular HTTP path , the Set - Cookie values are already put into BNFHdrs // but localhttp they might still be in the cookie cache boolean addSet1 = containsHeader ( HttpHeaderKeys . HDR_SET_COOKIE ) || isCookieCacheDirty ( HttpHeaderKeys . HDR_SET_COOKIE ) ; boolean addSet2 = containsHeader ( HttpHeaderKeys . HDR_SE...
public class RoomInfoImpl { /** * / * ( non - Javadoc ) * @ see com . tvd12 . ezyfox . core . command . RoomInfo # room ( com . tvd12 . ezyfox . core . entities . ApiRoom ) */ @ Override public RoomInfo room ( ApiRoom room ) { } }
this . apiRoom = room ; this . room = CommandUtil . getSfsRoom ( room , extension ) ; return this ;
public class Strings { /** * Initialize regular expressions used in unescaping . This method will be * invoked automatically the first time a string is unescaped . */ public static boolean initializeUnescapePattern ( ) { } }
if ( paternIsInitialized == true ) { return true ; } synchronized ( unescapeInitLockObject ) { if ( paternIsInitialized == true ) { return true ; } try { unescapePattern = Pattern . compile ( unicodeUnescapeMatchExpression ) ; } catch ( PatternSyntaxException pse ) { /* * the pattern is compiled from a final string , s...
public class FlowTypeCheck { /** * check type information in a flow - sensitive fashion through a block of * statements , whilst type checking each statement and expression . * @ param block * Block of statements to flow sensitively type check * @ param environment * Determines the type of all variables immed...
for ( int i = 0 ; i != block . size ( ) ; ++ i ) { Stmt stmt = block . get ( i ) ; environment = checkStatement ( stmt , environment , scope ) ; } return environment ;
public class StrBuilder { /** * Advanced search and replaces within the builder using a matcher . * Matchers can be used to perform advanced behaviour . * For example you could write a matcher to delete all occurrences * where the character ' a ' is followed by a number . * @ param matcher the matcher to use to...
endIndex = validateRange ( startIndex , endIndex ) ; return replaceImpl ( matcher , replaceStr , startIndex , endIndex , replaceCount ) ;
public class LoggingFilter { /** * { @ inheritDoc } */ @ Override public void aroundWriteTo ( final WriterInterceptorContext writerInterceptorContext ) throws IOException , WebApplicationException { } }
final LoggingStream stream = ( LoggingStream ) writerInterceptorContext . getProperty ( ENTITY_LOGGER_PROPERTY ) ; writerInterceptorContext . proceed ( ) ; final Object requestId = Requests . getProperty ( LOGGING_ID_PROPERTY ) ; final long id = requestId != null ? ( Long ) requestId : _id . incrementAndGet ( ) ; Strin...