signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Polygon { /** * Removes the corner of Polygon . * @ param index The index number of the corner . */ public void removeVertex ( int index ) { } }
this . cornerX . remove ( index ) ; this . cornerY . remove ( index ) ; this . cornerZ . remove ( index ) ; if ( isGradation ( ) == true ) this . cornerColor . remove ( index ) ; setNumberOfCorner ( this . cornerX . size ( ) ) ; calcG ( ) ;
public class JsonServiceDocumentWriter { /** * Writes the kind of the entity . * @ param jsonGenerator jsonGenerator * @ param entity entity from the container */ private void writeKind ( JsonGenerator jsonGenerator , Object entity ) throws IOException { } }
jsonGenerator . writeFieldName ( KIND ) ; if ( entity instanceof EntitySet ) { jsonGenerator . writeObject ( ENTITY_SET ) ; } else { jsonGenerator . writeObject ( SINGLETON ) ; }
public class Helpers { /** * Create a text message that will be stored in the database . Must be called inside a transaction . */ static void createMessage ( String textMessage , JobInstance jobInstance , DbConn cnx ) { } }
cnx . runUpdate ( "message_insert" , jobInstance . getId ( ) , textMessage ) ;
public class ToolBarEastState { /** * { @ inheritDoc } */ public boolean isInState ( JComponent c ) { } }
JToolBar toolbar = ( JToolBar ) c ; return SeaGlassLookAndFeel . resolveToolbarConstraint ( toolbar ) == BorderLayout . EAST ;
public class TerminateJobFlowsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( TerminateJobFlowsRequest terminateJobFlowsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( terminateJobFlowsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( terminateJobFlowsRequest . getJobFlowIds ( ) , JOBFLOWIDS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class AbstractDataDictionaryParser { /** * Parses all mapping definitions and adds those to the bean definition * builder as property value . * @ param builder the target bean definition builder . * @ param element the source element . */ private void parseMappingDefinitions ( BeanDefinitionBuilder builder , Element element ) { } }
HashMap < String , String > mappings = new HashMap < String , String > ( ) ; for ( Element matcher : DomUtils . getChildElementsByTagName ( element , "mapping" ) ) { mappings . put ( matcher . getAttribute ( "path" ) , matcher . getAttribute ( "value" ) ) ; } if ( ! mappings . isEmpty ( ) ) { builder . addPropertyValue ( "mappings" , mappings ) ; }
public class DetectLabelsResult { /** * An array of labels for the real - world objects detected . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setLabels ( java . util . Collection ) } or { @ link # withLabels ( java . util . Collection ) } if you want to override the * existing values . * @ param labels * An array of labels for the real - world objects detected . * @ return Returns a reference to this object so that method calls can be chained together . */ public DetectLabelsResult withLabels ( Label ... labels ) { } }
if ( this . labels == null ) { setLabels ( new java . util . ArrayList < Label > ( labels . length ) ) ; } for ( Label ele : labels ) { this . labels . add ( ele ) ; } return this ;
public class GoogleCloudStorageFileSystem { /** * Construct a URI using the legacy path codec . * @ deprecated This method is deprecated as each instance of GCS FS can be configured * with a codec . */ @ Deprecated public static URI getPath ( String bucketName , String objectName ) { } }
return LEGACY_PATH_CODEC . getPath ( bucketName , objectName , false /* do not allow empty object */ ) ;
public class BlockBox { /** * Sets the height of the content while considering the min - and max - height . * @ param height the height the set if possible */ public void setContentHeight ( int height ) { } }
int h = height ; if ( max_size . height != - 1 && h > max_size . height ) h = max_size . height ; if ( min_size . height != - 1 && h < min_size . height ) h = min_size . height ; content . height = h ;
public class JSONObject { /** * Put a key / int pair in the JSONObject . * @ param key A key string . * @ param value An int which is the value . * @ return this * @ throws JSONException If the key is null . */ public JSONObject put ( String key , int value ) throws JSONException { } }
put ( key , Integer . valueOf ( value ) ) ; return this ;
public class GoogleMapShapeConverter { /** * Convert a { @ link com . google . android . gms . maps . model . Polygon } to a * { @ link Polygon } * @ param polygon polygon * @ param hasZ has z flag * @ param hasM has m flag * @ return polygon */ public Polygon toPolygon ( com . google . android . gms . maps . model . Polygon polygon , boolean hasZ , boolean hasM ) { } }
return toPolygon ( polygon . getPoints ( ) , polygon . getHoles ( ) , hasZ , hasM ) ;
public class SimpleFieldValidation { /** * Adds the rule against the field address path . If the rule returns an error , it will be added to the list of errors * @ param fieldPath the path to the field * @ param rule the rule function * @ return this validator */ public SimpleFieldValidation addRule ( ExecutionPath fieldPath , BiFunction < FieldAndArguments , FieldValidationEnvironment , Optional < GraphQLError > > rule ) { } }
rules . put ( fieldPath , rule ) ; return this ;
public class CountSqlParser { /** * 判断Orderby是否包含参数 , 有参数的不能去 * @ param orderByElements * @ return */ public boolean orderByHashParameters ( List < OrderByElement > orderByElements ) { } }
if ( orderByElements == null ) { return false ; } for ( OrderByElement orderByElement : orderByElements ) { if ( orderByElement . toString ( ) . contains ( "?" ) ) { return true ; } } return false ;
public class KeyVaultClientBaseImpl { /** * The update key operation changes specified attributes of a stored key and can be applied to any key type and key version stored in Azure Key Vault . * In order to perform this operation , the key must already exist in the Key Vault . Note : The cryptographic material of a key itself cannot be changed . This operation requires the keys / update permission . * @ param vaultBaseUrl The vault name , for example https : / / myvault . vault . azure . net . * @ param keyName The name of key to update . * @ param keyVersion The version of the key to update . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws KeyVaultErrorException thrown if the request is rejected by server * @ throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @ return the KeyBundle object if successful . */ public KeyBundle updateKey ( String vaultBaseUrl , String keyName , String keyVersion ) { } }
return updateKeyWithServiceResponseAsync ( vaultBaseUrl , keyName , keyVersion ) . toBlocking ( ) . single ( ) . body ( ) ;
public class CSVDumper { /** * Connect to the Doradus server and download the requested application ' s schema . */ private void loadSchema ( ) { } }
m_logger . info ( "Loading schema for application: {}" , m_config . app ) ; m_client = new Client ( m_config . host , m_config . port , m_config . getTLSParams ( ) ) ; m_client . setCredentials ( m_config . getCredentials ( ) ) ; m_session = m_client . openApplication ( m_config . app ) ; // throws if unknown app m_appDef = m_session . getAppDef ( ) ; if ( m_config . optimize ) { computeLinkFanouts ( ) ; }
public class WebContainerMonitor { /** * Method : initServletStats ( ) * @ param _ app = Application Name * @ param _ ser = Servlet Name * This method will create ServletStats object for current servlet . * This method needs to be synchronised . * This method gets called only at first request . */ public synchronized ServletStats initServletStats ( String _app , String _ser ) { } }
String _key = _app + "." + _ser ; ServletStats nStats = this . servletCountByName . get ( _key ) ; if ( nStats == null ) { nStats = new ServletStats ( _app , _ser ) ; this . servletCountByName . put ( _key , nStats ) ; } return nStats ;
public class DSet { /** * Creates an < b > immutable < / b > view of this distributed set as a Java set . */ public Set < E > asSet ( ) { } }
return new AbstractSet < E > ( ) { @ Override public boolean add ( E o ) { throw new UnsupportedOperationException ( ) ; } @ Override public boolean remove ( Object o ) { throw new UnsupportedOperationException ( ) ; } @ Override public boolean contains ( Object o ) { if ( ! ( o instanceof DSet . Entry ) ) { return false ; } @ SuppressWarnings ( "unchecked" ) E elem = ( E ) o ; return DSet . this . contains ( elem ) ; } @ Override public Iterator < E > iterator ( ) { return DSet . this . iterator ( ) ; } @ Override public int size ( ) { return DSet . this . size ( ) ; } } ;
public class ByteVector { /** * Get a copy of the raw byte [ ] array . * @ return copy of values array . */ public byte [ ] getValues ( ) { } }
byte [ ] copy = new byte [ values . length ] ; System . arraycopy ( values , 0 , copy , 0 , values . length ) ; return copy ;
public class IfcSpaceImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) public EList < IfcRelSpaceBoundary > getBoundedBy ( ) { } }
return ( EList < IfcRelSpaceBoundary > ) eGet ( Ifc2x3tc1Package . Literals . IFC_SPACE__BOUNDED_BY , true ) ;
public class AbstractAgent { /** * { @ inheritDoc } * @ see jp . co . future . uroborosql . SqlAgent # close ( ) */ @ Override public void close ( ) { } }
transactionManager . close ( ) ; if ( coverageHandlerRef . get ( ) != null ) { coverageHandlerRef . get ( ) . onSqlAgentClose ( ) ; }
public class DocumentBlock { /** * setter for hasManyFontsizes - sets * @ generated * @ param v value to set into the feature */ public void setHasManyFontsizes ( boolean v ) { } }
if ( DocumentBlock_Type . featOkTst && ( ( DocumentBlock_Type ) jcasType ) . casFeat_hasManyFontsizes == null ) jcasType . jcas . throwFeatMissing ( "hasManyFontsizes" , "ch.epfl.bbp.uima.types.DocumentBlock" ) ; jcasType . ll_cas . ll_setBooleanValue ( addr , ( ( DocumentBlock_Type ) jcasType ) . casFeatCode_hasManyFontsizes , v ) ;
public class Jenkins { /** * / * package */ void trimLabels ( ) { } }
for ( Iterator < Label > itr = labels . values ( ) . iterator ( ) ; itr . hasNext ( ) ; ) { Label l = itr . next ( ) ; resetLabel ( l ) ; if ( l . isEmpty ( ) ) itr . remove ( ) ; }
public class AbstractBuilder { /** * Replies if the type could contains functions with a body . */ @ Pure protected boolean isActionBodyAllowed ( XtendTypeDeclaration type ) { } }
return ! ( type instanceof SarlAnnotationType || type instanceof SarlCapacity || type instanceof SarlEvent || type instanceof SarlInterface ) ;
public class IonIon { /** * - - - WRITER FACTORY - - - */ public CachedWriter createWriter ( boolean pretty ) throws IOException { } }
CachedWriter writer = new CachedWriter ( ) ; writer . buffer = new ByteArrayOutputStream ( 512 ) ; writer . writer = IonBinaryWriterBuilder . standard ( ) . build ( writer . buffer ) ; return writer ;
public class AnalyticsBot { /** * Use this method to get a list of administrators in a chat . * @ param chat _ id Unique identifier for the target chat or username of the target supergroup or channel ( in the format @ channelusername ) * @ return On success , returns an Array of ChatMember objects that contains information about all chat administrators except other bots . * If the chat is a group or a supergroup and no administrators were appointed , only the creator will be returned . * @ throws IOException an exception is thrown in case of any service call failures */ @ Override public ChatMember [ ] getChatAdministrators ( ChatId chat_id ) throws IOException { } }
AnalyticsData data = new AnalyticsData ( "getChatAdministrators" ) ; IOException ioException = null ; ChatMember [ ] admins = null ; data . setValue ( "chat_id" , chat_id ) ; try { admins = bot . getChatAdministrators ( chat_id ) ; data . setReturned ( admins ) ; } catch ( IOException e ) { ioException = e ; data . setIoException ( ioException ) ; } analyticsWorker . putData ( data ) ; if ( ioException != null ) { throw ioException ; } return admins ;
public class BigRational { /** * Returns the smallest of the specified rational numbers . * @ param values the rational numbers to compare * @ return the smallest rational number , 0 if no numbers are specified */ public static BigRational min ( BigRational ... values ) { } }
if ( values . length == 0 ) { return BigRational . ZERO ; } BigRational result = values [ 0 ] ; for ( int i = 1 ; i < values . length ; i ++ ) { result = result . min ( values [ i ] ) ; } return result ;
public class ExecutionGraph { /** * Returns the result of { @ link # computeAllPriorAllocationIds ( ) } , but only if the scheduling really requires it . * Otherwise this method simply returns an empty set . */ private Set < AllocationID > computeAllPriorAllocationIdsIfRequiredByScheduling ( ) { } }
// This is a temporary optimization to avoid computing all previous allocations if not required // This can go away when we progress with the implementation of the Scheduler . if ( slotProvider instanceof Scheduler && ( ( Scheduler ) slotProvider ) . requiresPreviousExecutionGraphAllocations ( ) ) { return computeAllPriorAllocationIds ( ) ; } else { return Collections . emptySet ( ) ; }
public class TransitionFilter { /** * Prepare the filter for the transiton at a given time . * The default implementation sets the given filter property , but you could override this method to make other changes . * @ param transition the transition time in the range 0 - 1 */ public void prepareFilter ( float transition ) { } }
try { method . invoke ( filter , new Object [ ] { new Float ( transition ) } ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Error setting value for property: " + property ) ; }
public class WsLogRecord { /** * Set a throwable associated with the log event . * @ param throwable * a throwable */ @ Override public void setThrown ( Throwable thrown ) { } }
if ( thrown != null ) { super . setThrown ( thrown ) ; this . ivStackTrace = DataFormatHelper . throwableToString ( thrown ) ; }
public class AppServiceEnvironmentsInner { /** * Get usage metrics for a worker pool of an App Service Environment . * Get usage metrics for a worker pool of an App Service Environment . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the PagedList & lt ; UsageInner & gt ; object */ public Observable < ServiceResponse < Page < UsageInner > > > listWebWorkerUsagesNextWithServiceResponseAsync ( final String nextPageLink ) { } }
return listWebWorkerUsagesNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < UsageInner > > , Observable < ServiceResponse < Page < UsageInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < UsageInner > > > call ( ServiceResponse < Page < UsageInner > > page ) { String nextPageLink = page . body ( ) . nextPageLink ( ) ; if ( nextPageLink == null ) { return Observable . just ( page ) ; } return Observable . just ( page ) . concatWith ( listWebWorkerUsagesNextWithServiceResponseAsync ( nextPageLink ) ) ; } } ) ;
public class CatalogDiffEngine { /** * After we decide we can ' t modify , add or delete something on a full table , * we do a check to see if we can do that on an empty table . The original error * and any response from the empty table check is processed here . This code * is basically in this method so it ' s not repeated 3 times for modify , add * and delete . See where it ' s called for context . * If the responseList equals null , it is not possible to modify , otherwise we * do the check described above for every element in the responseList , if there * is no element in the responseList , it means no tables must be empty , which is * totally fine . */ private void processModifyResponses ( String errorMessage , List < TablePopulationRequirements > responseList ) { } }
assert ( errorMessage != null ) ; // if no requirements , then it ' s just not possible if ( responseList == null ) { m_supported = false ; m_errors . append ( errorMessage + "\n" ) ; return ; } // otherwise , it ' s possible if a specific table is empty // collect the error message ( s ) and decide if it can be done inside @ UAC for ( TablePopulationRequirements response : responseList ) { String objectName = response . getObjectName ( ) ; String nonEmptyErrorMessage = response . getErrorMessage ( ) ; assert ( nonEmptyErrorMessage != null ) ; TablePopulationRequirements popreq = m_tablesThatMustBeEmpty . get ( objectName ) ; if ( popreq == null ) { popreq = response ; m_tablesThatMustBeEmpty . put ( objectName , popreq ) ; } else { String newErrorMessage = popreq . getErrorMessage ( ) + "\n " + response . getErrorMessage ( ) ; popreq . setErrorMessage ( newErrorMessage ) ; } }
public class Serializer { /** * Registers an abstract type serializer for the given abstract type . * Abstract serializers allow abstract types to be serialized without explicitly registering a concrete type . * The concept of abstract serializers differs from { @ link # registerDefault ( Class , TypeSerializerFactory ) default serializers } * in that abstract serializers can be registered with a serializable type ID , and types { @ link # register ( Class ) registered } * without a specific { @ link TypeSerializer } do not inheret from abstract serializers . * < pre > * { @ code * serializer . registerAbstract ( List . class , AbstractListSerializer . class ) ; * < / pre > * @ param abstractType The abstract type for which to register the abstract serializer . Types that extend * the abstract type will be serialized using the given abstract serializer unless a * serializer has been registered for the specific concrete type . * @ param factory The abstract type serializer factory with which to serialize instances of the abstract type . * @ return The serializer . * @ throws NullPointerException if the { @ code abstractType } or { @ code serializer } is { @ code null } */ public Serializer registerAbstract ( Class < ? > abstractType , TypeSerializerFactory factory ) { } }
registry . registerAbstract ( abstractType , factory ) ; return this ;
public class Sql { /** * 根据Sql变量位置获取变量名称 * 仅对于PreperedStatment有效 * @ param index 变量位置 * @ return 变量名称 */ public String getKeyByIndex ( int index ) { } }
Set < String > keySet = keyIndexs . keySet ( ) ; for ( String key : keySet ) { int idx = keyIndexs . get ( key ) ; if ( index == idx ) { return key ; } } return null ;
public class Table { /** * Generates xPath from element locator and path to the row ( & lt ; tr & gt ; tag ) < br > * Checks if table has & lt ; TBODY & gt ; tag and adds it to the xPath < br > * @ return String with beginning of xPath < br > */ public String getXPathBase ( ) { } }
String xPathBase = "" ; if ( this . getElement ( ) != null ) { String locator = getLocator ( ) ; if ( ! locator . startsWith ( "link=" ) && ! locator . startsWith ( "xpath=" ) && ! locator . startsWith ( "/" ) ) { if ( locator . startsWith ( "id=" ) || locator . startsWith ( "name=" ) ) { String tmp = locator . substring ( locator . indexOf ( '=' , 1 ) + 1 ) ; if ( locator . startsWith ( "id=" ) ) { xPathBase = "//table[@id='" + tmp + "']/tbody/" ; } else { xPathBase = "//*[@name='" + tmp + "']/tbody/" ; } } else { xPathBase = "//*[@id='" + locator + "']/tbody/" ; } } else { if ( locator . startsWith ( "xpath=" ) ) { locator = locator . substring ( locator . indexOf ( '=' , 1 ) + 1 ) ; } if ( HtmlElementUtils . locateElements ( locator + "/tbody" ) . size ( ) > 0 ) { xPathBase = locator + "/tbody/" ; } else { xPathBase = locator + "//" ; } } } else { throw new NoSuchElementException ( "Table" + this . getLocator ( ) + " does not exist." ) ; } return xPathBase ;
public class LatLonGridlineOverlay { /** * resets the settings * @ since 5.6.3 */ public static void setDefaults ( ) { } }
lineColor = Color . BLACK ; fontColor = Color . WHITE ; backgroundColor = Color . BLACK ; lineWidth = 1f ; fontSizeDp = 32 ; DEBUG = false ; DEBUG2 = false ;
public class JScoreComponent { /** * Writes the currently set tune score to a PNG output stream . * @ param os The PNG output stream * @ throws IOException Thrown if the given file cannot be accessed . */ public void writeScoreTo ( OutputStream os ) throws IOException { } }
if ( m_jTune != null ) { setTune ( m_jTune . getTune ( ) ) ; } BufferedImage bufferedImage = new BufferedImage ( ( int ) m_dimension . getWidth ( ) , ( int ) m_dimension . getHeight ( ) , BufferedImage . TYPE_INT_ARGB ) ; Graphics2D bufferedImageGfx = bufferedImage . createGraphics ( ) ; bufferedImageGfx . setColor ( getBackground ( ) ) ; // Color . WHITE ) ; bufferedImageGfx . fillRect ( 0 , 0 , bufferedImage . getWidth ( ) , bufferedImage . getHeight ( ) ) ; drawIn ( bufferedImageGfx ) ; ImageIO . write ( bufferedImage , "png" , os ) ;
public class UserFilteringPortalEventHandler { /** * If no < code > supportedUserNames < / code > { @ link Collection } is configured all user - names are * supported otherwise exact String equality matching is done to determine supported userNames . * The property defaults to null ( all user names ) * @ param supportedUserNames the supportedUserNames to set */ public void setSupportedUserNames ( Collection < String > supportedUserNames ) { } }
if ( supportedUserNames == null ) { this . supportedUserNames = null ; } else { this . supportedUserNames = ImmutableSet . copyOf ( supportedUserNames ) ; }
public class LogQueryBean { /** * sets the current value for the minimum and maximum time * @ param minTime minimum time * @ param maxTime maximum time * @ throws IllegalArgumentException if minTime is later than maxTime */ public void setTime ( Date minTime , Date maxTime ) throws IllegalArgumentException { } }
if ( minTime != null && maxTime != null && minTime . after ( maxTime ) ) { throw new IllegalArgumentException ( "Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter" ) ; } this . minTime = minTime ; this . maxTime = maxTime ;
public class XsdAsmElements { /** * Creates some class specific methods that all implementations of { @ link XsdAbstractElement } should have , which are : * Constructor ( ElementVisitor visitor ) - Assigns the argument to the visitor field ; * Constructor ( Element parent ) - Assigns the argument to the parent field and obtains the visitor of the parent ; * Constructor ( Element parent , ElementVisitor visitor , boolean performsVisit ) - * An alternative constructor to avoid the visit method call ; * of ( { @ link Consumer } consumer ) - Method used to avoid variable extraction in order to allow cleaner code ; * dynamic ( { @ link Consumer } consumer ) - Method used to indicate that the changes on the fluent interface performed * inside the Consumer code are a dynamic aspect of the result and are bound to change ; * self ( ) - Returns this ; * getName ( ) - Returns the name of the element ; * getParent ( ) - Returns the parent field ; * getVisitor ( ) - Returns the visitor field ; * _ _ ( ) - Returns the parent and calls the respective visitParent method . * @ param classWriter The { @ link ClassWriter } on which the methods should be written . * @ param className The class name . * @ param apiName The name of the generated fluent interface . */ private static void generateClassMethods ( ClassWriter classWriter , String className , String apiName ) { } }
generateClassMethods ( classWriter , className , className , apiName , true ) ;
public class InternalUtilities { /** * Wake up every 1 second to check whether to abort * @ param millis * @ throws InterruptedException */ public static void sleep ( long millis ) throws InterruptedException { } }
while ( millis > 0 ) { // abort if the user kills mlcp in local mode String shutdown = System . getProperty ( "mlcp.shutdown" ) ; if ( shutdown != null ) { break ; } if ( millis > 1000 ) { Thread . sleep ( 1000 ) ; millis -= 1000 ; } else { Thread . sleep ( millis ) ; millis = 0 ; } }
public class AbstractManagedType { /** * Returns declared singular attribute . * @ param paramString * the param string * @ param checkValidity * the check validity * @ return the declared singular attribute */ private SingularAttribute < X , ? > getDeclaredSingularAttribute ( String paramString , boolean checkValidity ) { } }
SingularAttribute < X , ? > attribute = null ; if ( declaredSingluarAttribs != null ) { attribute = declaredSingluarAttribs . get ( paramString ) ; } if ( checkValidity ) { checkForValid ( paramString , attribute ) ; } return attribute ;
public class UNode { /** * Parse the given JSON text and return the appropriate UNode object . The only JSON * documents we allow are in the form : * < pre > * { " something " : [ value ] } * < / pre > * This means that when we parse the JSON , we should see an object with a single * member . The UNode returned is a MAP object whose name is the member name and whose * elements are parsed from the [ value ] . * @ param text JSON text to parse * @ return UNode with type = = { @ link UNode . NodeType # MAP } . * @ throws IllegalArgumentException If the JSON text is malformed . */ public static UNode parseJSON ( String text ) throws IllegalArgumentException { } }
assert text != null && text . length ( ) > 0 ; SajListener listener = new SajListener ( ) ; new JSONAnnie ( text ) . parse ( listener ) ; return listener . getRootNode ( ) ;
public class TreebankChunker { /** * / * inherieted java doc */ protected boolean validOutcome ( String outcome , Sequence sequence ) { } }
String prevOutcome = null ; List tagList = sequence . getOutcomes ( ) ; int lti = tagList . size ( ) - 1 ; if ( lti >= 0 ) { prevOutcome = ( String ) tagList . get ( lti ) ; } return validOutcome ( outcome , prevOutcome ) ;
public class AbstractCommandExtension { /** * Analyze method parameters , search for extensions and prepare parameters context . * @ param descriptor repository method descriptor * @ param context repository method context */ protected void analyzeParameters ( final T descriptor , final DescriptorContext context ) { } }
final CommandParamsContext paramsContext = new CommandParamsContext ( context ) ; spiService . process ( descriptor , paramsContext ) ;
public class PegDownProcessor { /** * Converts the given markdown source to HTML . * If the input cannot be parsed within the configured parsing timeout the method returns null . * @ param markdownSource the markdown source to convert * @ param linkRenderer the LinkRenderer to use * @ return the HTML */ public String markdownToHtml ( String markdownSource , LinkRenderer linkRenderer ) { } }
return markdownToHtml ( markdownSource . toCharArray ( ) , linkRenderer ) ;
public class DependencyIdentifier { /** * TODO * @ param type * @ param typeList */ private static void addTypeToList ( Type type , List < Type > typeList ) { } }
if ( type instanceof ParameterizedType ) { ParameterizedType parameterizedType = ( ParameterizedType ) type ; addTypeToList ( parameterizedType . getRawType ( ) , typeList ) ; for ( Type actualTypeArgument : parameterizedType . getActualTypeArguments ( ) ) { addTypeToList ( actualTypeArgument , typeList ) ; } } else { typeList . add ( type ) ; }
public class SafeIterableMap { /** * Removes the mapping for a key from this map if it is present . * @ param key key whose mapping is to be removed from the map * @ return the previous value associated with the specified key , * or { @ code null } if there was no mapping for the key */ public V remove ( @ NonNull K key ) { } }
Entry < K , V > toRemove = get ( key ) ; if ( toRemove == null ) { return null ; } mSize -- ; if ( ! mIterators . isEmpty ( ) ) { for ( SupportRemove < K , V > iter : mIterators . keySet ( ) ) { iter . supportRemove ( toRemove ) ; } } if ( toRemove . mPrevious != null ) { toRemove . mPrevious . mNext = toRemove . mNext ; } else { mStart = toRemove . mNext ; } if ( toRemove . mNext != null ) { toRemove . mNext . mPrevious = toRemove . mPrevious ; } else { mEnd = toRemove . mPrevious ; } toRemove . mNext = null ; toRemove . mPrevious = null ; return toRemove . mValue ;
public class Story { /** * Continue the story until the next choice point or until it runs out of * content . This is as opposed to the Continue ( ) method which only evaluates one * line of output at a time . * @ return The resulting text evaluated by the ink engine , concatenated * together . */ public String continueMaximally ( ) throws StoryException , Exception { } }
ifAsyncWeCant ( "ContinueMaximally" ) ; StringBuilder sb = new StringBuilder ( ) ; while ( canContinue ( ) ) { sb . append ( Continue ( ) ) ; } return sb . toString ( ) ;
public class ChainingTextWriter { /** * Writes the iCalendar objects to a string . * @ return the iCalendar string */ public String go ( ) { } }
StringWriter sw = new StringWriter ( ) ; try { go ( sw ) ; } catch ( IOException e ) { // should never be thrown because we ' re writing to a string throw new RuntimeException ( e ) ; } return sw . toString ( ) ;
public class Frame { /** * Get the slot the object instance referred to by given instruction is * located in . * @ param ins * the Instruction * @ param cpg * the ConstantPoolGen for the method * @ return stack slot the object instance is in * @ throws DataflowAnalysisException */ public int getInstanceSlot ( Instruction ins , ConstantPoolGen cpg ) throws DataflowAnalysisException { } }
if ( ! isValid ( ) ) { throw new DataflowAnalysisException ( "Accessing invalid frame at " + ins ) ; } int numConsumed = ins . consumeStack ( cpg ) ; if ( numConsumed == Const . UNPREDICTABLE ) { throw new DataflowAnalysisException ( "Unpredictable stack consumption in " + ins ) ; } if ( numConsumed > getStackDepth ( ) ) { throw new DataflowAnalysisException ( "Stack underflow " + ins ) ; } return getNumSlots ( ) - numConsumed ;
public class FacebookRestClient { /** * Sends a message via SMS to the user identified by < code > userId < / code > in response * to a user query associated with < code > mobileSessionId < / code > . * @ param userId a user ID * @ param response the message to be sent via SMS * @ param mobileSessionId the mobile session * @ throws FacebookException in case of error * @ throws IOException * @ see FacebookExtendedPerm # SMS * @ see < a href = " http : / / wiki . developers . facebook . com / index . php / Mobile # Application _ generated _ messages " > * Developers Wiki : Mobile : Application Generated Messages < / a > * @ see < a href = " http : / / wiki . developers . facebook . com / index . php / Mobile # Workflow " > * Developers Wiki : Mobile : Workflow < / a > */ public void sms_sendResponse ( Integer userId , CharSequence response , Integer mobileSessionId ) throws FacebookException , IOException { } }
this . callMethod ( FacebookMethod . SMS_SEND_MESSAGE , new Pair < String , CharSequence > ( "uid" , userId . toString ( ) ) , new Pair < String , CharSequence > ( "message" , response ) , new Pair < String , CharSequence > ( "session_id" , mobileSessionId . toString ( ) ) ) ;
public class UpdateCreatives { /** * Runs the example . * @ param adManagerServices the services factory . * @ param session the session . * @ param creativeId the ID of the creative to update . * @ throws ApiException if the API request failed with one or more service errors . * @ throws RemoteException if the API request failed due to other errors . */ public static void runExample ( AdManagerServices adManagerServices , AdManagerSession session , long creativeId ) throws RemoteException { } }
// Get the CreativeService . CreativeServiceInterface creativeService = adManagerServices . get ( session , CreativeServiceInterface . class ) ; // Create a statement to only select a single creative by ID . StatementBuilder statementBuilder = new StatementBuilder ( ) . where ( "id = :id" ) . orderBy ( "id ASC" ) . limit ( 1 ) . withBindVariableValue ( "id" , creativeId ) ; // Get the creative . CreativePage page = creativeService . getCreativesByStatement ( statementBuilder . toStatement ( ) ) ; Creative creative = Iterables . getOnlyElement ( Arrays . asList ( page . getResults ( ) ) ) ; // Only update the destination URL if it has one . if ( creative instanceof HasDestinationUrlCreative ) { HasDestinationUrlCreative hasDestinationUrlCreative = ( HasDestinationUrlCreative ) creative ; // Update the destination URL of the creative . hasDestinationUrlCreative . setDestinationUrl ( "http://news.google.com" ) ; // Update the creative on the server . Creative [ ] creatives = creativeService . updateCreatives ( new Creative [ ] { creative } ) ; for ( Creative updatedCreative : creatives ) { System . out . printf ( "Creative with ID %d and name '%s' was updated.%n" , updatedCreative . getId ( ) , updatedCreative . getName ( ) ) ; } } else { System . out . println ( "No creatives were updated." ) ; }
public class CommercePriceEntryUtil { /** * Returns the first commerce price entry in the ordered set where companyId = & # 63 ; . * @ param companyId the company ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the first matching commerce price entry * @ throws NoSuchPriceEntryException if a matching commerce price entry could not be found */ public static CommercePriceEntry findByCompanyId_First ( long companyId , OrderByComparator < CommercePriceEntry > orderByComparator ) throws com . liferay . commerce . price . list . exception . NoSuchPriceEntryException { } }
return getPersistence ( ) . findByCompanyId_First ( companyId , orderByComparator ) ;
public class Computer { /** * @ deprecated Implementation of CLI command " connect - node " moved to { @ link hudson . cli . ConnectNodeCommand } . * @ param force * If true cancel any currently pending connect operation and retry from scratch */ @ Deprecated public void cliConnect ( boolean force ) throws ExecutionException , InterruptedException { } }
checkPermission ( CONNECT ) ; connect ( force ) . get ( ) ;
public class NetHttpResponse { /** * { @ inheritDoc } * < p > Returns { @ link HttpURLConnection # getInputStream } when it doesn ' t throw { @ link IOException } , * otherwise it returns { @ link HttpURLConnection # getErrorStream } . * < p > Upgrade warning : in prior version 1.16 { @ link # getContent ( ) } returned { @ link * HttpURLConnection # getInputStream } only when the status code was successful . Starting with * version 1.17 it returns { @ link HttpURLConnection # getInputStream } when it doesn ' t throw { @ link * IOException } , otherwise it returns { @ link HttpURLConnection # getErrorStream } * < p > Upgrade warning : in versions prior to 1.20 { @ link # getContent ( ) } returned { @ link * HttpURLConnection # getInputStream ( ) } or { @ link HttpURLConnection # getErrorStream ( ) } , both of * which silently returned - 1 for read ( ) calls when the connection got closed in the middle of * receiving a response . This is highly likely a bug from JDK ' s { @ link HttpURLConnection } . Since * version 1.20 , the bytes read off the wire will be checked and an { @ link IOException } will be * thrown if the response is not fully delivered when the connection is closed by server for * whatever reason , e . g . , server restarts . Note though that this is a best - effort check : when the * response is chunk encoded , we have to rely on the underlying HTTP library to behave correctly . */ @ Override public InputStream getContent ( ) throws IOException { } }
InputStream in = null ; try { in = connection . getInputStream ( ) ; } catch ( IOException ioe ) { in = connection . getErrorStream ( ) ; } return in == null ? null : new SizeValidatingInputStream ( in ) ;
public class RestrictionsContainer { /** * Methode d ' ajout de la restriction Eq * @ param propertyNom de la Propriete * @ param valueValeur de la propriete * @ param < Y > Type de valeur * @ returnConteneur */ public < Y extends Comparable < ? super Y > > RestrictionsContainer addEq ( String property , Y value ) { } }
// Ajout de la restriction restrictions . add ( new Eq < Y > ( property , value ) ) ; // On retourne le conteneur return this ;
public class ThreadedServer { /** * Open the server socket . This method can be called to open the server socket in advance of * starting the listener . This can be used to test if the port is available . * @ exception IOException if an error occurs */ public void open ( ) throws IOException { } }
if ( _listen == null ) { _listen = newServerSocket ( _address , _acceptQueueSize ) ; if ( _address == null ) _address = new InetAddrPort ( _listen . getInetAddress ( ) , _listen . getLocalPort ( ) ) ; else { if ( _address . getInetAddress ( ) == null ) _address . setInetAddress ( _listen . getInetAddress ( ) ) ; if ( _address . getPort ( ) == 0 ) _address . setPort ( _listen . getLocalPort ( ) ) ; } _soTimeOut = getMaxIdleTimeMs ( ) ; if ( _soTimeOut >= 0 ) _listen . setSoTimeout ( _soTimeOut ) ; }
public class OpportunitiesApi { /** * Get opportunities group Return information of an opportunities group - - - * This route expires daily at 11:05 * @ param groupId * ID of an opportunities group ( required ) * @ param acceptLanguage * Language to use in the response ( optional , default to en - us ) * @ param datasource * The server name you would like data from ( optional , default to * tranquility ) * @ param ifNoneMatch * ETag from a previous request . A 304 will be returned if this * matches the current ETag ( optional ) * @ param language * Language to use in the response , takes precedence over * Accept - Language ( optional , default to en - us ) * @ return ApiResponse & lt ; OpportunitiesGroupResponse & gt ; * @ throws ApiException * If fail to call the API , e . g . server error or cannot * deserialize the response body */ public ApiResponse < OpportunitiesGroupResponse > getOpportunitiesGroupsGroupIdWithHttpInfo ( Integer groupId , String acceptLanguage , String datasource , String ifNoneMatch , String language ) throws ApiException { } }
com . squareup . okhttp . Call call = getOpportunitiesGroupsGroupIdValidateBeforeCall ( groupId , acceptLanguage , datasource , ifNoneMatch , language , null ) ; Type localVarReturnType = new TypeToken < OpportunitiesGroupResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class SDPLogarithmicBarrier { /** * Create the barrier function for the Phase I . * It is an instance of this class for the constraint : * < br > G + Sum [ x _ i * F _ i ( x ) , i ] < t * I * @ see " S . Boyd and L . Vandenberghe , Convex Optimization , 11.6.2" */ @ Override public BarrierFunction createPhase1BarrierFunction ( ) { } }
List < double [ ] [ ] > FiPh1MatrixList = new ArrayList < double [ ] [ ] > ( ) ; for ( int i = 0 ; i < this . Fi . length ; i ++ ) { FiPh1MatrixList . add ( FiPh1MatrixList . size ( ) , this . Fi [ i ] . getData ( ) ) ; } FiPh1MatrixList . add ( FiPh1MatrixList . size ( ) , MatrixUtils . createRealIdentityMatrix ( p ) . scalarMultiply ( - 1 ) . getData ( ) ) ; return new SDPLogarithmicBarrier ( FiPh1MatrixList , this . G . getData ( ) ) ;
public class JsHdrsImpl { /** * Set the contents of the ReverseRoutingPath field in the message header . * The field in the message must be set to a copy so that any updates to the * original list are not reflected in the message . * Javadoc description supplied by SIBusMessage interface . */ final void setRRP ( List < SIDestinationAddress > value ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setRRP" , value ) ; if ( value == null ) { getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_DESTINATIONNAME , null ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_MEID , null ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATHLOCALONLY , null ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_BUSNAME , null ) ; } else { // The List provided should either be one of our RoutingPathList objects or // a standard Java List containing ( non - null ) SIDestinationAddress elements . // If it ' s the latter we just create a RoutingPathList to wrap it . RoutingPathList rp ; if ( value instanceof RoutingPathList ) rp = ( RoutingPathList ) value ; else rp = new RoutingPathList ( value ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_DESTINATIONNAME , rp . getNames ( ) ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_MEID , rp . getMEs ( ) ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATHLOCALONLY , rp . getLocalOnlys ( ) ) ; getHdr2 ( ) . setField ( JsHdr2Access . REVERSEROUTINGPATH_BUSNAME , rp . getBusNames ( ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setRRP" ) ;
public class EntityJsonParser { /** * Parse an EntityJSON instance from the given URL . * Callers may prefer to catch EntityJSONException and treat all failures in the same way . * @ param instanceUrl A URL pointing to the JSON representation of an EntityJSON instance . * @ return An EntityJSON instance . * @ throws SchemaValidationException If the given instance does not meet the general EntityJSON schema . * @ throws InvalidInstanceException If the given instance is structurally invalid . */ public EntityJson parseEntityJson ( URL instanceUrl ) throws SchemaValidationException , InvalidInstanceException { } }
try { return new EntityJson ( validate ( ENTITY_JSON_SCHEMA_URL , instanceUrl ) ) ; } catch ( NoSchemaException | InvalidSchemaException e ) { // In theory this cannot happen throw new RuntimeException ( e ) ; }
public class JdbcMetadataUtils { /** * Derives the OJB platform to use for a database that is connected via a url using the specified * subprotocol , and where the specified jdbc driver is used . * @ param jdbcSubProtocol The JDBC subprotocol used to connect to the database * @ param jdbcDriver The JDBC driver used to connect to the database * @ return The platform identifier or < code > null < / code > if no platform could be found */ public String findPlatformFor ( String jdbcSubProtocol , String jdbcDriver ) { } }
String platform = ( String ) jdbcSubProtocolToPlatform . get ( jdbcSubProtocol ) ; if ( platform == null ) { platform = ( String ) jdbcDriverToPlatform . get ( jdbcDriver ) ; } return platform ;
public class SameJSONAs { /** * Creates a matcher that compares { @ code JSONObject } s or { @ code JSONArray } s represented as { @ code String } s . * @ param expected the expected JSON document * @ return the { @ code Matcher } instance */ @ Factory public static SameJSONAs < ? super String > sameJSONAs ( String expected ) { } }
return new SameJSONAs < String > ( expected , modalComparatorFor ( stringComparison ( ) ) ) ;
public class TVRageApi { /** * Get the information for a specific episode * @ param showID * @ param seasonId * @ param episodeId * @ return * @ throws com . omertron . tvrageapi . TVRageException */ public Episode getEpisodeInfo ( String showID , String seasonId , String episodeId ) throws TVRageException { } }
if ( ! isValidString ( showID ) || ! isValidString ( seasonId ) || ! isValidString ( episodeId ) ) { return new Episode ( ) ; } StringBuilder tvrageURL = buildURL ( API_EPISODE_INFO , showID ) ; // Append the Season & Episode to the URL tvrageURL . append ( "&ep=" ) . append ( seasonId ) ; tvrageURL . append ( "x" ) . append ( episodeId ) ; return TVRageParser . getEpisodeInfo ( tvrageURL . toString ( ) ) ;
public class BondEnergies { /** * Returns bond energy for a bond type , given atoms and bond type * @ param sourceAtom First bondEnergy * @ param targetAtom Second bondEnergy * @ param bondOrder ( single , double etc ) * @ return bond energy */ public int getEnergies ( IAtom sourceAtom , IAtom targetAtom , Order bondOrder ) { } }
int dKJPerMol = - 1 ; for ( Map . Entry < Integer , BondEnergy > entry : bondEngergies . entrySet ( ) ) { BondEnergy bondEnergy = entry . getValue ( ) ; String atom1 = bondEnergy . getSymbolFirstAtom ( ) ; String atom2 = bondEnergy . getSymbolSecondAtom ( ) ; if ( ( atom1 . equalsIgnoreCase ( sourceAtom . getSymbol ( ) ) && atom2 . equalsIgnoreCase ( targetAtom . getSymbol ( ) ) ) || ( atom2 . equalsIgnoreCase ( sourceAtom . getSymbol ( ) ) && atom1 . equalsIgnoreCase ( targetAtom . getSymbol ( ) ) ) ) { Order order = bondEnergy . getBondOrder ( ) ; if ( order . compareTo ( bondOrder ) == 0 ) { dKJPerMol = bondEnergy . getEnergy ( ) ; } } } return dKJPerMol ;
public class ReflectUtil { /** * Finds any method matching the method name and parameter types . */ public static Method findDeclaredMethod ( Class < ? > cl , Method testMethod ) { } }
if ( cl == null ) return null ; for ( Method method : cl . getDeclaredMethods ( ) ) { if ( isMatch ( method , testMethod ) ) return method ; } return null ;
public class ApiOvhTelephony { /** * Generate a phone call for validation . Returned validation code should be typed when asked . * REST : POST / telephony / { billingAccount } / trunk / { serviceName } / externalDisplayedNumber / { number } / validate * @ param billingAccount [ required ] The name of your billingAccount * @ param serviceName [ required ] Name of the service * @ param number [ required ] External displayed number linked to a trunk */ public OvhTrunkExternalDisplayedNumberValidation billingAccount_trunk_serviceName_externalDisplayedNumber_number_validate_POST ( String billingAccount , String serviceName , String number ) throws IOException { } }
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}/validate" ; StringBuilder sb = path ( qPath , billingAccount , serviceName , number ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTrunkExternalDisplayedNumberValidation . class ) ;
public class ByteUtils { /** * Return the < code > double < / code > represented by the bytes in * < code > data < / code > staring at offset < code > offset [ 0 ] < / code > . * @ param data the array from which to read * @ param offset A single element array whose first element is the index in * data from which to begin reading on function entry , and which * on function exit has been incremented by the number of bytes * read . * @ return the value of the < code > double < / code > decoded */ public static final double bytesToDouble ( byte [ ] data , int [ ] offset ) { } }
long bits = bytesToLong ( data , offset ) ; return Double . longBitsToDouble ( bits ) ;
public class RecordingListener { /** * Get the file we ' d be recording to based on scope and given name . * @ param scope * scope * @ param name * name * @ return file */ public static File getRecordFile ( IScope scope , String name ) { } }
// get stream filename generator IStreamFilenameGenerator generator = ( IStreamFilenameGenerator ) ScopeUtils . getScopeService ( scope , IStreamFilenameGenerator . class , DefaultStreamFilenameGenerator . class ) ; // generate filename String fileName = generator . generateFilename ( scope , name , ".flv" , GenerationType . RECORD ) ; File file = null ; if ( generator . resolvesToAbsolutePath ( ) ) { file = new File ( fileName ) ; } else { Resource resource = scope . getContext ( ) . getResource ( fileName ) ; if ( resource . exists ( ) ) { try { file = resource . getFile ( ) ; log . debug ( "File exists: {} writable: {}" , file . exists ( ) , file . canWrite ( ) ) ; } catch ( IOException ioe ) { log . error ( "File error: {}" , ioe ) ; } } else { String appScopeName = ScopeUtils . findApplication ( scope ) . getName ( ) ; file = new File ( String . format ( "%s/webapps/%s/%s" , System . getProperty ( "red5.root" ) , appScopeName , fileName ) ) ; } } return file ;
public class ProbeManagerImpl { /** * Remove all probes that were fired at the specified listener . * @ param listener the listener that probes were fired to * @ return the probes that were assocaited with the listener */ synchronized Collection < ProbeImpl > removeProbesByListener ( ProbeListener listener ) { } }
Set < ProbeImpl > listenerProbes = probesByListener . remove ( listener ) ; if ( listenerProbes == null ) { listenerProbes = Collections . emptySet ( ) ; } return listenerProbes ;
public class TransactionControlImpl { /** * Resume the global transaction associated with the given Control instance . * The inactivity timeout is either started or stopped , according * to action . If InvalidTransactionException is raised by the global tx service * it is passed on to the caller of this method . */ final void resumeGlobalTx ( Transaction ctrl , int action ) // LIDB1673.2.1.5 throws SystemException , InvalidTransactionException // LIDB1673.2.1.5 { } }
try { // LIDB1673.2.1.5 txService . resume ( ctrl ) ; // LIDB1673.2.1.5 } // LIDB1673.2.1.5 catch ( SystemException e ) // LIDB1673.2.1.5 { // LIDB1673.2.1.5 FFDCFilter . processException ( e , CLASS_NAME + ".resumeGlobalTx" , "814" , this ) ; // LIDB1673.2.1.5 if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) // LIDB1673.2.1.5 Tr . event ( tc , "Error resuming global tx" , e ) ; // LIDB1673.2.1.5 throw e ; // LIDB1673.2.1.5 } // LIDB1673.2.1.5 if ( TraceComponent . isAnyTracingEnabled ( ) ) // d527372 { if ( tc . isEventEnabled ( ) ) Tr . event ( tc , "Resumed TX cntxt: " + txService . getTransaction ( ) ) ; // LIDB1673.2.1.5 // d165585 Begins if ( TETxLifeCycleInfo . isTraceEnabled ( ) ) // PQ74774 { // PQ74774 String idStr = null ; // d171555 if ( ctrl != null ) // d171555 idStr = ctrl . toString ( ) ; // d171555 int idx ; idStr = ( idStr != null ) ? ( ( ( idx = idStr . indexOf ( "(" ) ) != - 1 ) ? idStr . substring ( idx + 1 , idStr . indexOf ( ")" ) ) : ( ( idx = idStr . indexOf ( "tid=" ) ) != - 1 ) ? idStr . substring ( idx + 4 ) : idStr ) : "NoTx" ; TETxLifeCycleInfo . traceGlobalTxResume ( idStr , "Resume Global Tx" ) ; } // PQ74774 // d165585 Ends } // NonInteropControls have no coordinator if ( ctrl != null && ( ( UOWCoordinator ) ctrl ) . getTxType ( ) == UOWCoordinator . TXTYPE_NONINTEROP_GLOBAL ) return ; // LIDB1673.2.1.5
public class CobolDataItem { /** * Pretty printing for a renames entry . * @ param sb the string builder */ private void toStringRenames ( final StringBuilder sb ) { } }
if ( getRenamesSubject ( ) != null ) { sb . append ( ',' ) ; sb . append ( "renamesSubject:" + getRenamesSubject ( ) ) ; } if ( getRenamesSubjectRange ( ) != null ) { sb . append ( ',' ) ; sb . append ( "renamesSubjectRange:" + getRenamesSubjectRange ( ) ) ; }
public class Yoke { /** * Adds a Render Engine to the library . Render Engines are Template engines you * might want to use to speed the development of your application . Once they are * registered you can use the method render in the YokeResponse to * render a template . * @ param engine The implementation of the engine */ public Yoke engine ( @ NotNull Engine engine ) { } }
engine . setVertx ( vertx ) ; engineMap . put ( engine . extension ( ) , engine ) ; return this ;
public class NavigationMapboxMap { /** * Enables or disables the way name chip underneath the location icon . * @ param isEnabled true to enable , false to disable */ public void updateWaynameQueryMap ( boolean isEnabled ) { } }
if ( mapWayName != null ) { mapWayName . updateWayNameQueryMap ( isEnabled ) ; } else { settings . updateWayNameEnabled ( isEnabled ) ; }
public class Reporter { /** * Takes the headers set in the HTTP request , and writes them to the output * file , in properly HTML formatted fashion * @ param http - the http object that is making the call * @ return String : an HTML formatted string with headers */ public static String getRequestHeadersOutput ( HTTP http ) { } }
if ( http == null ) { return "" ; } StringBuilder requestHeaders = new StringBuilder ( ) ; String uuid = getUUID ( ) ; requestHeaders . append ( ONCLICK_TOGGLE ) . append ( uuid ) . append ( "\")'>Toggle Headers</a> " ) ; requestHeaders . append ( SPAN_ID ) . append ( uuid ) . append ( DISPLAY_NONE ) ; requestHeaders . append ( formatKeyPair ( http . getHeaders ( ) ) ) ; requestHeaders . append ( END_SPAN ) ; return requestHeaders . toString ( ) ;
public class SwipeBackLayout { /** * Find out the scrollable child view from a ViewGroup . * @ param viewGroup */ private void findScrollView ( ViewGroup viewGroup ) { } }
scrollChild = viewGroup ; if ( viewGroup . getChildCount ( ) > 0 ) { int count = viewGroup . getChildCount ( ) ; View child ; for ( int i = 0 ; i < count ; i ++ ) { child = viewGroup . getChildAt ( i ) ; if ( child instanceof AbsListView || child instanceof ScrollView || child instanceof ViewPager || child instanceof WebView ) { scrollChild = child ; return ; } } }
public class RMI { @ SuppressWarnings ( "unchecked" ) public static < T > T lookup ( URI rmiUrl ) { } }
try { return ( T ) Naming . lookup ( rmiUrl . toString ( ) ) ; } catch ( Exception e ) { throw new ConnectionException ( rmiUrl + " ERROR:" + Debugger . stackTrace ( e ) ) ; }
public class Jdk9PlusJBossModulesAwareCompiler { /** * unix file separator */ @ Override public boolean compileFiles ( String [ ] files ) { } }
JavaCompiler compiler = ToolProvider . getSystemJavaCompiler ( ) ; if ( compiler == null ) { throw new IllegalStateException ( "No compiler detected, make sure you are running on top of a JDK instead of a JRE." ) ; } StandardJavaFileManager fileManager = compiler . getStandardFileManager ( null , null , null ) ; Iterable < ? extends JavaFileObject > fileList = fileManager . getJavaFileObjectsFromStrings ( Arrays . asList ( files ) ) ; return internalCompile ( compiler , wrapJavaFileManager ( fileManager ) , setupDiagnosticListener ( ) , fileList ) ;
public class InMemoryFileSystem { /** * Register a file with its size . This will also register a checksum for the * file that the user is trying to create . This is required since none of * the FileSystem APIs accept the size of the file as argument . But since it * is required for us to apriori know the size of the file we are going to * create , the user must call this method for each file he wants to create * and reserve memory for that file . We either succeed in reserving memory * for both the main file and the checksum file and return true , or return * false . */ public boolean reserveSpaceWithCheckSum ( Path f , long size ) { } }
RawInMemoryFileSystem mfs = ( RawInMemoryFileSystem ) getRawFileSystem ( ) ; synchronized ( mfs ) { boolean b = mfs . reserveSpace ( f , size ) ; if ( b ) { long checksumSize = getChecksumFileLength ( f , size ) ; b = mfs . reserveSpace ( getChecksumFile ( f ) , checksumSize ) ; if ( ! b ) { mfs . unreserveSpace ( f ) ; } } return b ; }
public class UserDataHelpers { /** * Processes user data that were already read . * This method handles the { @ link # ENCODE _ FILE _ CONTENT _ PREFIX } prefix . * File contents are written on the disk and references are updated if necessary . * @ param properties the user data as properties * @ param outputDirectory a directory into which files should be written * If null , files sent with { @ link # ENCODE _ FILE _ CONTENT _ PREFIX } will not be written . * @ return a non - null object * @ throws IOException if something went wrong */ public static Properties processUserData ( Properties properties , File outputDirectory ) throws IOException { } }
interceptWritingFiles ( properties , outputDirectory ) ; return properties ;
public class AbstractExtraLanguageGenerator { /** * Create the generator context for this generator . * @ param fsa the file system access . * @ param context the global context . * @ param resource the resource . * @ return the context . */ protected IExtraLanguageGeneratorContext createGeneratorContext ( IFileSystemAccess2 fsa , IGeneratorContext context , Resource resource ) { } }
if ( context instanceof IExtraLanguageGeneratorContext ) { return ( IExtraLanguageGeneratorContext ) context ; } return new ExtraLanguageGeneratorContext ( context , fsa , this , resource , getPreferenceID ( ) ) ;
public class AuthIdentificationResult { /** * Factory method for error in authentication . * @ param aCredentialValidationFailure * The validation failure . May not be < code > null < / code > in case of * failure ! * @ return Never < code > null < / code > . */ @ Nonnull public static AuthIdentificationResult createFailure ( @ Nonnull final ICredentialValidationResult aCredentialValidationFailure ) { } }
ValueEnforcer . notNull ( aCredentialValidationFailure , "CredentialValidationFailure" ) ; return new AuthIdentificationResult ( null , aCredentialValidationFailure ) ;
public class WildcardStringParser { /** * Parses a string according to the rules stated above . * @ param pStringToParse the string to parse . * @ return { @ code true } if and only if the string are accepted by the automaton . */ public boolean parseString ( final String pStringToParse ) { } }
if ( debugging ) { out . println ( "parsing \"" + pStringToParse + "\"..." ) ; } // Update statistics totalNumberOfStringsParsed ++ ; // Check string to be parsed for nullness if ( pStringToParse == null ) { if ( debugging ) { out . println ( "string to be parsed is null - rejection!" ) ; } return false ; } // Create parsable string ParsableString parsableString = new ParsableString ( pStringToParse ) ; // Check string to be parsed if ( ! parsableString . checkString ( ) ) { if ( debugging ) { out . println ( "one or more characters in string to be parsed are not legal characters - rejection!" ) ; } return false ; } // Check if automaton is correctly initialized if ( ! initialized ) { System . err . println ( "automaton is not initialized - rejection!" ) ; return false ; } // Check if automaton is trivial ( accepts all strings ) if ( isTrivialAutomaton ( ) ) { if ( debugging ) { out . println ( "automaton represents a trivial string mask (accepts all strings) - acceptance!" ) ; } return true ; } // Check if string to be parsed is empty if ( parsableString . isEmpty ( ) ) { if ( debugging ) { out . println ( "string to be parsed is empty and not trivial automaton - rejection!" ) ; } return false ; } // Flag and more to indicate that state skipping due to sequence of ' ? ' succeeding a ' * ' has been performed boolean hasPerformedFreeRangeMovement = false ; int numberOfFreePassCharactersRead_SinceLastFreePassState = 0 ; int numberOfParsedCharactersRead_SinceLastFreePassState = 0 ; WildcardStringParserState runnerState = null ; // Accepted by the first state ? if ( ( parsableString . charArray [ 0 ] == initialState . character ) || isWildcardCharacter ( initialState . character ) ) { runnerState = initialState ; parsableString . index = 0 ; } else { if ( debugging ) { out . println ( "cannot enter first automaton state - rejection!" ) ; } return false ; } // Initialize the free - pass character state visited count if ( isFreePassCharacter ( runnerState . character ) ) { numberOfFreePassCharactersRead_SinceLastFreePassState ++ ; } // Perform parsing according to the rules above for ( int i = 0 ; i < parsableString . length ( ) ; i ++ ) { if ( debugging ) { out . println ( ) ; } if ( debugging ) { out . println ( "parsing - index number " + i + ", active char: '" + parsableString . getActiveChar ( ) + "' char string index: " + parsableString . index + " number of chars since last free-range state: " + numberOfParsedCharactersRead_SinceLastFreePassState ) ; } if ( debugging ) { out . println ( "parsing - state: " + runnerState . automatonStateNumber + " '" + runnerState . character + "' - no of free-pass chars read: " + numberOfFreePassCharactersRead_SinceLastFreePassState ) ; } if ( debugging ) { out . println ( "parsing - hasPerformedFreeRangeMovement: " + hasPerformedFreeRangeMovement ) ; } if ( runnerState . nextState == null ) { if ( debugging ) { out . println ( "parsing - runnerState.nextState == null" ) ; } // If there are no subsequent state ( final state ) and the state represents ' * ' - acceptance ! if ( isFreeRangeCharacter ( runnerState . character ) ) { // Special free - range skipping check if ( hasPerformedFreeRangeMovement ) { if ( parsableString . reachedEndOfString ( ) ) { if ( numberOfFreePassCharactersRead_SinceLastFreePassState > numberOfParsedCharactersRead_SinceLastFreePassState ) { if ( debugging ) { out . println ( "no subsequent state (final state) and the state represents '*' - end of parsing string, but not enough characters read - rejection!" ) ; } return false ; } else { if ( debugging ) { out . println ( "no subsequent state (final state) and the state represents '*' - end of parsing string and enough characters read - acceptance!" ) ; } return true ; } } else { if ( numberOfFreePassCharactersRead_SinceLastFreePassState > numberOfParsedCharactersRead_SinceLastFreePassState ) { if ( debugging ) { out . println ( "no subsequent state (final state) and the state represents '*' - not the end of parsing string and not enough characters read - read next character" ) ; } parsableString . index ++ ; numberOfParsedCharactersRead_SinceLastFreePassState ++ ; } else { if ( debugging ) { out . println ( "no subsequent state (final state) and the state represents '*' - not the end of parsing string, but enough characters read - acceptance!" ) ; } return true ; } } } else { if ( debugging ) { out . println ( "no subsequent state (final state) and the state represents '*' - no skipping performed - acceptance!" ) ; } return true ; } } // If there are no subsequent state ( final state ) and no skipping has been performed and the end of the string to test is reached - acceptance ! else if ( parsableString . reachedEndOfString ( ) ) { // Special free - range skipping check if ( ( hasPerformedFreeRangeMovement ) && ( numberOfFreePassCharactersRead_SinceLastFreePassState > numberOfParsedCharactersRead_SinceLastFreePassState ) ) { if ( debugging ) { out . println ( "no subsequent state (final state) and skipping has been performed and end of parsing string, but not enough characters read - rejection!" ) ; } return false ; } if ( debugging ) { out . println ( "no subsequent state (final state) and the end of the string to test is reached - acceptance!" ) ; } return true ; } else { if ( debugging ) { out . println ( "parsing - escaping process..." ) ; } } } else { if ( debugging ) { out . println ( "parsing - runnerState.nextState != null" ) ; } // Special Case : // If this state represents ' * ' - go to the rightmost state representing ' ? ' . // This state will act as an ' * ' - except that you only can go to the next state or accept the string , if and only if the number of ' ? ' read are equal or less than the number of character read from the parsing string . if ( isFreeRangeCharacter ( runnerState . character ) ) { numberOfFreePassCharactersRead_SinceLastFreePassState = 0 ; numberOfParsedCharactersRead_SinceLastFreePassState = 0 ; WildcardStringParserState freeRangeRunnerState = runnerState . nextState ; while ( ( freeRangeRunnerState != null ) && ( isFreePassCharacter ( freeRangeRunnerState . character ) ) ) { runnerState = freeRangeRunnerState ; hasPerformedFreeRangeMovement = true ; numberOfFreePassCharactersRead_SinceLastFreePassState ++ ; freeRangeRunnerState = freeRangeRunnerState . nextState ; } // Special Case : if the mask is at the end if ( runnerState . nextState == null ) { if ( debugging ) { out . println ( ) ; } if ( debugging ) { out . println ( "parsing - index number " + i + ", active char: '" + parsableString . getActiveChar ( ) + "' char string index: " + parsableString . index + " number of chars since last free-range state: " + numberOfParsedCharactersRead_SinceLastFreePassState ) ; } if ( debugging ) { out . println ( "parsing - state: " + runnerState . automatonStateNumber + " '" + runnerState . character + "' - no of free-pass chars read: " + numberOfFreePassCharactersRead_SinceLastFreePassState ) ; } if ( debugging ) { out . println ( "parsing - hasPerformedFreeRangeMovement: " + hasPerformedFreeRangeMovement ) ; } if ( ( hasPerformedFreeRangeMovement ) && ( numberOfFreePassCharactersRead_SinceLastFreePassState >= numberOfParsedCharactersRead_SinceLastFreePassState ) ) { return true ; } else { return false ; } } } // If the next state represents ' * ' - go to this next state if ( isFreeRangeCharacter ( runnerState . nextState . character ) ) { runnerState = runnerState . nextState ; parsableString . index ++ ; numberOfParsedCharactersRead_SinceLastFreePassState ++ ; } // If the next state represents ' ? ' - go to this next state else if ( isFreePassCharacter ( runnerState . nextState . character ) ) { runnerState = runnerState . nextState ; parsableString . index ++ ; numberOfFreePassCharactersRead_SinceLastFreePassState ++ ; numberOfParsedCharactersRead_SinceLastFreePassState ++ ; } // If the next state represents the same character as the next character in the string to test - go to this next state else if ( ( ! parsableString . reachedEndOfString ( ) ) && ( runnerState . nextState . character == parsableString . getSubsequentChar ( ) ) ) { runnerState = runnerState . nextState ; parsableString . index ++ ; numberOfParsedCharactersRead_SinceLastFreePassState ++ ; } // If the next character in the string to test does not coincide with the next state - go to the last state representing ' * ' . If there are none - rejection ! else if ( runnerState . lastFreeRangeState != null ) { runnerState = runnerState . lastFreeRangeState ; parsableString . index ++ ; numberOfParsedCharactersRead_SinceLastFreePassState ++ ; } else { if ( debugging ) { out . println ( "the next state does not represent the same character as the next character in the string to test, and there are no last-free-range-state - rejection!" ) ; } return false ; } } } if ( debugging ) { out . println ( "finished reading parsing string and not at any final state - rejection!" ) ; } return false ;
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 5040:1 : ruleXConstructorCall returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' new ' ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? ) ; */ public final EObject ruleXConstructorCall ( ) throws RecognitionException { } }
EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token otherlv_5 = null ; Token otherlv_7 = null ; Token lv_explicitConstructorCall_8_0 = null ; Token otherlv_11 = null ; Token otherlv_13 = null ; EObject lv_typeArguments_4_0 = null ; EObject lv_typeArguments_6_0 = null ; EObject lv_arguments_9_0 = null ; EObject lv_arguments_10_0 = null ; EObject lv_arguments_12_0 = null ; EObject lv_arguments_14_0 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 5046:2 : ( ( ( ) otherlv _ 1 = ' new ' ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? ) ) // InternalPureXbase . g : 5047:2 : ( ( ) otherlv _ 1 = ' new ' ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? ) { // InternalPureXbase . g : 5047:2 : ( ( ) otherlv _ 1 = ' new ' ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? ) // InternalPureXbase . g : 5048:3 : ( ) otherlv _ 1 = ' new ' ( ( ruleQualifiedName ) ) ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? { // InternalPureXbase . g : 5048:3 : ( ) // InternalPureXbase . g : 5049:4: { if ( state . backtracking == 0 ) { current = forceCreateModelElement ( grammarAccess . getXConstructorCallAccess ( ) . getXConstructorCallAction_0 ( ) , current ) ; } } otherlv_1 = ( Token ) match ( input , 73 , FOLLOW_12 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_1 , grammarAccess . getXConstructorCallAccess ( ) . getNewKeyword_1 ( ) ) ; } // InternalPureXbase . g : 5059:3 : ( ( ruleQualifiedName ) ) // InternalPureXbase . g : 5060:4 : ( ruleQualifiedName ) { // InternalPureXbase . g : 5060:4 : ( ruleQualifiedName ) // InternalPureXbase . g : 5061:5 : ruleQualifiedName { if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElement ( grammarAccess . getXConstructorCallRule ( ) ) ; } } if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getConstructorJvmConstructorCrossReference_2_0 ( ) ) ; } pushFollow ( FOLLOW_66 ) ; ruleQualifiedName ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { afterParserOrEnumRuleCall ( ) ; } } } // InternalPureXbase . g : 5075:3 : ( ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' ) ? int alt92 = 2 ; alt92 = dfa92 . predict ( input ) ; switch ( alt92 ) { case 1 : // InternalPureXbase . g : 5076:4 : ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * otherlv _ 7 = ' > ' { // InternalPureXbase . g : 5076:4 : ( ( ' < ' ) = > otherlv _ 3 = ' < ' ) // InternalPureXbase . g : 5077:5 : ( ' < ' ) = > otherlv _ 3 = ' < ' { otherlv_3 = ( Token ) match ( input , 28 , FOLLOW_34 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_3 , grammarAccess . getXConstructorCallAccess ( ) . getLessThanSignKeyword_3_0 ( ) ) ; } } // InternalPureXbase . g : 5083:4 : ( ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) ) // InternalPureXbase . g : 5084:5 : ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) { // InternalPureXbase . g : 5084:5 : ( lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference ) // InternalPureXbase . g : 5085:6 : lv _ typeArguments _ 4_0 = ruleJvmArgumentTypeReference { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0 ( ) ) ; } pushFollow ( FOLLOW_35 ) ; lv_typeArguments_4_0 = ruleJvmArgumentTypeReference ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "typeArguments" , lv_typeArguments_4_0 , "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference" ) ; afterParserOrEnumRuleCall ( ) ; } } } // InternalPureXbase . g : 5102:4 : ( otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) ) * loop91 : do { int alt91 = 2 ; int LA91_0 = input . LA ( 1 ) ; if ( ( LA91_0 == 57 ) ) { alt91 = 1 ; } switch ( alt91 ) { case 1 : // InternalPureXbase . g : 5103:5 : otherlv _ 5 = ' , ' ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) { otherlv_5 = ( Token ) match ( input , 57 , FOLLOW_34 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_5 , grammarAccess . getXConstructorCallAccess ( ) . getCommaKeyword_3_2_0 ( ) ) ; } // InternalPureXbase . g : 5107:5 : ( ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) ) // InternalPureXbase . g : 5108:6 : ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) { // InternalPureXbase . g : 5108:6 : ( lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference ) // InternalPureXbase . g : 5109:7 : lv _ typeArguments _ 6_0 = ruleJvmArgumentTypeReference { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0 ( ) ) ; } pushFollow ( FOLLOW_35 ) ; lv_typeArguments_6_0 = ruleJvmArgumentTypeReference ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "typeArguments" , lv_typeArguments_6_0 , "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference" ) ; afterParserOrEnumRuleCall ( ) ; } } } } break ; default : break loop91 ; } } while ( true ) ; otherlv_7 = ( Token ) match ( input , 29 , FOLLOW_64 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_7 , grammarAccess . getXConstructorCallAccess ( ) . getGreaterThanSignKeyword_3_3 ( ) ) ; } } break ; } // InternalPureXbase . g : 5132:3 : ( ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' ) ? int alt95 = 2 ; alt95 = dfa95 . predict ( input ) ; switch ( alt95 ) { case 1 : // InternalPureXbase . g : 5133:4 : ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? otherlv _ 13 = ' ) ' { // InternalPureXbase . g : 5133:4 : ( ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) ) // InternalPureXbase . g : 5134:5 : ( ( ' ( ' ) ) = > ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) { // InternalPureXbase . g : 5138:5 : ( lv _ explicitConstructorCall _ 8_0 = ' ( ' ) // InternalPureXbase . g : 5139:6 : lv _ explicitConstructorCall _ 8_0 = ' ( ' { lv_explicitConstructorCall_8_0 = ( Token ) match ( input , 15 , FOLLOW_37 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( lv_explicitConstructorCall_8_0 , grammarAccess . getXConstructorCallAccess ( ) . getExplicitConstructorCallLeftParenthesisKeyword_4_0_0 ( ) ) ; } if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElement ( grammarAccess . getXConstructorCallRule ( ) ) ; } setWithLastConsumed ( current , "explicitConstructorCall" , true , "(" ) ; } } } // InternalPureXbase . g : 5151:4 : ( ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) | ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) ) ? int alt94 = 3 ; alt94 = dfa94 . predict ( input ) ; switch ( alt94 ) { case 1 : // InternalPureXbase . g : 5152:5 : ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) { // InternalPureXbase . g : 5152:5 : ( ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) ) // InternalPureXbase . g : 5153:6 : ( ( ( ) ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( lv _ arguments _ 9_0 = ruleXShortClosure ) { // InternalPureXbase . g : 5178:6 : ( lv _ arguments _ 9_0 = ruleXShortClosure ) // InternalPureXbase . g : 5179:7 : lv _ arguments _ 9_0 = ruleXShortClosure { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getArgumentsXShortClosureParserRuleCall_4_1_0_0 ( ) ) ; } pushFollow ( FOLLOW_8 ) ; lv_arguments_9_0 = ruleXShortClosure ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "arguments" , lv_arguments_9_0 , "org.eclipse.xtext.xbase.Xbase.XShortClosure" ) ; afterParserOrEnumRuleCall ( ) ; } } } } break ; case 2 : // InternalPureXbase . g : 5197:5 : ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) { // InternalPureXbase . g : 5197:5 : ( ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * ) // InternalPureXbase . g : 5198:6 : ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * { // InternalPureXbase . g : 5198:6 : ( ( lv _ arguments _ 10_0 = ruleXExpression ) ) // InternalPureXbase . g : 5199:7 : ( lv _ arguments _ 10_0 = ruleXExpression ) { // InternalPureXbase . g : 5199:7 : ( lv _ arguments _ 10_0 = ruleXExpression ) // InternalPureXbase . g : 5200:8 : lv _ arguments _ 10_0 = ruleXExpression { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getArgumentsXExpressionParserRuleCall_4_1_1_0_0 ( ) ) ; } pushFollow ( FOLLOW_38 ) ; lv_arguments_10_0 = ruleXExpression ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "arguments" , lv_arguments_10_0 , "org.eclipse.xtext.xbase.Xbase.XExpression" ) ; afterParserOrEnumRuleCall ( ) ; } } } // InternalPureXbase . g : 5217:6 : ( otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) ) * loop93 : do { int alt93 = 2 ; int LA93_0 = input . LA ( 1 ) ; if ( ( LA93_0 == 57 ) ) { alt93 = 1 ; } switch ( alt93 ) { case 1 : // InternalPureXbase . g : 5218:7 : otherlv _ 11 = ' , ' ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) { otherlv_11 = ( Token ) match ( input , 57 , FOLLOW_3 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_11 , grammarAccess . getXConstructorCallAccess ( ) . getCommaKeyword_4_1_1_1_0 ( ) ) ; } // InternalPureXbase . g : 5222:7 : ( ( lv _ arguments _ 12_0 = ruleXExpression ) ) // InternalPureXbase . g : 5223:8 : ( lv _ arguments _ 12_0 = ruleXExpression ) { // InternalPureXbase . g : 5223:8 : ( lv _ arguments _ 12_0 = ruleXExpression ) // InternalPureXbase . g : 5224:9 : lv _ arguments _ 12_0 = ruleXExpression { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0 ( ) ) ; } pushFollow ( FOLLOW_38 ) ; lv_arguments_12_0 = ruleXExpression ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "arguments" , lv_arguments_12_0 , "org.eclipse.xtext.xbase.Xbase.XExpression" ) ; afterParserOrEnumRuleCall ( ) ; } } } } break ; default : break loop93 ; } } while ( true ) ; } } break ; } otherlv_13 = ( Token ) match ( input , 16 , FOLLOW_65 ) ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { newLeafNode ( otherlv_13 , grammarAccess . getXConstructorCallAccess ( ) . getRightParenthesisKeyword_4_2 ( ) ) ; } } break ; } // InternalPureXbase . g : 5249:3 : ( ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) ) ? int alt96 = 2 ; alt96 = dfa96 . predict ( input ) ; switch ( alt96 ) { case 1 : // InternalPureXbase . g : 5250:4 : ( ( ( ) ' [ ' ) ) = > ( lv _ arguments _ 14_0 = ruleXClosure ) { // InternalPureXbase . g : 5256:4 : ( lv _ arguments _ 14_0 = ruleXClosure ) // InternalPureXbase . g : 5257:5 : lv _ arguments _ 14_0 = ruleXClosure { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXConstructorCallAccess ( ) . getArgumentsXClosureParserRuleCall_5_0 ( ) ) ; } pushFollow ( FOLLOW_2 ) ; lv_arguments_14_0 = ruleXClosure ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElementForParent ( grammarAccess . getXConstructorCallRule ( ) ) ; } add ( current , "arguments" , lv_arguments_14_0 , "org.eclipse.xtext.xbase.Xbase.XClosure" ) ; afterParserOrEnumRuleCall ( ) ; } } } break ; } } } if ( state . backtracking == 0 ) { leaveRule ( ) ; } } catch ( RecognitionException re ) { recover ( input , re ) ; appendSkippedTokens ( ) ; } finally { } return current ;
public class IndirectSort { /** * Returns the order of elements between indices < code > start < / code > and * < code > length < / code > , as indicated by the given < code > comparator < / code > . * This routine uses merge sort . It is guaranteed to be stable . */ public static int [ ] mergesort ( int start , int length , IndirectComparator comparator ) { } }
final int [ ] src = createOrderArray ( start , length ) ; if ( length > 1 ) { final int [ ] dst = ( int [ ] ) src . clone ( ) ; topDownMergeSort ( src , dst , 0 , length , comparator ) ; return dst ; } return src ;
public class ConcurrentEvictingQueue { /** * Atomically removes all of the elements from this queue . * The queue will be empty after this call returns . */ @ Override public void clear ( ) { } }
Supplier < Object > clearStrategy = ( ) -> { if ( size == 0 ) { return null ; } Arrays . fill ( ringBuffer , null ) ; size = 0 ; headIndex = 0 ; tailIndex = 0 ; modificationsCount ++ ; return null ; } ; writeConcurrently ( clearStrategy ) ;
public class SlaveMain { /** * Warning emitter . Uses whatever alternative non - event communication channel is . */ @ SuppressForbidden ( "legitimate sysstreams." ) public static void warn ( String message , Throwable t ) { } }
PrintStream w = ( warnings == null ? System . err : warnings ) ; try { w . print ( "WARN: " ) ; w . print ( message ) ; if ( t != null ) { w . print ( " -> " ) ; try { t . printStackTrace ( w ) ; } catch ( OutOfMemoryError e ) { // Ignore , OOM . w . print ( t . getClass ( ) . getName ( ) ) ; w . print ( ": " ) ; w . print ( t . getMessage ( ) ) ; w . println ( " (stack unavailable; OOM)" ) ; } } else { w . println ( ) ; } w . flush ( ) ; } catch ( OutOfMemoryError t2 ) { w . println ( "ERROR: Couldn't even serialize a warning (out of memory)." ) ; } catch ( Throwable t2 ) { // Can ' t do anything , really . Probably an OOM ? w . println ( "ERROR: Couldn't even serialize a warning." ) ; }
public class MenuTree { /** * Gets the menu state that ' s associated with a given menu item . This is the * current value for the menu item . * @ param item the item which the state belongs to * @ param < T > determined automatically * @ return the state for the given menu item */ @ SuppressWarnings ( "unchecked" ) public < T > MenuState < T > getMenuState ( MenuItem < T > item ) { } }
return ( MenuState < T > ) menuStates . get ( item . getId ( ) ) ;
public class Triangle3d { /** * { @ inheritDoc } */ @ Override public Quaternion getOrientation ( ) { } }
Quaternion orient = null ; if ( this . orientation != null ) { orient = this . orientation . get ( ) ; } if ( orient == null ) { Vector3d norm = getNormal ( ) ; assert ( norm != null ) ; CoordinateSystem3D cs = CoordinateSystem3D . getDefaultCoordinateSystem ( ) ; assert ( cs != null ) ; Vector3f up = cs . getUpVector ( ) ; assert ( up != null ) ; Vector3d axis = new Vector3d ( ) ; FunctionalVector3D . crossProduct ( up . getX ( ) , up . getY ( ) , up . getZ ( ) , norm . getX ( ) , norm . getY ( ) , norm . getZ ( ) , cs , axis ) ; axis . normalize ( ) ; orient = new Quaternion ( ) ; orient . setAxisAngle ( axis , FunctionalVector3D . signedAngle ( up . getX ( ) , up . getY ( ) , up . getZ ( ) , norm . getX ( ) , norm . getY ( ) , norm . getZ ( ) ) ) ; this . orientation = new SoftReference < > ( orient ) ; } return orient ;
public class EvaluateClustering { /** * Test if a clustering result is a valid reference result . * @ param t Clustering to test . * @ return { @ code true } if it is considered to be a reference result . */ private boolean isReferenceResult ( Clustering < ? > t ) { } }
// FIXME : don ' t hard - code strings return "bylabel-clustering" . equals ( t . getShortName ( ) ) || "bymodel-clustering" . equals ( t . getShortName ( ) ) || "allinone-clustering" . equals ( t . getShortName ( ) ) || "allinnoise-clustering" . equals ( t . getShortName ( ) ) ;
public class EntityActionSupport { /** * 将request中的参数设置到clazz对应的bean 。 * @ param clazz * @ param shortName */ protected final < T > T populate ( Class < T > clazz , String shortName ) { } }
return PopulateHelper . populate ( clazz , shortName ) ;
public class DefaultEntityManager { /** * Executes the entity listeners associated with the given list of entities . * @ param callbackType * the callback type * @ param entities * the entities */ public void executeEntityListeners ( CallbackType callbackType , List < ? > entities ) { } }
for ( Object entity : entities ) { executeEntityListeners ( callbackType , entity ) ; }
public class MMDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EList < MMDRG > getRG ( ) { } }
if ( rg == null ) { rg = new EObjectContainmentEList . Resolving < MMDRG > ( MMDRG . class , this , AfplibPackage . MMD__RG ) ; } return rg ;
public class Vector3f { /** * / * ( non - Javadoc ) * @ see org . joml . Vector3fc # half ( org . joml . Vector3fc , org . joml . Vector3f ) */ public Vector3f half ( Vector3fc other , Vector3f dest ) { } }
return half ( other . x ( ) , other . y ( ) , other . z ( ) , dest ) ;
public class Strings { /** * Properly java - escape the string for printing to console . * @ param string The string to escape . * @ return The escaped string . */ public static String escape ( CharSequence string ) { } }
StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < string . length ( ) ; ++ i ) { char c = string . charAt ( i ) ; switch ( c ) { case '\b' : builder . append ( '\\' ) . append ( 'b' ) ; break ; case '\t' : builder . append ( '\\' ) . append ( 't' ) ; break ; case '\n' : builder . append ( '\\' ) . append ( 'n' ) ; break ; case '\f' : builder . append ( '\\' ) . append ( 'f' ) ; break ; case '\r' : builder . append ( '\\' ) . append ( 'r' ) ; break ; case '"' : case '\'' : builder . append ( '\\' ) . append ( c ) ; break ; case '\\' : builder . append ( '\\' ) . append ( '\\' ) ; break ; default : if ( c < 32 || c == 127 ) { builder . append ( String . format ( "\\%03o" , ( int ) c ) ) ; } else if ( ! isConsolePrintable ( c ) || Character . isHighSurrogate ( c ) || Character . isLowSurrogate ( c ) ) { builder . append ( String . format ( "\\u%04x" , ( int ) c ) ) ; } else { builder . append ( c ) ; } break ; } } return builder . toString ( ) ;
public class CommerceWarehousePersistenceImpl { /** * Returns all the commerce warehouses where groupId = & # 63 ; and commerceCountryId = & # 63 ; and primary = & # 63 ; . * @ param groupId the group ID * @ param commerceCountryId the commerce country ID * @ param primary the primary * @ return the matching commerce warehouses */ @ Override public List < CommerceWarehouse > findByG_C_P ( long groupId , long commerceCountryId , boolean primary ) { } }
return findByG_C_P ( groupId , commerceCountryId , primary , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ;
public class DataResource { /** * Adds a column */ @ PUT @ Path ( "/{keyspace}/{columnFamily}/{key}/{columnName}" ) @ Produces ( { } }
"application/json" } ) public void addColumn ( @ PathParam ( "keyspace" ) String keyspace , @ PathParam ( "columnFamily" ) String columnFamily , @ PathParam ( "key" ) String key , @ PathParam ( "columnName" ) String columnName , @ QueryParam ( "index" ) boolean index , String body , @ HeaderParam ( CONSISTENCY_LEVEL_HEADER ) String consistencyLevel ) throws Exception { if ( logger . isDebugEnabled ( ) ) logger . debug ( "Deleting row [" + keyspace + "]:[" + columnFamily + "]:[" + key + "] => [" + body + "]" ) ; getCassandraStorage ( ) . addColumn ( keyspace , columnFamily , key , columnName , body , config . getConsistencyLevel ( consistencyLevel ) , index ) ;
public class FileUtils { /** * If the file is like name . extension This function returns extension * for filename = name . this returns " " * for filemane = name this retuns null ; * for filemane = . extension this retuns extension ; * for filemane = . this retuns " " ; * @ param fileNameAndPath * @ return */ public static String getExtension ( String fileName ) { } }
if ( fileName == null ) { return null ; } else { int number = fileName . lastIndexOf ( '.' ) ; if ( number >= 0 ) { return fileName . substring ( number + 1 , fileName . length ( ) ) ; } else { return null ; } }
public class GetRunRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetRunRequest getRunRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getRunRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getRunRequest . getArn ( ) , ARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class FileResourceBundle { /** * Returns the cache directory used for unpacked resources . */ public static File getCacheDir ( ) { } }
if ( _tmpdir == null ) { String tmpdir = System . getProperty ( "java.io.tmpdir" ) ; if ( tmpdir == null ) { log . info ( "No system defined temp directory. Faking it." ) ; tmpdir = System . getProperty ( "user.home" ) ; } setCacheDir ( new File ( tmpdir ) ) ; } return _tmpdir ;