signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TokenCompleteTextView { /** * Collapse the view by removing all the tokens not on the first line . Displays a " + x " token . * Restores the hidden tokens when the view gains focus . * @ param hasFocus boolean indicating whether we have the focus or not . */ public void performCollapse ( boolean hasFoc...
internalEditInProgress = true ; if ( ! hasFocus ) { // Display + x thingy / ellipse if appropriate final Editable text = getText ( ) ; if ( text != null && hiddenContent == null && lastLayout != null ) { // Ellipsize copies spans , so we need to stop listening to span changes here text . removeSpan ( spanWatcher ) ; Co...
public class AdHocCommand { /** * Returns the specific condition of the < code > error < / code > or < tt > null < / tt > if the * error doesn ' t have any . * @ param error the error the get the specific condition from . * @ return the specific condition of this error , or null if it doesn ' t have * any . */ ...
// This method is implemented to provide an easy way of getting a packet // extension of the XMPPError . for ( SpecificErrorCondition condition : SpecificErrorCondition . values ( ) ) { if ( error . getExtension ( condition . toString ( ) , AdHocCommandData . SpecificError . namespace ) != null ) { return condition ; }...
public class RestController { /** * Creates a new entity from a html form post . */ @ Transactional @ PostMapping ( value = "/{entityTypeId}" , headers = "Content-Type=multipart/form-data" ) public void createFromFormPostMultiPart ( @ PathVariable ( "entityTypeId" ) String entityTypeId , MultipartHttpServletRequest req...
Map < String , Object > paramMap = new HashMap < > ( ) ; for ( String param : request . getParameterMap ( ) . keySet ( ) ) { String [ ] values = request . getParameterValues ( param ) ; String value = values != null ? StringUtils . join ( values , ',' ) : null ; if ( StringUtils . isNotBlank ( value ) ) { paramMap . pu...
public class Material { /** * Sets the program to be used by this material to shade the models . * @ param program The program to use */ public void setProgram ( Program program ) { } }
if ( program == null ) { throw new IllegalStateException ( "Program cannot be null" ) ; } program . checkCreated ( ) ; this . program = program ;
public class OverrideAnalyzer { /** * Returns the methods overridden by given method declaration * @ param md the method declaration * @ return the methods overridden by given method declaration */ public static List < Method > findOverriddenMethods ( MethodDeclaration md ) { } }
final List < Method > methods = new ArrayList < Method > ( ) ; collectOverriddenMethods ( md , methods ) ; return methods . isEmpty ( ) ? Collections . < Method > emptyList ( ) : Collections . unmodifiableList ( methods ) ;
public class DynamoDBService { /** * - - - - - Package methods */ static String getDDBKey ( Map < String , AttributeValue > key ) { } }
return key . get ( ROW_KEY_ATTR_NAME ) . getS ( ) ;
public class TXTBasedAtomTypeConfigurator { /** * Reads a text based configuration file . * @ param builder IChemObjectBuilder used to construct the IAtomType ' s . * @ throws IOException when a problem occurred with reading from the InputStream * @ return A List with read IAtomType ' s . */ @ Override public Lis...
List < IAtomType > atomTypes = new ArrayList < IAtomType > ( ) ; if ( ins == null ) { // trying the default // logger . debug ( " readAtomTypes getResourceAsStream : " // + configFile ) ; ins = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( configFile ) ; } if ( ins == null ) throw new IOException ( "...
public class Element { /** * Build a text node or a MessageML element based on the provided DOM node . */ private void buildNode ( MessageMLParser context , org . w3c . dom . Node node ) throws InvalidInputException , ProcessingException { } }
switch ( node . getNodeType ( ) ) { case org . w3c . dom . Node . TEXT_NODE : buildText ( ( Text ) node ) ; break ; case org . w3c . dom . Node . ELEMENT_NODE : buildElement ( context , ( org . w3c . dom . Element ) node ) ; break ; default : throw new InvalidInputException ( "Invalid element \"" + node . getNodeName (...
public class SubWriterHolderWriter { /** * Add the index comment . * @ param member the member being documented * @ param contentTree the content tree to which the comment will be added */ protected void addIndexComment ( Doc member , Content contentTree ) { } }
addIndexComment ( member , member . firstSentenceTags ( ) , contentTree ) ;
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public IfcTransformerTypeEnum createIfcTransformerTypeEnumFromString ( EDataType eDataType , String initialValue ) { } }
IfcTransformerTypeEnum result = IfcTransformerTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 3531:1 : ruleXIfExpression returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' if ' otherlv _ 2 = ' ( ' ( ( lv _ if _ 3_0 = ruleXExpression ) ) otherlv _ 4 = ' ) ' ( ( lv _ then _ 5_0 = ruleXExpression ) ) ( ( ( ' else ' ) = > otherlv _ 6 = ' e...
EObject current = null ; Token otherlv_1 = null ; Token otherlv_2 = null ; Token otherlv_4 = null ; Token otherlv_6 = null ; EObject lv_if_3_0 = null ; EObject lv_then_5_0 = null ; EObject lv_else_7_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 3537:2 : ( ( ( ) otherlv _ 1 = ' if ' otherlv _ 2 = ' ( ' ( (...
public class Matrix4 { /** * Sets this to a rotation matrix that rotates one vector onto another . * @ return a reference to this matrix , for chaining . */ public Matrix4 setToRotation ( IVector3 from , IVector3 to ) { } }
float angle = from . angle ( to ) ; if ( angle < MathUtil . EPSILON ) { return setToIdentity ( ) ; } if ( angle <= FloatMath . PI - MathUtil . EPSILON ) { return setToRotation ( angle , from . cross ( to ) . normalizeLocal ( ) ) ; } // it ' s a 180 degree rotation ; any axis orthogonal to the from vector will do Vector...
public class TrainingsImpl { /** * Delete a set of predicted images and their associated prediction results . * @ param projectId The project id * @ param ids The prediction ids . Limited to 64 * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws CloudException thrown if the r...
deletePredictionWithServiceResponseAsync ( projectId , ids ) . toBlocking ( ) . single ( ) . body ( ) ;
public class InterleavedReader { /** * Returns the next value in the stream : either a String , a JsonElement , or * null to indicate the end of the stream . Callers should use instanceof to * inspect the return type . */ public Object read ( ) throws IOException { } }
char [ ] buffer = new char [ BUFFER_LENGTH ] ; reader . mark ( BUFFER_LENGTH ) ; int count = 0 ; int textEnd ; while ( true ) { int r = reader . read ( buffer , count , buffer . length - count ) ; if ( r == - 1 ) { // the input is exhausted ; return the remaining characters textEnd = count ; break ; } count += r ; int ...
public class HyperspaceAnalogueToLanguage { /** * { @ inheritDoc } */ public Vector getVector ( String word ) { } }
Integer index = termToIndex . getDimension ( word ) ; if ( index == null ) return null ; // If the matrix hasn ' t had columns dropped then the returned vector // will be the combination of the word ' s row and column else if ( reduced == null ) { // NOTE : the matrix could be asymmetric if the a word has only // appea...
public class JsonBuilder { /** * Alternative to using the object ( ) builder that allows you to add { @ link Entry } instances . * @ param fields one or more Entry instances ( use the field method to create them ) . * @ return the JsonObject with the entries added . */ @ SafeVarargs public static @ Nonnull JsonObje...
JsonObject object = new JsonObject ( ) ; object . add ( fields ) ; return object ;
public class ManagedSession { /** * Reset the session and the message consumers in cascade . */ void reset ( ) { } }
sessionLock . writeLock ( ) . lock ( ) ; try { LOGGER . debug ( "Resetting managed JMS session {}" , this ) ; session = null ; for ( ManagedMessageConsumer managedMessageConsumer : messageConsumers ) { managedMessageConsumer . reset ( ) ; } } finally { sessionLock . writeLock ( ) . unlock ( ) ; }
public class InternalSARLParser { /** * InternalSARL . g : 8251:1 : entryRuleFullJvmFormalParameter returns [ EObject current = null ] : iv _ ruleFullJvmFormalParameter = ruleFullJvmFormalParameter EOF ; */ public final EObject entryRuleFullJvmFormalParameter ( ) throws RecognitionException { } }
EObject current = null ; EObject iv_ruleFullJvmFormalParameter = null ; try { // InternalSARL . g : 8251:63 : ( iv _ ruleFullJvmFormalParameter = ruleFullJvmFormalParameter EOF ) // InternalSARL . g : 8252:2 : iv _ ruleFullJvmFormalParameter = ruleFullJvmFormalParameter EOF { if ( state . backtracking == 0 ) { newCompo...
public class ExistPolicyIndex { /** * Create a collection given a full path to the collection . The collection path must include * the root collection . Intermediate collections in the path are created if they do not * already exist . * @ param collectionPath * @ param rootCollection * @ return * @ throws P...
try { if ( rootCollection . getParentCollection ( ) != null ) { throw new PolicyIndexException ( "Collection supplied is not a root collection" ) ; } String rootCollectionName = rootCollection . getName ( ) ; if ( ! collectionPath . startsWith ( rootCollectionName ) ) { throw new PolicyIndexException ( "Collection path...
public class DestinationManager { /** * Lookup a destination by its uuid . * @ param mqLinkUuid * @ param includeInvisible * @ return MQLinkHandler * @ throws SIDestinationNotFoundException The link was not found * @ throws SIMPMQLinkCorruptException */ public MQLinkHandler getMQLinkLocalization ( SIBUuid8 mq...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getMQLinkLocalization" , mqLinkUuid ) ; // Get the destination LinkTypeFilter filter = new LinkTypeFilter ( ) ; filter . MQLINK = Boolean . TRUE ; if ( ! includeInvisible ) filter . VISIBLE = Boolean . TRUE ; MQLinkHandler ...
public class HttpInputStream { /** * F003449 Start */ public void restart ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { // 306998.15 logger . logp ( Level . FINE , CLASS_NAME , "restart" , "Start re-read of data" ) ; } // Don ' t update length or limit because they were set by setContentLength ( ) and // will not be reset when the data is re - read...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } * { @ link CmisExtensionType } { @ code > } */ @ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "extension" , scope = DeleteType . class ) public JAXBElement < CmisExtensionType >...
return new JAXBElement < CmisExtensionType > ( _GetPropertiesExtension_QNAME , CmisExtensionType . class , DeleteType . class , value ) ;
public class JsApiMessageImpl { /** * Helper method used by the JMO to rewrite Property data into the * underlying JMF message . * Package level visibility as used by the JMO . * @ param why The reason for the update * @ see com . ibm . ws . sib . mfp . MfpConstants */ @ Override void updateDataFields ( int why...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "updateDataFields" ) ; super . updateDataFields ( why ) ; if ( jmsSystemPropertyMap != null && jmsSystemPropertyMap . isChanged ( ) ) { getApi ( ) . setField ( JsApiAccess . SYSTEMPROPERTY_NAME , jmsSystemPropertyMap ...
public class ListApplicationDependenciesResult { /** * An array of application summaries nested in the application . * @ param dependencies * An array of application summaries nested in the application . */ public void setDependencies ( java . util . Collection < ApplicationDependencySummary > dependencies ) { } }
if ( dependencies == null ) { this . dependencies = null ; return ; } this . dependencies = new java . util . ArrayList < ApplicationDependencySummary > ( dependencies ) ;
public class XSLTSchema { /** * This method builds an XSLT " schema " according to http : / / www . w3 . org / TR / xslt # dtd . This * schema provides instructions for building the Xalan Stylesheet ( Templates ) structure . */ void build ( ) { } }
// xsl : import , xsl : include XSLTAttributeDef hrefAttr = new XSLTAttributeDef ( null , "href" , XSLTAttributeDef . T_URL , true , false , XSLTAttributeDef . ERROR ) ; // xsl : preserve - space , xsl : strip - space XSLTAttributeDef elementsAttr = new XSLTAttributeDef ( null , "elements" , XSLTAttributeDef . T_SIMPLE...
public class XPathBuilder { /** * < p > < b > Used for finding element process ( to generate css selectors address ) < / b > < / p > * Once used all other attributes will be ignored . Try using this class to a minimum ! * @ param elCssSelector absolute way ( css selectors ) to identify element * @ param < T > the...
this . elCssSelector = elCssSelector ; return ( T ) this ;
public class TransactionSet { /** * Clear items by IDs from the transaction set and return a snapshot of the items */ public synchronized TransactionItem [ ] clear ( List < String > deliveredMessageIDs ) throws FFMQException { } }
int len = deliveredMessageIDs . size ( ) ; TransactionItem [ ] itemsSnapshot = new TransactionItem [ len ] ; for ( int n = 0 ; n < len ; n ++ ) { String deliveredMessageID = deliveredMessageIDs . get ( len - n - 1 ) ; boolean found = false ; Iterator < TransactionItem > entries = items . iterator ( ) ; while ( entries ...
public class SlackBot { /** * Invoked when the bot receives a direct mention ( @ botname : message ) * or a direct message . NOTE : These two event types are added by jbot * to make your task easier , Slack doesn ' t have any direct way to * determine these type of events . * @ param session * @ param event *...
EventType . DIRECT_MENTION , EventType . DIRECT_MESSAGE } ) public void onReceiveDM ( WebSocketSession session , Event event ) { reply ( session , event , "Hi, I am " + slackService . getCurrentUser ( ) . getName ( ) ) ;
public class RamPersistence { /** * { @ inheritDoc } */ public boolean remove ( String name ) { } }
if ( ! objects . containsKey ( name ) ) { return false ; } objects . remove ( name ) ; return true ;
public class ClassTree { /** * Return the set of classes which implement the interface passed . * @ param typeElement interface whose implementing - classes set is required . */ public SortedSet < TypeElement > implementingClasses ( TypeElement typeElement ) { } }
SortedSet < TypeElement > result = get ( implementingClasses , typeElement ) ; SortedSet < TypeElement > intfcs = allSubClasses ( typeElement , false ) ; // If class x implements a subinterface of typeElement , then it follows // that class x implements typeElement . Iterator < TypeElement > subInterfacesIter = intfcs ...
public class RenderFactory { public void init ( Engine engine , Constants constants , ServletContext servletContext ) { } }
this . engine = engine ; this . constants = constants ; this . servletContext = servletContext ; // create mainRenderFactory switch ( constants . getViewType ( ) ) { case JFINAL_TEMPLATE : mainRenderFactory = new MainRenderFactory ( ) ; break ; case FREE_MARKER : mainRenderFactory = new FreeMarkerRenderFactory ( ) ; br...
public class MapTransitionExtractor { /** * Get the neighbor group depending if it is a transition tile . * @ param tile The current tile . * @ param neighbor The neighbor tile . * @ return The neighbor group , < code > null < / code > if none . */ private String getNeighborGroup ( Tile tile , Tile neighbor ) { }...
final String neighborGroup ; if ( isTransition ( neighbor ) ) { if ( isTransition ( tile ) ) { neighborGroup = getOtherGroup ( tile , neighbor ) ; } else { neighborGroup = null ; } } else { neighborGroup = mapGroup . getGroup ( neighbor ) ; } return neighborGroup ;
public class ImmutableMatrixFactory { /** * Returns an immutable matrix of the specified size whose elements are all 0. * @ param rows the number of rows * @ param cols the number of columns * @ return a < code > rows < / code > × < code > cols < / code > matrix whose elements are all 0 * @ throws IllegalArgume...
if ( rows <= 0 || cols <= 0 ) throw new IllegalArgumentException ( "Invalid dimensions" ) ; return create ( new ImmutableData ( rows , cols ) { @ Override public double getQuick ( int row , int col ) { return 0 ; } } ) ;
public class MagicEntries { /** * Optimize the magic entries by removing the first - bytes information into their own lists */ public void optimizeFirstBytes ( ) { } }
// now we post process the entries and remove the first byte ones we can optimize for ( MagicEntry entry : entryList ) { byte [ ] startingBytes = entry . getStartsWithByte ( ) ; if ( startingBytes == null || startingBytes . length == 0 ) { continue ; } int index = ( 0xFF & startingBytes [ 0 ] ) ; if ( firstByteEntryLis...
public class RequestIdTable { /** * Removes the specified request ID ( and associated data ) from the table . * The ID must already be in the table otherwise a runtime exception * is thrown . * @ param requestId The request ID to remove from the table . */ public synchronized void remove ( int requestId ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "remove" ) ; if ( ! containsId ( requestId ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) debugTraceTable ( "id (" + requestId + ") not in table" ) ; throw new SIErrorException ( nls ...
public class DaiIngestError { /** * Sets the reason value for this DaiIngestError . * @ param reason * The error associated with the content . */ public void setReason ( com . google . api . ads . admanager . axis . v201805 . DaiIngestErrorReason reason ) { } }
this . reason = reason ;
public class CacheableWorkspaceDataManager { /** * Returns an item from cache by Identifier or null if the item don ' t cached . * @ param identifier * Item id * @ return ItemData * @ throws RepositoryException * error */ protected ItemData getCachedItemData ( String identifier ) throws RepositoryException { ...
return cache . isEnabled ( ) ? cache . get ( identifier ) : null ;
public class CommerceShippingFixedOptionRelPersistenceImpl { /** * Returns an ordered range of all the commerce shipping fixed option rels where commerceShippingMethodId = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < cod...
return findByCommerceShippingMethodId ( commerceShippingMethodId , start , end , orderByComparator , true ) ;
public class FNLPCorpus { /** * 读分词 / 词性的文件 * 文件格式为 : * word1 / pos1 word2 / pos2 . . . wordn / posn * @ param path * @ param suffix * @ param charset * @ throws IOException */ public void readPOS ( String path , String suffix , String charset ) throws IOException { } }
List < File > files = MyFiles . getAllFiles ( path , suffix ) ; // " . txt " Iterator < File > it = files . iterator ( ) ; while ( it . hasNext ( ) ) { BufferedReader bfr = null ; File file = it . next ( ) ; try { FileInputStream in = new FileInputStream ( file ) ; bfr = new BufferedReader ( new UnicodeReader ( in , ch...
public class ShanksAgentBayesianReasoningCapability { /** * Query several states of a set of nodes * @ param bn * @ param queries * in format hashmap of [ node , List of states ] * @ return results in format hashmap of [ node , hashmap ] . The second hashmap * is [ state , probability of the hypothesis ] * ...
HashMap < String , HashMap < String , Float > > result = new HashMap < String , HashMap < String , Float > > ( ) ; for ( Entry < String , List < String > > query : queries . entrySet ( ) ) { HashMap < String , Float > partialResult = ShanksAgentBayesianReasoningCapability . getNodeHypotheses ( bn , query . getKey ( ) ,...
public class AmazonWebServiceClient { /** * Returns the most specific request metric collector , starting from the request level , then * client level , then finally the AWS SDK level . */ private final RequestMetricCollector findRequestMetricCollector ( RequestMetricCollector reqLevelMetricsCollector ) { } }
if ( reqLevelMetricsCollector != null ) { return reqLevelMetricsCollector ; } else if ( getRequestMetricsCollector ( ) != null ) { return getRequestMetricsCollector ( ) ; } else { return AwsSdkMetrics . getRequestMetricCollector ( ) ; }
public class CmsSerialDateView { /** * Handle changes of the series check box . * @ param event the change event . */ @ UiHandler ( "m_seriesCheckBox" ) void onSeriesChange ( ValueChangeEvent < Boolean > event ) { } }
if ( handleChange ( ) ) { m_controller . setIsSeries ( event . getValue ( ) ) ; }
public class DRL6Lexer { /** * $ ANTLR start " QUESTION _ DIV " */ public final void mQUESTION_DIV ( ) throws RecognitionException { } }
try { int _type = QUESTION_DIV ; int _channel = DEFAULT_TOKEN_CHANNEL ; // src / main / resources / org / drools / compiler / lang / DRL6Lexer . g : 339:5 : ( ' ? / ' ) // src / main / resources / org / drools / compiler / lang / DRL6Lexer . g : 339:7 : ' ? / ' { match ( "?/" ) ; if ( state . failed ) return ; } state ...
public class CmsAliasTableController { /** * This method is called when the user deletes a set of rows . < p > * @ param rowsToDelete the list of rows which should be deleted */ public void deleteRows ( List < CmsAliasTableRow > rowsToDelete ) { } }
List < CmsAliasTableRow > liveData = m_view . getLiveData ( ) ; for ( CmsAliasTableRow row : liveData ) { CmsUUID structureId = row . getStructureId ( ) ; if ( structureId != null ) { m_deletedIds . add ( row . getStructureId ( ) ) ; } } // prevent selection model from going out of synch m_view . getTable ( ) . getSele...
public class Stopwatch { /** * Creates Stopwatch around passed callable and invokes callable . * @ param callable with invocation time would be measured * @ return */ public static Stopwatch createStarted ( VoidCallable callable ) { } }
Stopwatch stopwatch = new Stopwatch ( ) ; stopwatch . callable = callable ; stopwatch . start ( ) ; return stopwatch ;
public class IncludeAllPaginator { /** * generate the final output path */ private Optional < IncludeAllPageWithOutput > addOutputInformation ( IncludeAllPage pages , FileResource baseResource , Path includeAllBasePath , Locale locale ) { } }
// depth = 0 is the file that has the include - all directive if ( pages . depth == 0 ) { return of ( new IncludeAllPageWithOutput ( pages , pages . files . get ( 0 ) , pages . files . get ( 0 ) . getPath ( ) , locale ) ) ; } Path baseResourceParentPath = baseResource . getPath ( ) . getParent ( ) ; Optional < FileReso...
public class MapDataDao { /** * Note that if not logged in , the Changeset for each returned element will be null * @ param nodeIds a collection of node ids to return . * @ throws OsmNotFoundException if < b > any < / b > one of the given nodes does not exist * @ return a list of nodes . */ public List < Node > g...
if ( nodeIds . isEmpty ( ) ) return Collections . emptyList ( ) ; return getSomeElements ( NODE + "s?" + NODE + "s=" + toCommaList ( nodeIds ) , Node . class ) ;
public class RegistryHelper { /** * Gets the UserRegistry object for the given realm . If the realm name is null * returns the active registry . If the realm is not valid , or security is not enabled , * or no registry is configured , returns null . * @ param realmName * @ return UserRegistry object * @ throw...
try { WSSecurityService ss = wsSecurityServiceRef . getService ( ) ; if ( ss == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "No WSSecurityService, returning null" ) ; } } else { return ss . getUserRegistry ( realmName ) ; } } catch ( WSSecurityException e ) { ...
public class ClassUtil { /** * loads a class from a specified Classloader with given classname * @ param className * @ param cl * @ return matching Class */ private static Class _loadClass ( ClassLoading cl , String className , Class defaultValue , Set < Throwable > exceptions ) { } }
className = className . trim ( ) ; if ( StringUtil . isEmpty ( className ) ) return defaultValue ; Class clazz = checkPrimaryTypesBytecodeDef ( className , null ) ; if ( clazz != null ) return clazz ; // array in the format boolean [ ] or java . lang . String [ ] if ( className . endsWith ( "[]" ) ) { StringBuilder pur...
public class FindbugsPlugin { /** * Get the FindBugs core preferences for given project . This method can * return workspace preferences if project preferences are not created yet * or they are disabled . * @ param project * the project ( if null , workspace settings are used ) * @ param forceRead * true to...
if ( project == null || ! isProjectSettingsEnabled ( project ) ) { // read workspace ( user ) settings from instance area return getWorkspacePreferences ( ) ; } // use project settings return getProjectPreferences ( project , forceRead ) ;
public class Matrix4x3d { /** * Set this matrix to be a simple translation matrix . * The resulting matrix can be multiplied against another transformation * matrix to obtain an additional translation . * @ param offset * the offsets in x , y and z to translate * @ return this */ public Matrix4x3d translation...
return translation ( offset . x ( ) , offset . y ( ) , offset . z ( ) ) ;
public class LogFilePatternReceiver { /** * Helper method that will convert timestamp format to a pattern * @ return string */ private String convertTimestamp ( ) { } }
// some locales ( for example , French ) generate timestamp text with characters not included in \ w - // now using \ S ( all non - whitespace characters ) instead of / w String result = timestampFormat . replaceAll ( VALID_DATEFORMAT_CHAR_PATTERN + "+" , "\\\\S+" ) ; // make sure dots in timestamp are escaped result =...
public class StrSubstitutor { /** * Replaces all the occurrences of variables within the given source * builder with their matching values from the resolver . * Only the specified portion of the builder will be processed . * The rest of the builder is not processed , but it is not deleted . * @ param source the...
if ( source == null ) { return false ; } return substitute ( source , offset , length ) ;
public class ComposableFutures { /** * creates new cold observable , given future provider , * on each subscribe will consume the provided future * and repeat until stop criteria will exists * each result will be emitted to the stream * @ param futureProvider the future provider * @ param < T > the stream typ...
return Observable . create ( new Observable . OnSubscribe < T > ( ) { @ Override public void call ( final Subscriber < ? super T > subscriber ) { recursiveChain ( subscriber , futureProvider . createStopCriteria ( ) ) ; } private void recursiveChain ( final Subscriber < ? super T > subscriber , final Predicate < T > st...
public class AppServiceEnvironmentsInner { /** * Get available SKUs for scaling a multi - role pool . * Get available SKUs for scaling a multi - role pool . * ServiceResponse < PageImpl < SkuInfoInner > > * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalA...
if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . listMultiRolePoolSkusNext ( nextUrl , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatM...
public class LimesurveyRC { /** * Complete a response . * @ param surveyId the survey id of the survey you want to complete the response * @ param responseId the response id of the response you want to complete * @ param date the date where the response will be completed ( submitdate ) * @ return true if the re...
Map < String , String > responseData = new HashMap < > ( ) ; responseData . put ( "submitdate" , date . format ( DateTimeFormatter . ISO_LOCAL_DATE ) + " " + date . format ( DateTimeFormatter . ISO_LOCAL_TIME ) ) ; JsonElement result = updateResponse ( surveyId , responseId , responseData ) ; if ( ! result . getAsBoole...
public class ParserEvaluate { /** * Evaluate and print precision , recall and F measure . * @ throws IOException * if test corpus not loaded */ public final void evaluate ( ) throws IOException { } }
final ParserEvaluator evaluator = new ParserEvaluator ( this . parser ) ; evaluator . evaluate ( this . testSamples ) ; System . out . println ( evaluator . getFMeasure ( ) ) ;
public class FilterCriteriaType { /** * Register { @ link FilterCriteriaType } * @ param type { @ link FilterCriteriaType } for register * @ throws IllegalStateException if { @ link FilterCriteriaType } with current name if already registered */ public static void register ( FilterCriteriaType type ) { } }
if ( REGISTRY . containsKey ( type . getName ( ) ) ) throw new IllegalStateException ( String . format ( "FilterCriteriaType with name %s is already registered!" , type . getName ( ) ) ) ; REGISTRY . put ( type . getName ( ) , type ) ;
public class FunctionExpression { /** * Implements the format function " % " * @ param formatter the current formation context */ private void format ( CssFormatter formatter ) { } }
String fmt = get ( 0 ) . stringValue ( formatter ) ; int idx = 1 ; for ( int i = 0 ; i < fmt . length ( ) ; i ++ ) { char ch = fmt . charAt ( i ) ; if ( ch == '%' ) { ch = fmt . charAt ( ++ i ) ; switch ( ch ) { case '%' : formatter . append ( ch ) ; break ; case 'a' : case 'd' : get ( idx ++ ) . appendTo ( formatter )...
public class TIFFField { /** * Returns data in TIFF _ BYTE , TIFF _ SBYTE , TIFF _ UNDEFINED , TIFF _ SHORT , * TIFF _ SSHORT , or TIFF _ SLONG format as an int . * < p > TIFF _ BYTE and TIFF _ UNDEFINED data are treated as unsigned ; * that is , no sign extension will take place and the returned * value will b...
switch ( type ) { case TIFF_BYTE : case TIFF_UNDEFINED : return ( ( byte [ ] ) data ) [ index ] & 0xff ; case TIFF_SBYTE : return ( ( byte [ ] ) data ) [ index ] ; case TIFF_SHORT : return ( ( char [ ] ) data ) [ index ] & 0xffff ; case TIFF_SSHORT : return ( ( short [ ] ) data ) [ index ] ; case TIFF_SLONG : return ( ...
public class SVSConsumerAuditor { /** * Audits an ITI - 48 Retrieve Value Set event for SVS Consumer actors . * @ param eventOutcome The event outcome indicator * @ param repositoryEndpointUri The Web service endpoint URI for the SVS repository * @ param valueSetUniqueId unique id ( OID ) of the returned value se...
if ( ! isAuditorEnabled ( ) ) { return ; } ImportEvent importEvent = new ImportEvent ( false , eventOutcome , new IHETransactionEventTypeCodes . RetrieveValueSet ( ) , purposesOfUse ) ; importEvent . setAuditSourceId ( getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) ) ; importEvent . addSourceActiveParticipant ( Ev...
public class DSetImpl { /** * Determine whether this set is a proper subset of the set referenced by * < code > otherSet < / code > . * @ paramotherSetAnother set . * @ return True if this set is a proper subset of the set referenced by * < code > otherSet < / code > , otherwise false . */ public boolean proper...
return ( this . size ( ) > 0 && this . size ( ) < otherSet . size ( ) && this . subsetOf ( otherSet ) ) ;
public class vlan { /** * Use this API to fetch filtered set of vlan resources . * filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */ public static vlan [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
vlan obj = new vlan ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; vlan [ ] response = ( vlan [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class AlphabeticIndex { /** * Return the string with interspersed CGJs . Input must have more than 2 codepoints . * < p > This is used to test whether contractions sort differently from their components . */ private String separated ( String item ) { } }
StringBuilder result = new StringBuilder ( ) ; // add a CGJ except within surrogates char last = item . charAt ( 0 ) ; result . append ( last ) ; for ( int i = 1 ; i < item . length ( ) ; ++ i ) { char ch = item . charAt ( i ) ; if ( ! UCharacter . isHighSurrogate ( last ) || ! UCharacter . isLowSurrogate ( ch ) ) { re...
public class InterconnectMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Interconnect interconnect , ProtocolMarshaller protocolMarshaller ) { } }
if ( interconnect == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( interconnect . getInterconnectId ( ) , INTERCONNECTID_BINDING ) ; protocolMarshaller . marshall ( interconnect . getInterconnectName ( ) , INTERCONNECTNAME_BINDING ) ; prot...
public class BufferUtil { /** * 读取剩余部分bytes < br > * @ param buffer ByteBuffer * @ return bytes */ public static byte [ ] readBytes ( ByteBuffer buffer ) { } }
final int remaining = buffer . remaining ( ) ; byte [ ] ab = new byte [ remaining ] ; buffer . get ( ab ) ; return ab ;
public class JobAgentsInner { /** * Creates or updates a job agent . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param jobAgentName The name o...
return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , jobAgentName , parameters ) , serviceCallback ) ;
public class ProtobufHelper { /** * 加载protobuf接口里方法的参数和返回值类型到缓存 , 不需要传递 * @ param key 缓存的key * @ param clazz 接口名 * @ param methodName 方法名 */ private void loadProtoClassToCache ( String key , Class clazz , String methodName ) { } }
Method pbMethod = null ; Method [ ] methods = clazz . getMethods ( ) ; for ( Method method : methods ) { if ( methodName . equals ( method . getName ( ) ) ) { pbMethod = method ; break ; } } if ( pbMethod == null ) { throw new SofaRpcRuntimeException ( "Cannot found protobuf method: " + clazz . getName ( ) + "." + meth...
public class GetDocumentRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetDocumentRequest getDocumentRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getDocumentRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getDocumentRequest . getAuthenticationToken ( ) , AUTHENTICATIONTOKEN_BINDING ) ; protocolMarshaller . marshall ( getDocumentRequest . getDocumentId ( ) , DOCUMENTID_...
public class ZWaveController { /** * Handles incoming Send Data Request . Send Data request are used * to acknowledge or cancel failed messages . * @ param incomingMessage the request message to process . */ private void handleSendDataRequest ( SerialMessage incomingMessage ) { } }
logger . trace ( "Handle Message Send Data Request" ) ; int callbackId = incomingMessage . getMessagePayloadByte ( 0 ) ; TransmissionState status = TransmissionState . getTransmissionState ( incomingMessage . getMessagePayloadByte ( 1 ) ) ; SerialMessage originalMessage = this . lastSentMessage ; if ( status == null ) ...
public class JavaDocAnalyzer { /** * This is a best - effort approach combining only the simple types . * @ see JavaDocParserVisitor # calculateMethodIdentifier ( MethodDeclaration ) */ private boolean equalsSimpleTypeNames ( MethodIdentifier identifier , MethodResult methodResult ) { } }
MethodIdentifier originalIdentifier = methodResult . getOriginalMethodSignature ( ) ; return originalIdentifier . getMethodName ( ) . equals ( identifier . getMethodName ( ) ) && matchesTypeBestEffort ( originalIdentifier . getReturnType ( ) , identifier . getReturnType ( ) ) && parameterMatch ( originalIdentifier . ge...
public class JBBPUtils { /** * Remove trailing zeros from string . * @ param str the string to be trimmed * @ return the result string without left extra zeros , or null if argument is * null * @ since 1.1 */ public static String removeTrailingZeros ( final String str ) { } }
String result = str ; if ( str != null && str . length ( ) != 0 ) { int endIndex = str . length ( ) ; while ( endIndex > 1 ) { final char ch = str . charAt ( endIndex - 1 ) ; if ( ch != '0' ) { break ; } endIndex -- ; } if ( endIndex < str . length ( ) ) { result = str . substring ( 0 , endIndex ) ; } } return result ;
public class CommercePriceListUserSegmentEntryRelUtil { /** * Returns the last commerce price list user segment entry rel in the ordered set where uuid = & # 63 ; . * @ param uuid the uuid * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last ma...
return getPersistence ( ) . fetchByUuid_Last ( uuid , orderByComparator ) ;
public class ConcurrentStack { /** * peek at the top of the stack * @ return N - the object at the top of the stack */ @ Override public final N peek ( ) { } }
// read the current cursor int spin = 0 ; for ( ; ; ) { final long readLock = seqLock . readLock ( ) ; final int stackTop = this . stackTop . get ( ) ; if ( stackTop > 0 ) { final N n = stack . get ( stackTop - 1 ) ; if ( seqLock . readLockHeld ( readLock ) ) { return n ; } // else loop again } else { return null ; } s...
public class Computer { /** * @ deprecated Implementation of CLI command " offline - node " moved to { @ link hudson . cli . OfflineNodeCommand } . * @ param cause * Record the note about why you are disconnecting this node */ @ Deprecated public void cliOffline ( String cause ) throws ExecutionException , Interrup...
checkPermission ( DISCONNECT ) ; setTemporarilyOffline ( true , new ByCLI ( cause ) ) ;
public class MaybeT { /** * { @ inheritDoc } */ @ Override public < B > MaybeT < M , B > zip ( Applicative < Function < ? super A , ? extends B > , MonadT < M , Maybe < ? > , ? > > appFn ) { } }
return MonadT . super . zip ( appFn ) . coerce ( ) ;
public class RequireUtil { /** * Determines if this class may be used in the current runtime environment . * Fathom settings are considered as well as runtime modes . * @ param settings * @ param aClass * @ return true if the class may be used */ public static boolean allowClass ( Settings settings , Class < ? ...
// Settings - based class exclusions / inclusions if ( aClass . isAnnotationPresent ( RequireSettings . class ) ) { // multiple keys required RequireSetting [ ] requireSettings = aClass . getAnnotation ( RequireSettings . class ) . value ( ) ; StringJoiner joiner = new StringJoiner ( ", " ) ; Arrays . asList ( requireS...
public class RuleUtils { /** * Gets the string representation of an element . * @ param element * the element to be planified to a string * @ return the element as a string */ public static String getElementAsString ( Element element ) { } }
StringBuilder sb = new StringBuilder ( ) ; if ( element . isNegated ( ) != null && element . isNegated ( ) . booleanValue ( ) ) { sb . append ( "~" ) ; } int masks = element . getMask ( ) . size ( ) ; if ( masks > 1 ) { sb . append ( "(" ) ; } int maskCounter = 0 ; for ( Mask mask : element . getMask ( ) ) { // Enclose...
public class SemEvalContextExtractor { /** * { @ inheritDoc } */ public void processDocument ( BufferedReader document , Wordsi wordsi ) { } }
Queue < String > prevWords = new ArrayDeque < String > ( ) ; Queue < String > nextWords = new ArrayDeque < String > ( ) ; Iterator < String > it = IteratorFactory . tokenizeOrdered ( document ) ; // Skip empty documents . if ( ! it . hasNext ( ) ) return ; String instanceId = it . next ( ) ; // Fill up the words after ...
public class Schedulers { /** * Schedule . * @ param trigger the trigger * @ param task the task * @ return the string */ public String schedule ( Trigger trigger , Runnable task ) { } }
ScheduledFuture < ? > future = getCurrentScheduler ( ) . schedule ( task , trigger ) ; String id = Schedulers . getUUID ( ) ; runningSchedullers . put ( id , future ) ; Schedulers . increaseNoOfRunningSchedullers ( ) ; setCurrentScheduler ( null ) ; return id ;
public class EntityBeanTypeImpl { /** * If not already created , a new < code > message - destination - ref < / code > element will be created and returned . * Otherwise , the first existing < code > message - destination - ref < / code > element will be returned . * @ return the instance defined for the element < ...
List < Node > nodeList = childNode . get ( "message-destination-ref" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MessageDestinationRefTypeImpl < EntityBeanType < T > > ( this , "message-destination-ref" , childNode , nodeList . get ( 0 ) ) ; } return createMessageDestinationRef ( ) ;
public class SchemaToJava { /** * Create the output file for the generated code along with all intervening directories */ private static File makeOutputFile ( String outputDir , String packageName , String className ) throws IOException { } }
// Convert the package name to a path Pattern pattern = Pattern . compile ( "\\." ) ; Matcher matcher = pattern . matcher ( packageName ) ; String sepToUse = File . separator ; if ( sepToUse . equals ( "\\" ) ) { sepToUse = "\\\\" ; } // Try to create the necessary directories String directoryPath = outputDir + File . ...
public class StructrLicenseManager { /** * - - - - - private static methods - - - - - */ public static String collectLicenseFieldsForSignature ( final Map < String , String > properties ) { } }
final StringBuilder buf = new StringBuilder ( ) ; buf . append ( properties . get ( NameKey ) ) ; buf . append ( properties . get ( DateKey ) ) ; buf . append ( properties . get ( StartKey ) ) ; buf . append ( properties . get ( EndKey ) ) ; buf . append ( properties . get ( EditionKey ) ) ; buf . append ( properties ....
public class ProvFactory { /** * ( non - Javadoc ) * @ see org . openprovenance . prov . model . ModelConstructor # newWasInfluencedBy ( org . openprovenance . prov . model . QualifiedName , org . openprovenance . prov . model . QualifiedName , org . openprovenance . prov . model . QualifiedName , java . util . Colle...
WasInfluencedBy res = newWasInfluencedBy ( id , influencee , influencer ) ; setAttributes ( res , attributes ) ; return res ;
public class Query { /** * < pre > * { field : < field > , op : < op > , rvalue : < value > } * { field : < field > , op : < op > , values : [ values ] } * < / pre > */ public static Query withValue ( String expression ) { } }
String [ ] parts = split ( expression ) ; if ( parts != null ) { String field = parts [ 0 ] ; String operator = parts [ 1 ] ; String value = parts [ 2 ] ; BinOp binOp = BinOp . getOp ( operator ) ; if ( binOp != null ) { return withValue ( field , binOp , value ) ; } NaryOp naryOp = NaryOp . getOp ( operator ) ; if ( n...
public class ProviderConfigurationSupport { /** * Creates a BeanDefinition for a provider connection factory . * Although most providers will not need to override this method , it does allow for overriding to address any provider - specific needs . * @ param appId The application ' s App ID * @ param appSecret Th...
return BeanDefinitionBuilder . genericBeanDefinition ( connectionFactoryClass ) . addConstructorArgValue ( appId ) . addConstructorArgValue ( appSecret ) . getBeanDefinition ( ) ;
public class DefaultDiscoveryService { /** * ~ Methods * * * * * */ @ Override public List < MetricSchemaRecord > filterRecords ( SchemaQuery query ) { } }
requireNotDisposed ( ) ; _logger . debug ( query . toString ( ) ) ; if ( query instanceof MetricSchemaRecordQuery ) { long start = System . nanoTime ( ) ; List < MetricSchemaRecord > result = _schemaService . get ( MetricSchemaRecordQuery . class . cast ( query ) ) ; _logger . debug ( "Time to filter records in ms: " +...
public class StateDP { /** * iteration not synchronized */ private void checkGAs ( List l ) { } }
for ( final Iterator i = l . iterator ( ) ; i . hasNext ( ) ; ) if ( ! ( i . next ( ) instanceof GroupAddress ) ) throw new KNXIllegalArgumentException ( "not a group address list" ) ;
public class CmsToolbarElementInfoButton { /** * Changes the " changed " state of the button . < p > * @ param changed the new value for the " changed " state */ public void setChanged ( boolean changed ) { } }
m_changedStyleVar . setValue ( changed ? I_CmsToolbarButtonLayoutBundle . INSTANCE . toolbarButtonCss ( ) . elementInfoChanged ( ) : I_CmsToolbarButtonLayoutBundle . INSTANCE . toolbarButtonCss ( ) . elementInfoUnchanged ( ) ) ;
public class CmsADEConfigData { /** * Returns all available display formatters . < p > * @ param cms the cms context * @ return the available display formatters */ public List < I_CmsFormatterBean > getDisplayFormatters ( CmsObject cms ) { } }
List < I_CmsFormatterBean > result = new ArrayList < I_CmsFormatterBean > ( ) ; for ( I_CmsFormatterBean formatter : getCachedFormatters ( ) . getFormatters ( ) . values ( ) ) { if ( formatter . isDisplayFormatter ( ) ) { result . add ( formatter ) ; } } return result ;
public class CustomButton { /** * 初始化左右角设定 */ private void initCorner ( ) { } }
switch ( mCornerSide ) { case CORNER_NONE : mRightCorner = CORNER_NONE ; mLeftCorner = CORNER_NONE ; mBottomCorner = CORNER_NONE ; mTopCorner = CORNER_NONE ; break ; case CORNER_LEFT : // 只设定了左边角时 , 右边角为none mRightCorner = CORNER_NONE ; mBottomCorner = CORNER_NONE ; mTopCorner = CORNER_NONE ; break ; case CORNER_RIGHT ...
public class NullAway { /** * Returns the computed nullness information from an expression . If none is available , it returns * Nullable . * < p > Computed information can be added by handlers or by the core , and should supersede that * comming from annotations . * < p > The default value of an expression wit...
if ( computedNullnessMap . containsKey ( e ) ) { return computedNullnessMap . get ( e ) ; } else { return Nullness . NULLABLE ; }
public class AllianceApi { /** * Get alliance information ( asynchronously ) Public information about an * alliance - - - This route is cached for up to 3600 seconds * @ param allianceId * An EVE alliance ID ( required ) * @ param datasource * The server name you would like data from ( optional , default to ...
com . squareup . okhttp . Call call = getAlliancesAllianceIdValidateBeforeCall ( allianceId , datasource , ifNoneMatch , callback ) ; Type localVarReturnType = new TypeToken < AllianceResponse > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callback ) ; return call ;
public class EditableNamespaceContext { /** * Gets the namespace bindings . */ @ Override public Set < java . util . Map . Entry < String , String > > entrySet ( ) { } }
return bindings . entrySet ( ) ;
public class ProxyConfiguration { /** * The set of network configuration parameters to provide the Container Network Interface ( CNI ) plugin , specified as * key - value pairs . * < ul > * < li > * < code > IgnoredUID < / code > - ( Required ) The user ID ( UID ) of the proxy container as defined by the < code...
if ( this . properties == null ) { setProperties ( new com . amazonaws . internal . SdkInternalList < KeyValuePair > ( properties . length ) ) ; } for ( KeyValuePair ele : properties ) { this . properties . add ( ele ) ; } return this ;
public class VoldemortBuildAndPushJob { /** * Check if all cluster objects in the list are congruent . * @ param clusterUrls of cluster objects * @ return */ private void allClustersEqual ( final List < String > clusterUrls ) { } }
Validate . notEmpty ( clusterUrls , "clusterUrls cannot be null" ) ; // If only one clusterUrl return immediately if ( clusterUrls . size ( ) == 1 ) return ; AdminClient adminClientLhs = adminClientPerCluster . get ( clusterUrls . get ( 0 ) ) ; Cluster clusterLhs = adminClientLhs . getAdminClientCluster ( ) ; for ( int...
public class DirectMetaProperty { /** * Factory to create a write - only meta - property avoiding duplicate generics . * @ param < P > the property type * @ param metaBean the meta - bean , not null * @ param propertyName the property name , not empty * @ param declaringType the type declaring the property , no...
Field field = findField ( metaBean , propertyName ) ; return new DirectMetaProperty < > ( metaBean , propertyName , declaringType , propertyType , PropertyStyle . WRITE_ONLY , field ) ;
public class SSLServerSocketChannel { /** * Creates and binds SSLServerSocketChannel using given SSLContext . * @ param port * @ param sslContext * @ return * @ throws IOException */ public static SSLServerSocketChannel open ( int port , SSLContext sslContext ) throws IOException { } }
return open ( new InetSocketAddress ( port ) , sslContext ) ;
public class InvocationContext { /** * Don ' t use this method . It is terribly unsafe and was written by a lazy engineer . */ @ Deprecated public void putAllParameters ( ) { } }
Enumeration < ? > e = _req . getParameterNames ( ) ; while ( e . hasMoreElements ( ) ) { String param = ( String ) e . nextElement ( ) ; put ( param , _req . getParameter ( param ) ) ; }
public class CommerceSubscriptionEntryPersistenceImpl { /** * Returns the commerce subscription entries before and after the current commerce subscription entry in the ordered set where subscriptionStatus = & # 63 ; . * @ param commerceSubscriptionEntryId the primary key of the current commerce subscription entry *...
CommerceSubscriptionEntry commerceSubscriptionEntry = findByPrimaryKey ( commerceSubscriptionEntryId ) ; Session session = null ; try { session = openSession ( ) ; CommerceSubscriptionEntry [ ] array = new CommerceSubscriptionEntryImpl [ 3 ] ; array [ 0 ] = getBySubscriptionStatus_PrevAndNext ( session , commerceSubscr...