signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class XsdAsmInterfaces { /** * Adds information about the attribute group interface to the attributeGroupInterfaces variable . * @ param attributeGroup The attributeGroup to add . */ private void addAttributeGroup ( XsdAttributeGroup attributeGroup ) { } }
String interfaceName = firstToUpper ( attributeGroup . getName ( ) ) ; if ( ! attributeGroupInterfaces . containsKey ( interfaceName ) ) { List < XsdAttribute > ownElements = attributeGroup . getXsdElements ( ) . filter ( attribute -> attribute . getParent ( ) . equals ( attributeGroup ) ) . map ( attribute -> ( XsdAtt...
public class RxFile { /** * Get path from Uri , for an ImageDocument . */ public static Observable < String > getPathFromUriForImageDocument ( final Context context , final String mediaDocumentId ) { } }
return Observable . fromCallable ( new Func0 < String > ( ) { @ Override public String call ( ) { String pathFound = null ; Cursor cursor = context . getContentResolver ( ) . query ( MediaStore . Images . Media . EXTERNAL_CONTENT_URI , null , Constants . ID_COLUMN_VALUE + " =?" , new String [ ] { mediaDocumentId } , nu...
public class ListStreamConsumersRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListStreamConsumersRequest listStreamConsumersRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listStreamConsumersRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listStreamConsumersRequest . getStreamARN ( ) , STREAMARN_BINDING ) ; protocolMarshaller . marshall ( listStreamConsumersRequest . getNextToken ( ) , NEXTTOKE...
public class DescribeReservedElasticsearchInstancesResult { /** * List of reserved Elasticsearch instances . * @ param reservedElasticsearchInstances * List of reserved Elasticsearch instances . */ public void setReservedElasticsearchInstances ( java . util . Collection < ReservedElasticsearchInstance > reservedEla...
if ( reservedElasticsearchInstances == null ) { this . reservedElasticsearchInstances = null ; return ; } this . reservedElasticsearchInstances = new java . util . ArrayList < ReservedElasticsearchInstance > ( reservedElasticsearchInstances ) ;
public class CommerceVirtualOrderItemPersistenceImpl { /** * Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = & # 63 ; . * @ param commerceVirtualOrderItemId the primary key of the current commerce virtual order item * @ param uuid the...
CommerceVirtualOrderItem commerceVirtualOrderItem = findByPrimaryKey ( commerceVirtualOrderItemId ) ; Session session = null ; try { session = openSession ( ) ; CommerceVirtualOrderItem [ ] array = new CommerceVirtualOrderItemImpl [ 3 ] ; array [ 0 ] = getByUuid_PrevAndNext ( session , commerceVirtualOrderItem , uuid ,...
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 4504:1 : ruleXVariableDeclaration returns [ EObject current = null ] : ( ( ) ( ( ( lv _ writeable _ 1_0 = ' var ' ) ) | otherlv _ 2 = ' val ' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) = > ( ( ( lv _ type _ 3_0 = ruleJvmTypeReferen...
EObject current = null ; Token lv_writeable_1_0 = null ; Token otherlv_2 = null ; Token otherlv_6 = null ; EObject lv_type_3_0 = null ; AntlrDatatypeRuleToken lv_name_4_0 = null ; AntlrDatatypeRuleToken lv_name_5_0 = null ; EObject lv_right_7_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 4510:2 : ( ( ( ) ...
public class RuntimeManagerMain { /** * Verify that the environment information in execution state matches the request */ protected void validateExecutionState ( String topologyName , ExecutionEnvironment . ExecutionState executionState ) throws TopologyRuntimeManagementException { } }
String stateCluster = executionState . getCluster ( ) ; String stateRole = executionState . getRole ( ) ; String stateEnv = executionState . getEnviron ( ) ; String configCluster = Context . cluster ( config ) ; String configRole = Context . role ( config ) ; String configEnv = Context . environ ( config ) ; if ( ! sta...
public class CommerceAddressPersistenceImpl { /** * Returns all the commerce addresses where commerceRegionId = & # 63 ; . * @ param commerceRegionId the commerce region ID * @ return the matching commerce addresses */ @ Override public List < CommerceAddress > findByCommerceRegionId ( long commerceRegionId ) { } }
return findByCommerceRegionId ( commerceRegionId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ;
public class Node { /** * syck _ alloc _ seq */ public static Node allocSeq ( ) { } }
Data . Seq s = new Data . Seq ( ) ; s . style = SeqStyle . None ; s . idx = 0 ; s . capa = YAML . ALLOC_CT ; s . items = new Object [ s . capa ] ; Node n = KindTag . Seq . allocNode ( ) ; n . data = s ; return n ;
public class UpdateGroupPermissionHandler { /** * UpdateGroupPermission Method . */ public void updateGroupPermission ( int iGroupID ) { } }
if ( m_recUserPermission == null ) m_recUserPermission = new UserPermission ( this . getOwner ( ) . findRecordOwner ( ) ) ; Record m_recUserGroup = ( ( ReferenceField ) m_recUserPermission . getField ( UserPermission . USER_GROUP_ID ) ) . getReferenceRecord ( ) ; m_recUserGroup . setOpenMode ( m_recUserGroup . getOpenM...
public class PorterStemmer { /** * step5 ( ) takes off - ant , - ence etc . , in context < c > vcvc < v > . */ private final void step5 ( ) { } }
if ( k == 0 ) { return ; } switch ( b [ k - 1 ] ) { case 'a' : if ( endWith ( "al" ) ) { break ; } return ; case 'c' : if ( endWith ( "ance" ) ) { break ; } if ( endWith ( "ence" ) ) { break ; } return ; case 'e' : if ( endWith ( "er" ) ) { break ; } return ; case 'i' : if ( endWith ( "ic" ) ) { break ; } return ; case...
public class BaseDuoSecurityAuthenticationService { /** * Sign http request . * @ param request the request * @ param id the id * @ return the http */ @ SneakyThrows protected Http signHttpAuthRequest ( final Http request , final String id ) { } }
request . addParam ( "username" , id ) ; request . addParam ( "factor" , "auto" ) ; request . addParam ( "device" , "auto" ) ; request . signRequest ( duoProperties . getDuoIntegrationKey ( ) , duoProperties . getDuoSecretKey ( ) ) ; return request ;
public class Regex { /** * Matches the whole input and returns the matched string * @ param reader * @ return * @ throws IOException * @ throws SyntaxErrorException */ public String getMatch ( InputReader reader ) throws IOException , SyntaxErrorException { } }
int rc = match ( reader ) ; if ( rc == 1 && reader . read ( ) == - 1 ) { return reader . getString ( ) ; } else { throw new SyntaxErrorException ( "syntax error" + "\n" + reader . getLineNumber ( ) + ": " + reader . getLine ( ) + "\n" + pointer ( reader . getColumnNumber ( ) + 2 ) ) ; }
public class FixedShardsDistribution { /** * Allocates shards in a round robin fashion for the servers , ignoring those without segments . * @ return int [ ] with the number of shards per server */ private static int [ ] allocateShardsToNodes ( int numShards , int numNodes , List < Set < Integer > > weightPerServer )...
int [ ] shardsPerServer = new int [ numNodes ] ; Iterator < Integer > cyclicNodeIterator = Stream . iterate ( 0 , i -> ( i + 1 ) % numNodes ) . iterator ( ) ; while ( numShards > 0 ) { int slot = cyclicNodeIterator . next ( ) ; if ( ! weightPerServer . get ( slot ) . isEmpty ( ) ) { shardsPerServer [ slot ] ++ ; numSha...
public class WApplicationRenderer { /** * Paints the given WApplication . * @ param component the WApplication to paint . * @ param renderContext the RenderContext to paint to . */ @ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } }
WApplication application = ( WApplication ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; UIContext uic = UIContextHolder . getCurrent ( ) ; String focusId = uic . getFocussedId ( ) ; // Check that this is the top level component if ( application . getParent ( ) != null ) { LOG . warn ( "WApplicati...
public class Fork { /** * Check data quality . * @ return whether data publishing is successful and data should be committed */ private boolean checkDataQuality ( Optional < Object > schema ) throws Exception { } }
if ( this . branches > 1 ) { this . forkTaskState . setProp ( ConfigurationKeys . EXTRACTOR_ROWS_EXPECTED , this . taskState . getProp ( ConfigurationKeys . EXTRACTOR_ROWS_EXPECTED ) ) ; this . forkTaskState . setProp ( ConfigurationKeys . EXTRACTOR_ROWS_EXTRACTED , this . taskState . getProp ( ConfigurationKeys . EXTR...
public class ServersInner { /** * Creates a new server or updates an existing server . The update action will overwrite the existing server . * @ 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 . * @ para...
return beginCreateWithServiceResponseAsync ( resourceGroupName , serverName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class CategoricalParameterRangeMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CategoricalParameterRange categoricalParameterRange , ProtocolMarshaller protocolMarshaller ) { } }
if ( categoricalParameterRange == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( categoricalParameterRange . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( categoricalParameterRange . getValues ( ) , VALUES_BINDING ) ; } cat...
public class SimpleInternalFrame { /** * Creates and answers the header panel , that consists of : an icon , a title * label , a tool bar , and a gradient background . * @ param label * the label to paint the icon and text * @ param bar * the panel ' s tool bar * @ return the panel ' s built header area */ ...
gradientPanel = new GradientPanel ( new BorderLayout ( ) , getHeaderBackground ( ) ) ; label . setOpaque ( false ) ; gradientPanel . add ( label , BorderLayout . WEST ) ; gradientPanel . setBorder ( BorderFactory . createEmptyBorder ( 3 , 4 , 3 , 1 ) ) ; headerPanel = new JPanel ( new BorderLayout ( ) ) ; headerPanel ....
public class GetChangeTokenRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetChangeTokenRequest getChangeTokenRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getChangeTokenRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class AlphabetFactory { /** * 不再增加新的词 * @ param b */ public void setStopIncrement ( boolean b ) { } }
Iterator < String > it = maps . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { String key = it . next ( ) ; maps . get ( key ) . setStopIncrement ( b ) ; }
public class RouteSelector { /** * Prepares the proxy servers to try . */ private void resetNextProxy ( HttpUrl url , Proxy proxy ) { } }
if ( proxy != null ) { // If the user specifies a proxy , try that and only that . proxies = Collections . singletonList ( proxy ) ; } else { // Try each of the ProxySelector choices until one connection succeeds . List < Proxy > proxiesOrNull = address . proxySelector ( ) . select ( url . uri ( ) ) ; proxies = proxies...
public class ChangeMessageVisibilityBatchResult { /** * A list of < code > < a > BatchResultErrorEntry < / a > < / code > items . * @ return A list of < code > < a > BatchResultErrorEntry < / a > < / code > items . */ public java . util . List < BatchResultErrorEntry > getFailed ( ) { } }
if ( failed == null ) { failed = new com . amazonaws . internal . SdkInternalList < BatchResultErrorEntry > ( ) ; } return failed ;
public class Allure { /** * Adds link to current test or step ( or fixture ) if any . Takes no effect * if no test run at the moment . * @ param name the name of link . * @ param type the type of link , used to display link icon in the report . * @ param url the link ' s url . */ public static void link ( final...
final Link link = new Link ( ) . setName ( name ) . setType ( type ) . setUrl ( url ) ; getLifecycle ( ) . updateTestCase ( testResult -> testResult . getLinks ( ) . add ( link ) ) ;
public class AmazonNeptuneClient { /** * Disassociates an Identity and Access Management ( IAM ) role from a DB cluster . * @ param removeRoleFromDBClusterRequest * @ return Result of the RemoveRoleFromDBCluster operation returned by the service . * @ throws DBClusterNotFoundException * < i > DBClusterIdentifie...
request = beforeClientExecution ( request ) ; return executeRemoveRoleFromDBCluster ( request ) ;
public class NamespaceAlreadyExistsException { /** * The < code > CreatorRequestId < / code > that was used to create the namespace . * @ param creatorRequestId * The < code > CreatorRequestId < / code > that was used to create the namespace . */ @ com . fasterxml . jackson . annotation . JsonProperty ( "CreatorReq...
this . creatorRequestId = creatorRequestId ;
public class DeployerResolverOverriderConverter { /** * Creates a new ServerDetails object for resolver , this will take URL and name from the deployer ServerDetails as a default behaviour */ private ServerDetails createInitialResolveDetailsFromDeployDetails ( ServerDetails deployerDetails ) { } }
RepositoryConf oldResolveRepositoryConfig = deployerDetails . getResolveReleaseRepository ( ) ; RepositoryConf oldSnapshotResolveRepositoryConfig = deployerDetails . getResolveSnapshotRepository ( ) ; RepositoryConf resolverReleaseRepos = oldResolveRepositoryConfig == null ? RepositoryConf . emptyRepositoryConfig : old...
public class ApacheHttp31SLR { /** * / * ( non - Javadoc ) * @ see org . archive . util . binsearch . impl . HTTPSeekableLineReader # getHeaderValue ( java . lang . String ) */ @ Override public String getHeaderValue ( String headerName ) { } }
if ( activeMethod == null ) { return null ; } Header header = activeMethod . getResponseHeader ( headerName ) ; if ( header == null ) { return null ; } return header . getValue ( ) ;
public class AddonProjectConfiguratorImpl { /** * Checks if the { @ link Project } depends on the provided { @ link AddonId } */ @ Override public boolean dependsOnAddon ( final Project project , AddonId addonId ) { } }
DependencyInstaller dependencyInstaller = getDependencyInstaller ( ) ; Dependency dependency = toDependency ( addonId ) ; return dependencyInstaller . isInstalled ( project , dependency ) ;
public class Correspondence { /** * Returns a new correspondence which is like this one , except that the given formatter may be * used to format the difference between a pair of elements that do not correspond . * < p > Note that , if you the data you are asserting about contains null actual or expected values , ...
return new FormattingDiffs < > ( this , formatter ) ;
public class GeoNear { /** * The point for which to find the closest documents . * If using a 2dsphere index , you can specify the point as either a GeoJSON point or legacy coordinate pair . * If using a 2d index , specify the point as a legacy coordinate pair . * @ return the point */ public double [ ] getNear (...
double [ ] copy = new double [ 0 ] ; if ( nearLegacy != null ) { copy = new double [ nearLegacy . length ] ; System . arraycopy ( nearLegacy , 0 , copy , 0 , nearLegacy . length ) ; } return copy ;
public class Arc42DocumentationTemplate { /** * Adds a " Solution Strategy " section relating to a { @ link SoftwareSystem } from one or more files . * @ param softwareSystem the { @ link SoftwareSystem } the documentation content relates to * @ param files one or more File objects that point to the documentation c...
return addSection ( softwareSystem , "Solution Strategy" , files ) ;
public class FullscreenVideoView { /** * Overwrite the default ProgressView to represent loading progress state * It is controlled by stopLoading and startLoading methods , that only sets it to VISIBLE and GONE * Remember to set RelativeLayout . LayoutParams before setting the view . * @ param v The custom View t...
int progressViewVisibility = - 1 ; if ( this . onProgressView != null ) { progressViewVisibility = this . onProgressView . getVisibility ( ) ; removeView ( this . onProgressView ) ; } this . onProgressView = v ; if ( this . onProgressView != null ) { addView ( this . onProgressView ) ; if ( progressViewVisibility != - ...
public class Packet { /** * Setter for data * @ param buffer * Packet data */ public void setData ( IoBuffer buffer ) { } }
if ( noCopy ) { log . trace ( "Using buffer reference" ) ; this . data = buffer ; } else { // try the backing array first if it exists if ( buffer . hasArray ( ) ) { log . trace ( "Buffer has backing array, making a copy" ) ; byte [ ] copy = new byte [ buffer . limit ( ) ] ; buffer . mark ( ) ; buffer . get ( copy ) ; ...
public class VersionMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Version version , ProtocolMarshaller protocolMarshaller ) { } }
if ( version == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( version . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( version . getCreationTime ( ) , CREATIONTIME_BINDING ) ; protocolMarshaller . marshall...
public class CmsSerialDateController { /** * Set the serial pattern type . * @ param patternType the pattern type to set . */ public void setPattern ( String patternType ) { } }
final PatternType type = PatternType . valueOf ( patternType ) ; if ( type != m_model . getPatternType ( ) ) { removeExceptionsOnChange ( new Command ( ) { public void execute ( ) { EndType oldEndType = m_model . getEndType ( ) ; m_model . setPatternType ( type ) ; m_model . setIndividualDates ( null ) ; m_model . setI...
public class YarnHelixUtils { /** * Read a collection { @ link Token } s from a given file . * @ param tokenFilePath the token file path * @ param configuration a { @ link Configuration } object carrying Hadoop configuration properties * @ return a collection of { @ link Token } s * @ throws IOException */ publ...
return Credentials . readTokenStorageFile ( tokenFilePath , configuration ) . getAllTokens ( ) ;
public class GenericStats { /** * { @ inheritDoc } . * Called by Accumulator . */ @ Override public String getValueByNameAsString ( String valueName , String intervalName , TimeUnit timeUnit ) { } }
if ( valueName == null || valueName . isEmpty ( ) ) throw new IllegalArgumentException ( "Value name can not be empty" ) ; StatValue statValue = statValueMap . get ( valueName ) ; if ( statValue != null ) { for ( T metric : metrics ) { if ( valueName . equals ( metric . getCaption ( ) ) ) return getStatValueAsString ( ...
public class LogMessage { /** * This function takes in the message type and sets the appropriate Type . * @ param type This is the error type as a string . */ private void setTypeString ( final String type ) { } }
if ( type == null ) { this . type = null ; } else if ( type . equalsIgnoreCase ( "WARN" ) ) { this . type = Type . WARN ; } else if ( type . equalsIgnoreCase ( "ERROR" ) ) { this . type = Type . ERROR ; } else if ( type . equalsIgnoreCase ( "DEBUG" ) ) { this . type = Type . DEBUG ; } else if ( type . equalsIgnoreCase ...
public class SearchWidgetRegistry { /** * Get a list with all the ids + names of the search widgets in the registry . * @ return list of widget id / name pairs */ public static LinkedHashMap < String , String > getSearchWidgetMapping ( ) { } }
LinkedHashMap < String , String > map = new LinkedHashMap < String , String > ( ) ; for ( SearchWidgetCreator swc : REGISTRY . values ( ) ) { map . put ( swc . getSearchWidgetId ( ) , swc . getSearchWidgetName ( ) ) ; } return map ;
public class RunsInner { /** * Gets the detailed information for a given run . * @ param resourceGroupName The name of the resource group to which the container registry belongs . * @ param registryName The name of the container registry . * @ param runId The run ID . * @ throws IllegalArgumentException thrown ...
return getWithServiceResponseAsync ( resourceGroupName , registryName , runId ) . toBlocking ( ) . single ( ) . body ( ) ;
public class JavacTrees { /** * Prints a message of the specified kind at the location of the * tree within the provided compilation unit * @ param kind the kind of message * @ param msg the message , or an empty string if none * @ param t the tree to use as a position hint * @ param root the compilation unit...
printMessage ( kind , msg , ( ( JCTree ) t ) . pos ( ) , root ) ;
public class Validator { /** * Merges a multi - value property JSONArray . * trims to max length currently 100 items , on a FIFO basis * please clean the key and newValues values before calling this * @ param currentValues current JSONArray property value * @ param newValues JSONArray of new values * @ param ...
ValidationResult vr = new ValidationResult ( ) ; Boolean remove = REMOVE_VALUES_OPERATION . equals ( action ) ; vr = _mergeListInternalForKey ( key , currentValues , newValues , remove , vr ) ; return vr ;
public class Replacer { /** * Makes a Replacer that replaces a literal String key in dict with the corresponding String value in dict . Doesn ' t * need escapes in the Strings it searches for ( at index 0 , 2 , 4 , etc . ) , but cannot search for the exact two * characters in immediate succession , backslash then c...
if ( dict == null || dict . isEmpty ( ) ) return new Replacer ( Pattern . compile ( "$" ) , new DummySubstitution ( "" ) ) ; TableSubstitution tab = new TableSubstitution ( new LinkedHashMap < String , String > ( dict ) ) ; StringBuilder sb = new StringBuilder ( 128 ) ; sb . append ( "(?>" ) ; for ( String s : tab . di...
public class FacesServletAutoConfiguration { /** * This bean registers the { @ link FacesServlet } . * This { @ link ServletRegistrationBean } also sets two * { @ link ServletContext # setAttribute ( String , Object ) servlet - context attributes } to inform Mojarra and MyFaces about * the dynamically added Servl...
ServletRegistrationBean < FacesServlet > facesServletServletRegistrationBean = new ServletRegistrationBean < FacesServlet > ( new FacesServlet ( ) ) { @ Override protected ServletRegistration . Dynamic addRegistration ( String description , ServletContext servletContext ) { ServletRegistration . Dynamic servletRegistra...
public class TransliterationRule { /** * Internal method . Returns 8 - bit index value for this rule . * This is the low byte of the first character of the key , * unless the first character of the key is a set . If it ' s a * set , or otherwise can match multiple keys , the index value is - 1. */ final int getIn...
if ( anteContextLength == pattern . length ( ) ) { // A pattern with just ante context { such as foo ) > bar } can // match any key . return - 1 ; } int c = UTF16 . charAt ( pattern , anteContextLength ) ; return data . lookupMatcher ( c ) == null ? ( c & 0xFF ) : - 1 ;
public class TraceSummary { /** * A list of resource ARNs for any resource corresponding to the trace segments . * @ param resourceARNs * A list of resource ARNs for any resource corresponding to the trace segments . */ public void setResourceARNs ( java . util . Collection < ResourceARNDetail > resourceARNs ) { } ...
if ( resourceARNs == null ) { this . resourceARNs = null ; return ; } this . resourceARNs = new java . util . ArrayList < ResourceARNDetail > ( resourceARNs ) ;
public class FullBoltMetrics { /** * since we could not have default values for them */ public void initMultiCountMetrics ( PhysicalPlanHelper helper ) { } }
// For bolt , we would consider both input stream and output stream List < TopologyAPI . InputStream > inputs = helper . getMyBolt ( ) . getInputsList ( ) ; for ( TopologyAPI . InputStream inputStream : inputs ) { String streamId = inputStream . getStream ( ) . getId ( ) ; String globalStreamId = new StringBuilder ( in...
public class JournalSegment { /** * Completes a journal entry started by a write ( ) call . */ public boolean completeWrite ( ) { } }
int digest = ( int ) _crc . getValue ( ) ; byte [ ] headerBuffer = _headerBuffer ; BitsUtil . writeInt16 ( headerBuffer , 0 , 0 ) ; BitsUtil . writeInt ( headerBuffer , 2 , digest ) ; writeImpl ( headerBuffer , 0 , 6 ) ; return true ;
public class L1SegmentedDataContainer { /** * Removes all entries that map to the given segments * @ param segments the segments to clear data for */ @ Override public void clear ( IntSet segments ) { } }
IntSet extraSegments = null ; PrimitiveIterator . OfInt iter = segments . iterator ( ) ; // First try to just clear the respective maps while ( iter . hasNext ( ) ) { int segment = iter . nextInt ( ) ; ConcurrentMap < K , InternalCacheEntry < K , V > > map = maps . get ( segment ) ; if ( map != null ) { map . clear ( )...
public class WindowedSequence { /** * Returns the window specified at the given index in offsets i . e . asking * for position 2 in a moving window sequence of size 3 will get you * the window starting at position 4. */ public SequenceView < C > get ( int index ) { } }
int start = toStartIndex ( index ) ; int end = index + ( getWindowSize ( ) - 1 ) ; return getBackingSequence ( ) . getSubSequence ( start , end ) ;
public class BrowserDialog { /** * This method initializes jPanelBottom * @ return javax . swing . JPanel */ private JPanel getJPanelBottom ( ) { } }
if ( jPanelBottom == null ) { GridBagConstraints gridBagConstraints2 = new GridBagConstraints ( ) ; gridBagConstraints2 . insets = new java . awt . Insets ( 5 , 3 , 5 , 5 ) ; gridBagConstraints2 . gridy = 0 ; gridBagConstraints2 . anchor = java . awt . GridBagConstraints . EAST ; gridBagConstraints2 . gridx = 2 ; GridB...
public class IndexElasticsearchUpdater { /** * Create a new index in Elasticsearch * @ param client Elasticsearch client * @ param index Index name * @ param settings Settings if any , null if no specific settings * @ throws Exception if the elasticsearch API call is failing */ @ Deprecated private static void ...
logger . trace ( "createIndex([{}])" , index ) ; assert client != null ; assert index != null ; CreateIndexRequestBuilder cirb = client . admin ( ) . indices ( ) . prepareCreate ( index ) ; // If there are settings for this index , we use it . If not , using Elasticsearch defaults . if ( settings != null ) { logger . t...
public class JGoogleAnalyticsTracker { /** * Define the proxy to use for all GA tracking requests . * Call this static method early ( before creating any tracking requests ) . * @ param proxyAddr " addr : port " of the proxy to use ; may also be given as URL ( " http : / / addr : port / " ) . */ public static void ...
if ( proxyAddr != null ) { Scanner s = new Scanner ( proxyAddr ) ; // Split into " proxyAddr : proxyPort " . proxyAddr = null ; int proxyPort = 8080 ; try { s . findInLine ( "(http://|)([^:/]+)(:|)([0-9]*)(/|)" ) ; MatchResult m = s . match ( ) ; if ( m . groupCount ( ) >= 2 ) { proxyAddr = m . group ( 2 ) ; } if ( ( m...
public class NetworkWatchersInner { /** * Configures flow log on a specified resource . * @ param resourceGroupName The name of the network watcher resource group . * @ param networkWatcherName The name of the network watcher resource . * @ param parameters Parameters that define the configuration of flow log . ...
return beginSetFlowLogConfigurationWithServiceResponseAsync ( resourceGroupName , networkWatcherName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ;
public class Queue { /** * Touching a reserved message extends its timeout to the specified duration . * @ param id The ID of the message to delete . * @ param reservationId This id is returned when you reserve a message and must be provided to delete a message that is reserved . * @ param timeout After timeout (...
return touchMessage ( id , reservationId , ( long ) timeout ) ;
public class CmsMessageBundleEditorModel { /** * Locks all files of the currently edited bundle ( that contain the provided key if it is not null ) . * @ param key the key that must be contained in the localization to lock . If null , the files for all localizations are locked . * @ throws CmsException thrown if lo...
for ( Locale l : m_bundleFiles . keySet ( ) ) { if ( ( null == l ) || m_localizations . get ( l ) . containsKey ( key ) ) { lockLocalization ( l ) ; } }
public class CmsContainerpageService { /** * Internal method for saving a group container . < p > * @ param cms the cms context * @ param pageStructureId the container page structure id * @ param groupContainer the group container to save * @ return the container element representing the group container * @ t...
ensureSession ( ) ; CmsResource pageResource = getCmsObject ( ) . readResource ( pageStructureId , CmsResourceFilter . IGNORE_EXPIRATION ) ; CmsResource groupContainerResource = null ; if ( groupContainer . isNew ( ) ) { CmsADEConfigData config = getConfigData ( pageResource . getRootPath ( ) ) ; CmsResourceTypeConfig ...
public class BaseSession { /** * If this database is in my database list , return this object . * @ param database The database to lookup . * @ return this if successful . */ public DatabaseSession getDatabaseSession ( BaseDatabase database ) { } }
for ( int iFieldSeq = 0 ; iFieldSeq < this . getSessionObjectCount ( ) ; iFieldSeq ++ ) { // See if any of my children want to handle this command if ( this . getSessionObjectAt ( iFieldSeq ) . getDatabaseSession ( database ) != null ) return this . getSessionObjectAt ( iFieldSeq ) . getDatabaseSession ( database ) ; }...
public class TFGraphMapper { /** * Strip the variable suffix to give the node name : " Unique : 1 " - > " Unique " */ public String varNameToOpName ( String varName ) { } }
int idx = varName . lastIndexOf ( ':' ) ; if ( idx < 0 ) return varName ; return varName . substring ( 0 , idx ) ;
public class AccountHeaderBuilder { /** * get the current selection * @ return */ protected int getCurrentSelection ( ) { } }
if ( mCurrentProfile != null && mProfiles != null ) { int i = 0 ; for ( IProfile profile : mProfiles ) { if ( profile == mCurrentProfile ) { return i ; } i ++ ; } } return - 1 ;
public class RealConnection { /** * Refuse incoming streams . */ @ Override public void onStream ( Http2Stream stream ) throws IOException { } }
stream . close ( ErrorCode . REFUSED_STREAM , null ) ;
public class HoconFactory { /** * / * Internal methods */ protected Reader _createReader ( InputStream in , JsonEncoding enc , IOContext ctxt ) throws IOException { } }
if ( enc == null ) { enc = JsonEncoding . UTF8 ; } // default to UTF - 8 if encoding missing if ( enc == JsonEncoding . UTF8 ) { boolean autoClose = ctxt . isResourceManaged ( ) || isEnabled ( JsonParser . Feature . AUTO_CLOSE_SOURCE ) ; return new UTF8Reader ( in , autoClose ) ; } return new InputStreamReader ( in , e...
public class Vector4f { /** * Set this { @ link Vector4f } to the values of the given < code > v < / code > . * @ param v * the vector whose values will be copied into this * @ return this */ public Vector4f set ( Vector4fc v ) { } }
if ( v instanceof Vector4f ) { MemUtil . INSTANCE . copy ( ( Vector4f ) v , this ) ; } else { this . x = v . x ( ) ; this . y = v . y ( ) ; this . z = v . z ( ) ; this . w = v . w ( ) ; } return this ;
public class CSL { /** * Loads a CSL style from the classpath . For example , if the given name * is < code > ieee < / code > this method will load the file < code > / ieee . csl < / code > * @ param styleName the style ' s name * @ return the serialized XML representation of the style * @ throws IOException if...
URL url ; if ( styleName . startsWith ( "http://" ) || styleName . startsWith ( "https://" ) ) { try { // try to load matching style from classpath return loadStyle ( styleName . substring ( styleName . lastIndexOf ( '/' ) + 1 ) ) ; } catch ( FileNotFoundException e ) { // there is no matching style in classpath url = ...
public class Range { /** * @ param ranges in - out argument * TODO : * o expensive , the list is modified . . . * * states that touch each other are not merged */ public static void normalizeRanges ( List < Range > ranges ) { } }
int i , todo , max ; Range current , op , and ; todo = 0 ; while ( todo < ranges . size ( ) ) { // take the first range , and - it with all others and // append fractions to the end . current = ( Range ) ranges . get ( todo ) ; max = ranges . size ( ) ; // don ' t grow max inside the for - loop for ( i = todo + 1 ; i <...
public class ProcessUtils { /** * Runs process . * @ param args List of process args . * @ return A ProcessResult data structure . * @ throws IOException If interrupted , we throw an IOException . If non - zero * exit code , we throw an IOException ( This may need to change ) . */ public static ProcessUtils . P...
Process p = Runtime . getRuntime ( ) . exec ( args ) ; ProcessUtils pu = new ProcessUtils ( ) ; // Gobble up any output . StreamGobbler err = pu . new StreamGobbler ( p . getErrorStream ( ) , "stderr" ) ; err . setDaemon ( true ) ; err . start ( ) ; StreamGobbler out = pu . new StreamGobbler ( p . getInputStream ( ) , ...
public class Qcow2OverlapChecks { @ Nonnull public static Qcow2OverlapChecks flags ( @ Nonnull Qcow2OverlapCheckFlags flags ) { } }
Qcow2OverlapChecks self = new Qcow2OverlapChecks ( ) ; self . flags = flags ; return self ;
public class AbstractFxmlView { /** * Load synchronously . * @ param resource * the resource * @ param bundle * the bundle * @ return the FXML loader * @ throws IllegalStateException * the illegal state exception */ private FXMLLoader loadSynchronously ( final URL resource , final Optional < ResourceBundl...
final FXMLLoader loader = new FXMLLoader ( resource , bundle . orElse ( null ) ) ; loader . setControllerFactory ( this :: createControllerForType ) ; try { loader . load ( ) ; } catch ( final IOException | IllegalStateException e ) { throw new IllegalStateException ( "Cannot load " + getConventionalName ( ) , e ) ; } ...
public class ParallaxImageView { /** * Sets the image view ' s translation coordinates . These values must be between - 1 and 1, * representing the transaction percentage from the center . * @ param x the horizontal translation * @ param y the vertical translation */ private void setTranslate ( float x , float y ...
if ( Math . abs ( x ) > 1 || Math . abs ( y ) > 1 ) { throw new IllegalArgumentException ( "Parallax effect cannot translate more than 100% of its off-screen size" ) ; } float xScale , yScale ; if ( mScaledIntensities ) { // Set both scales to their offset values xScale = mXOffset ; yScale = mYOffset ; } else { // Set ...
public class JsonSerDe { /** * Utility method to extract current expected field from given JsonParser * isTokenCurrent is a boolean variable also passed in , which determines * if the JsonParser is already at the token we expect to read next , or * needs advancing to the next before we read . */ private Object ex...
Object val = null ; JsonToken valueToken ; if ( isTokenCurrent ) { valueToken = p . getCurrentToken ( ) ; } else { valueToken = p . nextToken ( ) ; } switch ( hcatFieldSchema . getType ( ) ) { case INT : val = ( valueToken == JsonToken . VALUE_NULL ) ? null : p . getIntValue ( ) ; break ; case TINYINT : val = ( valueTo...
public class CRest { /** * < p > Build a < b > CRest < / b > instance that authenticate all request using OAuth . < / p > * @ param consumerKey consumer key to use * @ param consumerSecret consumer secret to use * @ param accessToken access token to use * @ param accessTokenSecret access token secret to use *...
return oauth ( consumerKey , consumerSecret , accessToken , accessTokenSecret , sessionHandle , accessTokenRefreshUrl ) . build ( ) ;
public class DetectorToDetector2Adapter { /** * ( non - Javadoc ) * @ see * edu . umd . cs . findbugs . Detector2 # visitClass ( edu . umd . cs . findbugs . classfile * . ClassDescriptor ) */ @ Override public void visitClass ( ClassDescriptor classDescriptor ) throws CheckedAnalysisException { } }
// Just get the ClassContext from the analysis cache // and apply the detector to it . IAnalysisCache analysisCache = Global . getAnalysisCache ( ) ; ClassContext classContext = analysisCache . getClassAnalysis ( ClassContext . class , classDescriptor ) ; Profiler profiler = analysisCache . getProfiler ( ) ; profiler ....
public class PixelMatrix { /** * * * * * * Resizing * * * * * */ private void resize ( ) { } }
width = getWidth ( ) - getInsets ( ) . getLeft ( ) - getInsets ( ) . getRight ( ) ; height = getHeight ( ) - getInsets ( ) . getTop ( ) - getInsets ( ) . getBottom ( ) ; pixelSize = ( width / cols ) < ( height / rows ) ? ( width / cols ) : ( height / rows ) ; pixelWidth = ( width / cols ) ; pixelHeight = ( height / row...
public class BaseValidator { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public boolean validateUNKNSF ( UNKNSF unknsf , DiagnosticChain diagnostics , Map < Object , Object > context ) { } }
return validate_EveryDefaultConstraint ( unknsf , diagnostics , context ) ;
public class PagerIndicator { /** * since we used a adapter wrapper , so we can ' t getCount directly from wrapper . * @ return */ private int getShouldDrawCount ( ) { } }
if ( mPager . getAdapter ( ) instanceof InfinitePagerAdapter ) { return ( ( InfinitePagerAdapter ) mPager . getAdapter ( ) ) . getRealCount ( ) ; } else { return mPager . getAdapter ( ) . getCount ( ) ; }
public class UndertowReactiveWebServerFactory { /** * Set { @ link UndertowBuilderCustomizer } s that should be applied to the Undertow * { @ link io . undertow . Undertow . Builder Builder } . Calling this method will replace any * existing customizers . * @ param customizers the customizers to set */ public voi...
Assert . notNull ( customizers , "Customizers must not be null" ) ; this . builderCustomizers = new ArrayList < > ( customizers ) ;
public class PeepholeReplaceKnownMethods { /** * Try to evaluate parseInt , parseFloat : * parseInt ( " 1 " ) - > 1 * parseInt ( " 1 " , 10 ) - > 1 * parseFloat ( " 1.11 " ) - > 1.11 */ private Node tryFoldParseNumber ( Node n , String functionName , Node firstArg ) { } }
checkArgument ( n . isCall ( ) ) ; boolean isParseInt = functionName . equals ( "parseInt" ) ; Node secondArg = firstArg . getNext ( ) ; // Second argument is only used as the radix for parseInt int radix = 0 ; if ( secondArg != null ) { if ( ! isParseInt ) { return n ; } // Third - argument and non - numeric second ar...
public class OptionsCertificatePanel { /** * GEN - LAST : event _ showActiveCertificateButtonActionPerformed */ private void addPkcs11ButtonActionPerformed ( java . awt . event . ActionEvent evt ) { } }
// GEN - FIRST : event _ addPkcs11ButtonActionPerformed String name = null ; try { final int indexSelectedDriver = driverComboBox . getSelectedIndex ( ) ; name = driverConfig . getNames ( ) . get ( indexSelectedDriver ) ; if ( name . equals ( "" ) ) { return ; } String library = driverConfig . getPaths ( ) . get ( inde...
public class ThriftClient { /** * ( non - Javadoc ) * @ see com . impetus . kundera . client . Client # findByRelation ( java . lang . String , * java . lang . Object , java . lang . Class ) */ @ Override public List < Object > findByRelation ( String colName , Object colValue , Class entityClazz ) { } }
EntityMetadata m = KunderaMetadataManager . getEntityMetadata ( kunderaMetadata , entityClazz ) ; List < Object > entities = null ; if ( isCql3Enabled ( m ) ) { entities = new ArrayList < Object > ( ) ; MetamodelImpl metaModel = ( MetamodelImpl ) kunderaMetadata . getApplicationMetadata ( ) . getMetamodel ( m . getPers...
public class CollectedStatistics { /** * Add a StopWatch to the statistics . * @ param sw StopWatch to add . */ public synchronized void add ( StopWatch sw ) { } }
double timeInMs = sw . getTimeMicros ( ) / MICROS_IN_MILLIS ; // let fake the array for ( int i = 0 ; i < sw . getCount ( ) ; i ++ ) m_times . add ( timeInMs / sw . getCount ( ) ) ; if ( timeInMs < m_min ) m_min = timeInMs ; if ( timeInMs > m_max ) m_max = timeInMs ;
public class ApolloCallTracker { /** * < p > Adds provided { @ link ApolloQueryWatcher } that is currently in progress . < / p > * < p > < b > Note < / b > : This method needs to be called right before * { @ link ApolloQueryWatcher # enqueueAndWatch ( ApolloCall . Callback ) } . < / p > */ void registerQueryWatcher...
checkNotNull ( queryWatcher , "queryWatcher == null" ) ; OperationName operationName = queryWatcher . operation ( ) . name ( ) ; registerCall ( activeQueryWatchers , operationName , queryWatcher ) ;
public class SeleniumSpec { /** * Switches to a frame / iframe . */ @ Given ( "^I switch to the iframe on index '(\\d+?)'$" ) public void seleniumSwitchFrame ( Integer index ) { } }
assertThat ( commonspec . getPreviousWebElements ( ) ) . as ( "There are less found elements than required" ) . hasAtLeast ( index ) ; WebElement elem = commonspec . getPreviousWebElements ( ) . getPreviousWebElements ( ) . get ( index ) ; commonspec . getDriver ( ) . switchTo ( ) . frame ( elem ) ;
public class JsiiEngine { /** * Given a java class that extends a Jsii proxy , loads the corresponding jsii module * and returns the FQN of the jsii type . * @ param nativeClass The java class . * @ return The FQN . */ String loadModuleForClass ( Class < ? > nativeClass ) { } }
final Jsii jsii = tryGetJsiiAnnotation ( nativeClass , true ) ; if ( jsii == null ) { throw new JsiiException ( "Unable to find @Jsii annotation for class" ) ; } this . loadModule ( jsii . module ( ) ) ; return jsii . fqn ( ) ;
public class Job { /** * This is the non - type - safe version of the { @ code futureCall ( ) } family of * methods . Normally a user will not need to invoke this method directly . * Instead , one of the type - safe methods such as * { @ link # futureCall ( Job2 , Value , Value , JobSetting . . . ) } should be us...
JobRecord childJobRecord = PipelineManager . registerNewJobRecord ( updateSpec , settings , thisJobRecord , currentRunGUID , jobInstance , params ) ; thisJobRecord . appendChildKey ( childJobRecord . getKey ( ) ) ; return new FutureValueImpl < > ( childJobRecord . getOutputSlotInflated ( ) ) ;
public class PhiAccrualFailureDetector { /** * bootstrap with 2 entries with rather high standard deviation */ @ SuppressWarnings ( "checkstyle:magicnumber" ) private void firstHeartbeat ( long firstHeartbeatEstimateMillis ) { } }
long stdDeviationMillis = firstHeartbeatEstimateMillis / 4 ; heartbeatHistory . add ( firstHeartbeatEstimateMillis - stdDeviationMillis ) ; heartbeatHistory . add ( firstHeartbeatEstimateMillis + stdDeviationMillis ) ;
public class diff_match_patch { /** * Compute and return the score for a match with e errors and x location . * @ param e * Number of errors in match . * @ param x * Location of match . * @ param loc * Expected location of match . * @ param pattern * Pattern being sought . * @ return Overall score for...
float accuracy = ( float ) e / pattern . length ( ) ; int proximity = Math . abs ( loc - x ) ; if ( Match_Distance == 0 ) { // Dodge divide by zero error . return proximity == 0 ? accuracy : 1.0 ; } return accuracy + ( proximity / ( float ) Match_Distance ) ;
public class ClassPathBinaryResourceGenerator { /** * ( non - Javadoc ) * @ see net . jawr . web . resource . bundle . generator . StreamResourceGenerator # * createResourceAsStream * ( net . jawr . web . resource . bundle . generator . GeneratorContext ) */ @ Override public InputStream createResourceAsStream ( ...
InputStream is = null ; if ( FileNameUtils . hasImageExtension ( context . getPath ( ) ) ) { is = helper . createStreamResource ( context ) ; } return is ;
public class OCommandExecutorSQLAlterClass { /** * Execute the ALTER CLASS . */ public Object execute ( final Map < Object , Object > iArgs ) { } }
if ( attribute == null ) throw new OCommandExecutionException ( "Cannot execute the command because it has not been parsed yet" ) ; final OClassImpl cls = ( OClassImpl ) getDatabase ( ) . getMetadata ( ) . getSchema ( ) . getClass ( className ) ; if ( cls == null ) throw new OCommandExecutionException ( "Source class '...
public class JdbcPublisher { /** * 1 . Truncate destination table if requested * 2 . Move data from staging to destination * 3 . Update Workunit state * TODO : Research on running this in parallel . While testing publishing it in parallel , it turns out delete all from the table locks the table * so that copyin...
LOG . info ( "Start publishing data" ) ; int branches = this . state . getPropAsInt ( ConfigurationKeys . FORK_BRANCHES_KEY , 1 ) ; Set < String > emptiedDestTables = Sets . newHashSet ( ) ; final Connection conn = createConnection ( ) ; final JdbcWriterCommands commands = this . jdbcWriterCommandsFactory . newInstance...
public class WaitHttpConditionBuilder { /** * Sets the Http status code to check . * @ param status * @ return */ public WaitHttpConditionBuilder status ( HttpStatus status ) { } }
getCondition ( ) . setHttpResponseCode ( String . valueOf ( status . value ( ) ) ) ; return this ;
public class SVGAndroidRenderer { /** * This was one of the ambiguous markers . Try to see if we can find a better direction for * it , now that we have more info available on the neighbouring marker positions . */ private MarkerVector realignMarkerMid ( MarkerVector lastPos , MarkerVector thisPos , MarkerVector next...
// Check the temporary marker vector against the incoming vector float dot = dotProduct ( thisPos . dx , thisPos . dy , ( thisPos . x - lastPos . x ) , ( thisPos . y - lastPos . y ) ) ; if ( dot == 0f ) { // Those two were perpendicular , so instead try the outgoing vector dot = dotProduct ( thisPos . dx , thisPos . dy...
public class CmsContainerElementBean { /** * Creates an element bean for the given resource type . < p > * < b > The represented resource will be in memory only and not in the VFS ! ! ! . < / b > < p > * @ param cms the CMS context * @ param resourceType the resource type * @ param targetFolder the parent folde...
if ( ! ( resourceType instanceof CmsResourceTypeXmlContent ) ) { throw new IllegalArgumentException ( ) ; } byte [ ] content = new byte [ 0 ] ; String schema = ( ( CmsResourceTypeXmlContent ) resourceType ) . getSchema ( ) ; if ( schema != null ) { // must set URI of OpenCms user context to parent folder of created res...
public class AmazonElastiCacheClient { /** * Returns a list of cache security group descriptions . If a cache security group name is specified , the list * contains only the description of that group . * @ param describeCacheSecurityGroupsRequest * Represents the input of a < code > DescribeCacheSecurityGroups < ...
request = beforeClientExecution ( request ) ; return executeDescribeCacheSecurityGroups ( request ) ;
public class JarClassLoader { /** * 加载Jar文件 , 或者加载目录 * @ param jarFileOrDir jar文件或者jar文件所在目录 * @ return this */ public JarClassLoader addJar ( File jarFileOrDir ) { } }
if ( isJarFile ( jarFileOrDir ) ) { return addURL ( jarFileOrDir ) ; } final List < File > jars = loopJar ( jarFileOrDir ) ; for ( File jar : jars ) { addURL ( jar ) ; } return this ;
public class AbstractCompositeHandler { /** * { @ inheritDoc } */ public QueryResult whenSQLQuery ( final String sql , final List < Parameter > parameters ) throws SQLException { } }
if ( this . queryHandler == null ) { throw new SQLException ( "No query handler" ) ; } // end of if return this . queryHandler . apply ( sql , parameters ) ;
public class CoordinationElement { /** * setter for cat - sets * @ generated * @ param v value to set into the feature */ public void setCat ( String v ) { } }
if ( CoordinationElement_Type . featOkTst && ( ( CoordinationElement_Type ) jcasType ) . casFeat_cat == null ) jcasType . jcas . throwFeatMissing ( "cat" , "de.julielab.jules.types.CoordinationElement" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( CoordinationElement_Type ) jcasType ) . casFeatCode_cat , v ) ;
public class JvmParameterizedTypeReferenceImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case TypesPackage . JVM_PARAMETERIZED_TYPE_REFERENCE__ARGUMENTS : return getArguments ( ) ; case TypesPackage . JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE : if ( resolve ) return getType ( ) ; return basicGetType ( ) ; } return super . eGet ( featureID , resolve , coreType ) ;
public class PageObjectUtil { /** * 从对象中取参数 * @ param paramsObject * @ param paramName * @ param required * @ return */ protected static Object getParamValue ( MetaObject paramsObject , String paramName , boolean required ) { } }
Object value = null ; if ( paramsObject . hasGetter ( PARAMS . get ( paramName ) ) ) { value = paramsObject . getValue ( PARAMS . get ( paramName ) ) ; } if ( value != null && value . getClass ( ) . isArray ( ) ) { Object [ ] values = ( Object [ ] ) value ; if ( values . length == 0 ) { value = null ; } else { value = ...
public class SpecificationMethodAdapter { /** * Marks the end of a busy section . */ @ Requires ( { } }
"contextLocal >= 0" , "skip != null" } ) protected void leaveBusySection ( Label skip ) { loadLocal ( contextLocal ) ; invokeVirtual ( CONTRACT_CONTEXT_TYPE , LEAVE_CONTRACT_METHOD ) ; mark ( skip ) ;