signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FTPClient { /** * Actual transfer management .
* Transfer is controlled by two new threads listening
* to the two servers . */
protected void transferRun ( BasicClientControlChannel other , MarkerListener mListener ) throws IOException , ServerException , ClientException { } } | TransferState transferState = transferBegin ( other , mListener ) ; transferWait ( transferState ) ; |
public class ConstraintMessage { /** * Gets the human friendly location of where the violation was raised . */
public static String getMessage ( ConstraintViolation < ? > v , Invocable invocable ) { } } | final Pair < Path , ? extends ConstraintDescriptor < ? > > of = Pair . of ( v . getPropertyPath ( ) , v . getConstraintDescriptor ( ) ) ; final String cachePrefix = PREFIX_CACHE . getIfPresent ( of ) ; if ( cachePrefix == null ) { final String prefix = calculatePrefix ( v , invocable ) ; PREFIX_CACHE . put ( of , prefi... |
public class HBaseReader { /** * Reset . */
public void reset ( ) { } } | scanner = null ; fetchSize = null ; resultsIter = null ; tableName = null ; counter = 0 ; |
public class ZonedDateTime { /** * Returns a copy of this date - time with a different time - zone ,
* retaining the instant .
* This method changes the time - zone and retains the instant .
* This normally results in a change to the local date - time .
* This method is based on retaining the same instant , thu... | Jdk8Methods . requireNonNull ( zone , "zone" ) ; return this . zone . equals ( zone ) ? this : create ( dateTime . toEpochSecond ( offset ) , dateTime . getNano ( ) , zone ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link IdReferenceType } { @ code > } } */
@ XmlElementDecl ( namespace = "urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" , name = "PolicySetIdReference" ) public JAXBElement < IdReferenceType > createPolicySetIdReference ( ... | return new JAXBElement < IdReferenceType > ( _PolicySetIdReference_QNAME , IdReferenceType . class , null , value ) ; |
public class PrattParser { /** * Parse upcoming tokens from the stream into an expression , and keep going
* until token binding powers drop down to or below the supplied right binding power . If this
* feels backwards , remember that weak operands end up higher in the parse tree , consider for instance
* < code ... | // An expression always starts with a symbol which can qualify as a nud value
// i . e
// " + " as in " positive " , used in for instance " + 3 + 5 " , parses to + ( rest of expression )
// " - " as in " negative " , used in for instance " - 3 + 5 " , parses to - ( rest of expression )
// " ( " as in " start sub - expr... |
public class HttpBuilder { /** * Executes a POST request on the configured URI , with additional configuration provided by the configuration function . The result will be cast to
* the specified ` type ` .
* This method is generally used for Java - specific configuration .
* [ source , groovy ]
* HttpBuilder ht... | return type . cast ( interceptors . get ( HttpVerb . POST ) . apply ( configureRequest ( type , HttpVerb . POST , configuration ) , this :: doPost ) ) ; |
public class IslandEvolution { /** * Helper method used by the constructor to create the individual islands if they haven ' t
* been provided already ( via the other constructor ) . */
private static < T > List < EvolutionEngine < T > > createIslands ( int islandCount , CandidateFactory < T > candidateFactory , Evolu... | List < EvolutionEngine < T > > islands = new ArrayList < EvolutionEngine < T > > ( islandCount ) ; for ( int i = 0 ; i < islandCount ; i ++ ) { GenerationalEvolutionEngine < T > island = new GenerationalEvolutionEngine < T > ( candidateFactory , evolutionScheme , fitnessEvaluator , selectionStrategy , rng ) ; island . ... |
public class FSDirectory { /** * Add a node child to the inodes at index pos .
* Its ancestors are stored at [ startPos , endPos - 1 ] .
* QuotaExceededException is thrown if it violates quota limit */
private < T extends INode > T addChild ( INode [ ] pathComponents , int startPos , int endPos , T child , long chi... | INode . DirCounts counts = new INode . DirCounts ( ) ; child . spaceConsumedInTree ( counts ) ; if ( childDiskspace < 0 ) { childDiskspace = counts . getDsCount ( ) ; } updateCount ( pathComponents , startPos , endPos , counts . getNsCount ( ) , childDiskspace , checkQuota ) ; T addedNode = null ; try { addedNode = ( (... |
public class OpenAPIConnection { /** * Sets value for specific header
* @ param headerName - header to be set
* @ param headerValue - value of the header
* @ return */
public OpenAPIConnection header ( String headerName , String headerValue ) { } } | this . headers . put ( headerName , headerValue ) ; return this ; |
public class AbstractCommandLineRunner { /** * Outputs the variable and property name maps for the specified compiler if the proper FLAGS are
* set . */
@ GwtIncompatible ( "Unnecessary" ) private void outputNameMaps ( ) throws IOException { } } | String propertyMapOutputPath = null ; String variableMapOutputPath = null ; // Check the create _ name _ map _ files FLAG .
if ( config . createNameMapFiles ) { String basePath = getMapPath ( config . jsOutputFile ) ; propertyMapOutputPath = basePath + "_props_map.out" ; variableMapOutputPath = basePath + "_vars_map.ou... |
public class ListCoreDefinitionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListCoreDefinitionsRequest listCoreDefinitionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listCoreDefinitionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listCoreDefinitionsRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ; protocolMarshaller . marshall ( listCoreDefinitionsRequest . getNextToken ( ) , NEXTTO... |
public class SccpFlowControl { /** * if true then message can be accepted */
public boolean checkInputMessageNumbering ( SccpConnectionImpl conn , SequenceNumber sendSequenceNumber , SequenceNumber receiveSequenceNumber ) throws Exception { } } | if ( sendSequenceNumber != null ) { if ( expectingFirstMessageInputAfterInit && ! sendSequenceNumber . equals ( new SequenceNumberImpl ( 0 ) ) ) { // local procedure error
conn . reset ( new ResetCauseImpl ( ResetCauseValue . MESSAGE_OUT_OF_ORDER_INCORRECT_PS ) ) ; return false ; } else if ( sendSequenceNumber . equals... |
public class ListResolversResult { /** * The < code > Resolver < / code > objects .
* @ param resolvers
* The < code > Resolver < / code > objects . */
public void setResolvers ( java . util . Collection < Resolver > resolvers ) { } } | if ( resolvers == null ) { this . resolvers = null ; return ; } this . resolvers = new java . util . ArrayList < Resolver > ( resolvers ) ; |
public class UpdatePlacementRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdatePlacementRequest updatePlacementRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updatePlacementRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updatePlacementRequest . getPlacementName ( ) , PLACEMENTNAME_BINDING ) ; protocolMarshaller . marshall ( updatePlacementRequest . getProjectName ( ) , PROJECTNAM... |
public class IndustrialClockSkin { /** * * * * * * Initialization * * * * * */
@ Override protected void initGraphics ( ) { } } | // Set initial size
if ( Double . compare ( clock . getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( clock . getWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getHeight ( ) , 0.0 ) <= 0 ) { if ( clock . getPrefWidth ( ) > 0 && clock . getPrefHeight (... |
public class ServiceInvoker { /** * { @ inheritDoc } */
public boolean invoke ( IServiceCall call , IScope scope ) { } } | String serviceName = call . getServiceName ( ) ; log . trace ( "Service name {}" , serviceName ) ; Object service = getServiceHandler ( scope , serviceName ) ; if ( service == null ) { // Exception must be thrown if service was not found
call . setException ( new ServiceNotFoundException ( serviceName ) ) ; // Set call... |
public class PlaceholderUnificationVisitor { /** * Returns all the ways this placeholder invocation might unify with the specified list of trees . */
public Choice < State < List < JCExpression > > > unifyExpressions ( @ Nullable Iterable < ? extends ExpressionTree > nodes , State < ? > state ) { } } | return unify ( nodes , state ) . transform ( s -> s . withResult ( List . convert ( JCExpression . class , s . result ( ) ) ) ) ; |
public class LasSourcesTable { /** * Checks if the db is a las database readable by HortonMachine .
* @ param db the database to check .
* @ return < code > true < / code > if the db can be read .
* @ throws Exception */
public static boolean isLasDatabase ( ASpatialDb db ) throws Exception { } } | if ( ! db . hasTable ( TABLENAME ) || ! db . hasTable ( LasCellsTable . TABLENAME ) ) { return false ; } return true ; |
public class HtmlTool { /** * Sets attribute to the given value on elements in HTML .
* @ param content
* HTML content to set attributes on
* @ param selector
* CSS selector for elements to modify
* @ param attributeKey
* Attribute name
* @ param value
* Attribute value
* @ return HTML content with mo... | Element body = parseContent ( content ) ; List < Element > elements = body . select ( selector ) ; if ( elements . size ( ) > 0 ) { for ( Element element : elements ) { element . attr ( attributeKey , value ) ; } return body . html ( ) ; } else { // nothing to update
return content ; } |
public class GlstringBuilder { /** * Build and return a new GL String configured from the properties of this GL String builder .
* @ return a new GL String configured from the properties of this GL String builder
* @ throws IllegalStateException if { @ link # locus ( String ) } or { @ link # allele ( String ) } has... | if ( locus == null && tree . isEmpty ( ) ) { throw new IllegalStateException ( "must call locus(String) or allele(String) at least once" ) ; } if ( tree . isEmpty ( ) ) { return locus ; } String glstring = tree . toString ( ) ; char last = glstring . charAt ( glstring . length ( ) - 1 ) ; if ( operators . matches ( las... |
public class CMRFidelityImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . CMR_FIDELITY__STP_CMR_EX : setStpCMREx ( ( Integer ) newValue ) ; return ; case AfplibPackage . CMR_FIDELITY__REP_CMR_EX : setRepCMREx ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class CommerceOrderPaymentLocalServiceUtil { /** * Deletes the commerce order payment from the database . Also notifies the appropriate model listeners .
* @ param commerceOrderPayment the commerce order payment
* @ return the commerce order payment that was removed */
public static com . liferay . commerce ... | return getService ( ) . deleteCommerceOrderPayment ( commerceOrderPayment ) ; |
public class CRC32 { /** * Calculates a CRC value for a byte to be used by CRC calculation
* functions . */
private static void initialize ( ) { } } | for ( int i = 0 ; i < 256 ; ++ i ) { long crc = i ; for ( int j = 8 ; j > 0 ; j -- ) { if ( ( crc & 1 ) == 1 ) crc = ( crc >>> 1 ) ^ polynomial ; else crc >>>= 1 ; } values [ i ] = crc ; } init_done = true ; |
public class AbstractCommand { /** * Execute < code > getFallback ( ) < / code > within protection of a semaphore that limits number of concurrent executions .
* Fallback implementations shouldn ' t perform anything that can be blocking , but we protect against it anyways in case someone doesn ' t abide by the contra... | final HystrixRequestContext requestContext = HystrixRequestContext . getContextForCurrentThread ( ) ; long latency = System . currentTimeMillis ( ) - executionResult . getStartTimestamp ( ) ; // record the executionResult
// do this before executing fallback so it can be queried from within getFallback ( see See https ... |
public class KeyVaultClientBaseImpl { /** * Updates the attributes associated with a specified secret in a given key vault .
* The UPDATE operation changes specified attributes of an existing stored secret . Attributes that are not specified in the request are left unchanged . The value of a secret itself cannot be c... | return updateSecretWithServiceResponseAsync ( vaultBaseUrl , secretName , secretVersion ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class RemoteConsumerReceiver { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPRemoteConsumerReceiverControllable # getNumberOfActiveMessages ( ) */
public int getNumberOfActiveRequests ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getNumberOfActiveRequests" ) ; // This will return every request in a state other than COMPLETE
List all = aiStream . getTicksOnStream ( ) ; Iterator it = all . iterator ( ) ; // Filter out rejected ticks
int activeCount = ... |
public class TableScan { /** * Sets the value of the specified field , as a Constant .
* @ param val
* the constant to be set . Will be casted to the correct type
* specified in the schema of the table .
* @ see UpdateScan # setVal ( java . lang . String , Constant ) */
@ Override public void setVal ( String fl... | rf . setVal ( fldName , val ) ; |
public class DirectoryScanner { /** * < p > Return the names of the directories which were selected out and
* therefore not ultimately included . < / p >
* < p > The names are relative to the base directory . This involves
* performing a slow scan if one has not already been completed . < / p >
* @ return the n... | slowScan ( ) ; String [ ] directories = new String [ dirsDeselected . size ( ) ] ; dirsDeselected . copyInto ( directories ) ; return directories ; |
public class ServerParams { /** * Get the value of the given parameter name belonging to the given module as integer .
* If no such module / parameter exists , defaultValue is returned .
* If the given value is not an integer , a RuntimeException is thrown .
* @ param moduleName Name of module to get parameter fo... | Map < String , Object > moduleParams = getModuleParams ( moduleName ) ; if ( moduleParams == null || ! moduleParams . containsValue ( paramName ) ) { return defaultValue ; } Object value = moduleParams . get ( paramName ) ; try { return Integer . parseInt ( value . toString ( ) ) ; } catch ( Exception e ) { throw new R... |
public class FormatterFileLog { /** * Format log data into a log entry String .
* @ param msgLogLevel Log level of an entry .
* @ param tag Tag with SDK and version details .
* @ param msg Log message .
* @ param exception Exception with a stach
* @ return Formatted log entry . */
String formatMessage ( int m... | if ( exception != null ) { return DateHelper . getUTC ( System . currentTimeMillis ( ) ) + "/" + getLevelTag ( msgLogLevel ) + tag + ": " + msg + "\n" + getStackTrace ( exception ) + "\n" ; } else { return DateHelper . getUTC ( System . currentTimeMillis ( ) ) + "/" + getLevelTag ( msgLogLevel ) + tag + ": " + msg + "\... |
public class Tag { /** * Converts a wildcard { @ link Tag } to a { @ link String } { @ link Tag } . This method uses the { @ link Object # toString ( ) }
* method to convert the wildcard type to a { @ link String } .
* @ param tag a { @ link Tag } that should be converted to a { @ link Tag } with value of type { @ ... | return new Tag < > ( tag . getKey ( ) , tag . getValue ( ) . toString ( ) ) ; |
public class WikisApi { /** * Get a list of pages in project wiki for the specified page .
* < pre > < code > GitLab Endpoint : GET / projects / : id / wikis < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance
* @ param page the page ... | Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "wikis" ) ; return response . readEntity ( new GenericType < List < WikiPage > > ( ) { } ) ; |
public class XCatchClauseImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public NotificationChain eInverseRemove ( InternalEObject otherEnd , int featureID , NotificationChain msgs ) { } } | switch ( featureID ) { case XbasePackage . XCATCH_CLAUSE__EXPRESSION : return basicSetExpression ( null , msgs ) ; case XbasePackage . XCATCH_CLAUSE__DECLARED_PARAM : return basicSetDeclaredParam ( null , msgs ) ; } return super . eInverseRemove ( otherEnd , featureID , msgs ) ; |
public class JKDefaultListableBeanFactory { /** * ( non - Javadoc )
* @ see org . springframework . beans . factory . support . DefaultListableBeanFactory #
* registerBeanDefinition ( java . lang . String ,
* org . springframework . beans . factory . config . BeanDefinition ) */
@ Override public void registerBea... | // accepts the beans in the order of classpath , which allow me to override beans
// easily
if ( containsBean ( beanName ) ) { return ; } // just continue normally
super . registerBeanDefinition ( beanName , beanDefinition ) ; |
public class CmsFlexController { /** * Removes the topmost request / response pair from the stack . < p > */
public void pop ( ) { } } | if ( ( m_flexRequestList != null ) && ! m_flexRequestList . isEmpty ( ) ) { m_flexRequestList . remove ( m_flexRequestList . size ( ) - 1 ) ; } if ( ( m_flexResponseList != null ) && ! m_flexRequestList . isEmpty ( ) ) { m_flexResponseList . remove ( m_flexResponseList . size ( ) - 1 ) ; } if ( ( m_flexContextInfoList ... |
public class MapContentHandler { /** * Registers a handler for a given content type .
* @ param clazz
* the content type
* @ param handler
* the handler
* @ return the handler formerly associated with the content type , if there
* was one */
public SendGridContentHandler register ( final Class < ? extends C... | if ( handler == null ) { throw new IllegalArgumentException ( "[handler] cannot be null" ) ; } if ( clazz == null ) { throw new IllegalArgumentException ( "[clazz] cannot be null" ) ; } LOG . debug ( "Registering content handler {} for content type {}" , handler , clazz ) ; return handlers . put ( clazz , handler ) ; |
public class BinaryProtoNetworkExternalizer { /** * Reads a proto network from a descriptor representing a binary file .
* @ param protoNetworkDescriptor { @ link ProtoNetworkDescriptor } , the proto
* network descriptor
* @ return { @ link ProtoNetwork } , the read proto network , which cannot be
* null
* @ ... | if ( ! BinaryProtoNetworkDescriptor . class . isAssignableFrom ( protoNetworkDescriptor . getClass ( ) ) ) { String err = "protoNetworkDescriptor cannot be of type " ; err = err . concat ( protoNetworkDescriptor . getClass ( ) . getName ( ) ) ; err = err . concat ( ", need type " ) ; err = err . concat ( BinaryProtoNet... |
public class ListJobsResult { /** * A list of job objects . Each job object contains metadata describing the job .
* @ param jobList
* A list of job objects . Each job object contains metadata describing the job . */
public void setJobList ( java . util . Collection < GlacierJobDescription > jobList ) { } } | if ( jobList == null ) { this . jobList = null ; return ; } this . jobList = new java . util . ArrayList < GlacierJobDescription > ( jobList ) ; |
public class DSUtil { /** * Returns an immutable < code > Iterable < / code > that is the union
* of several < code > Iterable < / code > s ( in the order thet are given
* in < code > its < / code > ) . */
public static < E > Iterable < E > unionIterable ( Iterable < Iterable < E > > its ) { } } | return new ImmutableCompoundIterable < Iterable < E > , E > ( its , new IdFunction < Iterable < E > > ( ) ) ; |
public class AutowiredLoggerPostProcessor { /** * { @ inheritDoc } */
public Object postProcessBeforeInitialization ( final Object bean , String beanName ) throws BeansException { } } | ReflectionUtils . doWithFields ( bean . getClass ( ) , new FieldCallback ( ) { @ SuppressWarnings ( "unchecked" ) public void doWith ( Field field ) throws IllegalArgumentException , IllegalAccessException { ReflectionUtils . makeAccessible ( field ) ; if ( field . getAnnotation ( AutowiredLogger . class ) != null ) { ... |
public class JsMainImpl { /** * Create a single Message Engine admin object using suppled config object . */
private MessagingEngine createMessageEngine ( JsMEConfig me ) throws Exception { } } | String thisMethodName = CLASS_NAME + ".createMessageEngine(JsMEConfig)" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , "replace ME name here" ) ; } JsMessagingEngine engineImpl = null ; bus = new JsBusImpl ( me , this , ( me . getSIBus ( ) . getName ... |
public class FaxClientSpiProxyImpl { /** * This function invokes the interceptor for the given event .
* @ param eventType
* The event type
* @ param method
* The method invoked
* @ param arguments
* The method arguments
* @ param output
* The method output
* @ param throwable
* The throwable while ... | // get interceptors
FaxClientSpiInterceptor [ ] interceptors = this . getFaxClientSpiInterceptors ( ) ; // get interceptors amount
int amount = interceptors . length ; FaxClientSpiInterceptor interceptor = null ; for ( int index = 0 ; index < amount ; index ++ ) { // get next interceptor
interceptor = interceptors [ in... |
public class EJBSerializerImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . ejbcontainer . util . EJBSerializer # getObjectType ( java . lang . Object ) */
@ Override public ObjectType getObjectType ( Object theObject ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "getObjectType: " + theObject . getClass ( ) ) ; } ObjectType objectType = ObjectType . NOT_AN_EJB ; if ( theObject instanceof javax . rmi . CORBA . Stub ) { if ( theObject instanceof EJBObject ) { objectType = ObjectType . E... |
public class DataSiftAccount { /** * List limits for the given service
* @ param service which service you want to list the limits of
* @ param page page number ( can be 0)
* @ param perPage items per page ( can be 0)
* @ return List of identities */
public FutureData < LimitList > listLimits ( String service ,... | if ( service == null || service . isEmpty ( ) ) { throw new IllegalArgumentException ( "A service is required" ) ; } FutureData < LimitList > future = new FutureData < > ( ) ; ParamBuilder b = newParams ( ) ; if ( page > 0 ) { b . put ( "page" , page ) ; } if ( perPage > 0 ) { b . put ( "per_page" , perPage ) ; } URI u... |
public class Matrix4d { /** * Set this matrix to a rotation transformation about the Z axis .
* When used with a right - handed coordinate system , the produced rotation will rotate a vector
* counter - clockwise around the rotation axis , when viewing along the negative axis direction towards the origin .
* When... | double sin , cos ; sin = Math . sin ( ang ) ; cos = Math . cosFromSin ( sin , ang ) ; if ( ( properties & PROPERTY_IDENTITY ) == 0 ) this . _identity ( ) ; m00 = cos ; m01 = sin ; m10 = - sin ; m11 = cos ; properties = PROPERTY_AFFINE | PROPERTY_ORTHONORMAL ; return this ; |
public class MapComposedElement { /** * Set the specified point at the given index .
* < p > If the < var > index < / var > is negative , it will corresponds
* to an index starting from the end of the list .
* @ param index is the index of the desired point
* @ param x is the new value of the point
* @ param ... | final int count = getPointCount ( ) ; int idx = index ; if ( idx < 0 ) { idx = count + idx ; } if ( idx < 0 ) { throw new IndexOutOfBoundsException ( idx + "<0" ) ; // $ NON - NLS - 1 $
} if ( idx >= count ) { throw new IndexOutOfBoundsException ( idx + ">=" + count ) ; // $ NON - NLS - 1 $
} final PointFusionValidator... |
public class AwsUtils { /** * - - - - - Private Methods - - - - - */
private static String createSignature ( String stringToSign , String awsSecretKey , String algorithm ) throws SignatureException { } } | assert stringToSign != null ; assert awsSecretKey != null ; assert algorithm != null ; String signature ; try { byte [ ] secretyKeyBytes = awsSecretKey . getBytes ( UTF8_CHARSET ) ; SecretKeySpec secretKeySpec = new SecretKeySpec ( secretyKeyBytes , algorithm ) ; Mac mac = Mac . getInstance ( algorithm ) ; mac . init (... |
public class AutoScaling { /** * Returns filtered list of auto scaling groups .
* @ param options the filter parameters
* @ return filtered list of scaling groups */
@ Override public Collection < ScalingGroup > listScalingGroups ( AutoScalingGroupFilterOptions options ) throws CloudException , InternalException { ... | APITrace . begin ( getProvider ( ) , "AutoScaling.listScalingGroups" ) ; try { ProviderContext ctx = getProvider ( ) . getContext ( ) ; if ( ctx == null ) { throw new CloudException ( "No context has been set for this request" ) ; } ArrayList < ScalingGroup > list = new ArrayList < ScalingGroup > ( ) ; Map < String , S... |
public class CmsSendEmailGroupsDialog { /** * Returns a warning if users have been excluded . < p >
* @ return a warning */
public String getExcludedUsers ( ) { } } | if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( m_excludedUsers ) ) { getToNames ( ) ; } if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( m_excludedUsers ) ) { return "" ; } return m_excludedUsers ; |
public class ResourceChangeDetectingEventNotifier { /** * Compare the SHA1 digests ( since last check and the latest ) of the configured resource , and if change is detected ,
* publish the < code > ResourceChangeEvent < / code > to ApplicationContext . */
public void notifyOfTheResourceChangeEventIfNecessary ( ) { }... | final String currentResourceSha1 = this . resourceSha1Hex ; String newResourceSha1 = null ; try { newResourceSha1 = new Sha1Hash ( this . watchedResource . getFile ( ) ) . toHex ( ) ; if ( ! newResourceSha1 . equals ( currentResourceSha1 ) ) { logger . debug ( "Resource: [{}] | Old Hash: [{}] | New Hash: [{}]" , new Ob... |
public class ReservationUtilizationGroupMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ReservationUtilizationGroup reservationUtilizationGroup , ProtocolMarshaller protocolMarshaller ) { } } | if ( reservationUtilizationGroup == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( reservationUtilizationGroup . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( reservationUtilizationGroup . getValue ( ) , VALUE_BINDING ) ; pro... |
public class CollectionExtensions { /** * Returns an immutable copy of the specified { @ code list } .
* @ param list
* the list for which an immutable copy should be created . May not be < code > null < / code > .
* @ return an immutable copy of the specified list . */
@ Inline ( value = "$2.$3copyOf($1)" , impo... | return ImmutableList . copyOf ( list ) ; |
public class Condition { /** * Returns the Lucene { @ link Query } representation of this condition .
* @ param schema the schema to be used
* @ return the Lucene query */
public final Query query ( Schema schema ) { } } | Query query = doQuery ( schema ) ; return boost == null ? query : new BoostQuery ( query , boost ) ; |
public class XmlRpcRemoteRunner { /** * < p > getSpecificationHierarchy . < / p >
* @ param repository a { @ link com . greenpepper . server . domain . Repository } object .
* @ param systemUnderTest a { @ link com . greenpepper . server . domain . SystemUnderTest } object .
* @ return a { @ link DocumentNode } o... | return xmlRpc . getSpecificationHierarchy ( repository , systemUnderTest , getIdentifier ( ) ) ; |
public class SolverWorldModelInterface { /** * Sends a multiple Attribute update messages to the world model .
* @ param attrToSend
* the Attribute values to update
* @ return { @ code true } if the messages were written , or { @ code false } if
* one or more messages failed to send . */
public boolean updateAt... | if ( ! this . sentAttrSpecifications ) { log . error ( "Haven't sent type specifications yet, can't send solutions." ) ; return false ; } for ( Iterator < Attribute > iter = attrToSend . iterator ( ) ; iter . hasNext ( ) ; ) { Attribute soln = iter . next ( ) ; Integer solutionTypeAlias = this . attributeAliases . get ... |
public class ElementMatchers { /** * Matches a method in its defined shape .
* @ param matcher The matcher to apply to the matched method ' s defined shape .
* @ param < T > The matched object ' s type .
* @ return A matcher that matches a matched method ' s defined shape . */
public static < T extends MethodDesc... | return new DefinedShapeMatcher < T , MethodDescription . InDefinedShape > ( matcher ) ; |
public class JDBCStorableIntrospector { /** * Generates aliases for the given name , converting camel case form into
* various underscore forms . */
static String [ ] generateAliases ( String base ) { } } | int length = base . length ( ) ; if ( length <= 1 ) { return new String [ ] { base . toUpperCase ( ) , base . toLowerCase ( ) } ; } ArrayList < String > aliases = new ArrayList < String > ( 4 ) ; StringBuilder buf = new StringBuilder ( ) ; int i ; for ( i = 0 ; i < length ; ) { char c = base . charAt ( i ++ ) ; if ( c ... |
public class AbstractRecordReader { /** * Subscribes the listener object to receive events of the given type .
* @ param eventListener
* the listener object to register
* @ param eventType
* the type of event to register the listener for */
@ Override public void subscribeToEvent ( EventListener eventListener ,... | this . eventHandler . subscribeToEvent ( eventListener , eventType ) ; |
public class CloudFile { /** * 分N线程并行上传云文件 , 线程数默认值是经过本地验证取最优的
* @ param pathDataMap 批量数据 , key为path , value为文件内容
* @ return completable */
@ SuppressWarnings ( "all" ) public static Completable save ( Map pathDataMap ) { } } | return SingleRxXian . call ( "cosService" , "batchCosWrite" , new JSONObject ( ) { { put ( "files" , pathDataMap ) ; } } ) . toCompletable ( ) ; |
public class CheckSkuAvailabilitysInner { /** * Check available SKUs .
* @ param location Resource location .
* @ param skus The SKU of the resource .
* @ param kind The Kind of the resource . Possible values include : ' Bing . Autosuggest . v7 ' , ' Bing . CustomSearch ' , ' Bing . Search . v7 ' , ' Bing . Speec... | return ServiceFuture . fromResponse ( listWithServiceResponseAsync ( location , skus , kind , type ) , serviceCallback ) ; |
public class WorkflowTriggersInner { /** * Sets the state of a workflow trigger .
* @ param resourceGroupName The resource group name .
* @ param workflowName The workflow name .
* @ param triggerName The workflow trigger name .
* @ param source the WorkflowTriggerInner value
* @ throws IllegalArgumentExcepti... | return setStateWithServiceResponseAsync ( resourceGroupName , workflowName , triggerName , source ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class StringUtilities { /** * Checks if the list of strings supplied contains the supplied string .
* < p > If the string is contained it changes the name by adding a number .
* < p > The spaces are trimmed away before performing name equality .
* @ param strings the list of existing strings .
* @ param ... | int index = 1 ; for ( int i = 0 ; i < strings . size ( ) ; i ++ ) { if ( index == 10000 ) { // something odd is going on
throw new RuntimeException ( ) ; } String existingString = strings . get ( i ) ; existingString = existingString . trim ( ) ; if ( existingString . trim ( ) . equals ( string . trim ( ) ) ) { // name... |
public class Service { /** * Removes a dependency . This method < i > must < / i > be called in the { @ link # init ( ) init ( ) } method .
* @ param service */
protected void removeDependency ( Service service ) { } } | assertDuringInitialization ( ) ; LOG . info ( "Service {} is not dependent on {}" , this , service ) ; if ( ! dependsOn . remove ( service ) ) LOG . warn ( "Service {} asked to remove dependency on {}, but wasn't dependendent on it" , getName ( ) , service . getName ( ) ) ; |
public class ArgP { /** * Returns the value of the given option , or a default value .
* @ param name The name of the option to recognize ( e . g . { @ code - - foo } ) .
* @ param defaultv The default value to return if the option wasn ' t given .
* @ throws IllegalArgumentException if this option wasn ' t regis... | final String value = get ( name ) ; return value == null ? defaultv : value ; |
public class JmxAction { /** * Gets the effects of this action .
* @ return the effects . Will not be { @ code null } */
public Set < Action . ActionEffect > getActionEffects ( ) { } } | switch ( getImpact ( ) ) { case CLASSLOADING : case WRITE : return WRITES ; case READ_ONLY : return READS ; default : throw new IllegalStateException ( ) ; } |
public class AbstractEXIBodyEncoder { /** * returns null if no CH datatype is available or schema - less */
private WhiteSpace getDatatypeWhiteSpace ( ) { } } | Grammar currGr = this . getCurrentGrammar ( ) ; if ( currGr . isSchemaInformed ( ) && currGr . getNumberOfEvents ( ) > 0 ) { Production prod = currGr . getProduction ( 0 ) ; if ( prod . getEvent ( ) . getEventType ( ) == EventType . CHARACTERS ) { Characters ch = ( Characters ) prod . getEvent ( ) ; return ch . getData... |
public class Resolver { /** * Implementation of { @ link LSResourceResolver # resolveResource ( String , String , String , String , String ) } . */
public LSInput resolveResource ( String pType , String pNamespaceURI , String pPublicId , String pSystemId , String pBaseURI ) { } } | if ( pPublicId != null ) { final InputSource isource = resolver . resolveEntity ( pPublicId , pSystemId ) ; if ( isource != null ) { return newLSInput ( isource ) ; } } InputSource isource = resolver . resolveEntity ( pNamespaceURI , pSystemId ) ; if ( isource != null ) { return newLSInput ( isource ) ; } URI baseURI =... |
public class XmlElementWrapperPlugin { /** * For the given annotatable check that all annotations ( and all annotations within annotations recursively ) do not
* refer any candidate for removal . */
private void checkAnnotationReference ( Map < String , Candidate > candidatesMap , JAnnotatable annotatable ) { } } | for ( JAnnotationUse annotation : annotatable . annotations ( ) ) { JAnnotationValue annotationMember = getAnnotationMember ( annotation , "value" ) ; if ( annotationMember instanceof JAnnotationArrayMember ) { checkAnnotationReference ( candidatesMap , ( JAnnotationArrayMember ) annotationMember ) ; continue ; } JExpr... |
public class PipelineServiceImpl { /** * finds any stages for a dashboard that aren ' t mapped .
* @ param dashboard
* @ return a list of deploy PipelineStages that are not mapped */
private List < PipelineStage > findUnmappedStages ( Dashboard dashboard , List < PipelineStage > pipelineStageList ) { } } | List < PipelineStage > unmappedStages = new ArrayList < > ( ) ; Map < PipelineStage , String > stageToEnvironmentNameMap = PipelineUtils . getStageToEnvironmentNameMap ( dashboard ) ; for ( PipelineStage systemStage : pipelineStageList ) { if ( PipelineStageType . DEPLOY . equals ( systemStage . getType ( ) ) ) { Strin... |
public class ServiceHandler { /** * create local topology files in blobstore and sync metadata to zk */
private void setupStormCode ( String topologyId , String tmpJarLocation , Map < Object , Object > stormConf , StormTopology topology , boolean update ) throws Exception { } } | String codeKey = StormConfig . master_stormcode_key ( topologyId ) ; String confKey = StormConfig . master_stormconf_key ( topologyId ) ; String codeKeyBak = StormConfig . master_stormcode_bak_key ( topologyId ) ; // in local mode there is no jar
if ( tmpJarLocation != null ) { setupJar ( tmpJarLocation , topologyId , ... |
public class RequestTemplate { /** * Specify a Query String parameter , with the specified values . Values can be literals or template
* expressions .
* @ param name of the parameter .
* @ param values for this parameter .
* @ return a RequestTemplate for chaining . */
public RequestTemplate query ( String name... | return appendQuery ( name , values , this . collectionFormat ) ; |
public class DrpcFetchHelper { /** * 処理が成功した場合の応答を返す 。
* @ param requestId リクエストID
* @ param resultMessage 応答メッセージ
* @ throws TException 応答を返す際に失敗した場合 */
public void ack ( String requestId , String resultMessage ) throws TException { } } | int index = this . requestedMap . remove ( requestId ) ; DRPCInvocationsClient client = this . clients . get ( index ) ; client . result ( requestId , resultMessage ) ; |
public class AmazonAutoScalingClient { /** * Suspends the specified automatic scaling processes , or all processes , for the specified Auto Scaling group .
* If you suspend either the < code > Launch < / code > or < code > Terminate < / code > process types , it can prevent other
* process types from functioning pr... | request = beforeClientExecution ( request ) ; return executeSuspendProcesses ( request ) ; |
public class LogRepositoryManagerImpl { /** * Deletes the specified directory
* @ param the name of the directory to be deleted */
protected void deleteDirectory ( File directoryName ) { } } | if ( debugLogger . isLoggable ( Level . FINE ) && isDebugEnabled ( ) ) { debugLogger . logp ( Level . FINE , thisClass , "deleteDirectory" , "empty directory " + ( ( directoryName == null ) ? "None" : directoryName . getPath ( ) ) ) ; } if ( AccessHelper . deleteFile ( directoryName ) ) { // If directory is empty , del... |
public class Person { /** * Add this field in the Record ' s field sequence . */
public BaseField setupField ( int iFieldSeq ) { } } | BaseField field = null ; if ( iFieldSeq == 0 ) { field = new CounterField ( this , ID , 8 , null , null ) ; field . setHidden ( true ) ; } // if ( iFieldSeq = = 1)
// field = new RecordChangedField ( this , LAST _ CHANGED , Constants . DEFAULT _ FIELD _ LENGTH , null , null ) ;
// field . setHidden ( true ) ;
// if ( i... |
public class AmazonAppStreamClient { /** * Creates an image builder . An image builder is a virtual machine that is used to create an image .
* The initial state of the builder is < code > PENDING < / code > . When it is ready , the state is < code > RUNNING < / code > .
* @ param createImageBuilderRequest
* @ re... | request = beforeClientExecution ( request ) ; return executeCreateImageBuilder ( request ) ; |
public class Ginv { /** * Add a factor times one column to another column
* @ param matrix
* the matrix to modify
* @ param diag
* coordinate on the diagonal
* @ param fromRow
* first row to process
* @ param col
* column to process
* @ param factor
* factor to multiply */
public static void addColT... | long rows = matrix . getRowCount ( ) ; for ( long row = fromRow ; row < rows ; row ++ ) { matrix . setDouble ( matrix . getDouble ( row , col ) - factor * matrix . getDouble ( row , diag ) , row , col ) ; } |
public class ContactDetail { /** * A list of name - value pairs for parameters required by certain top - level domains .
* @ return A list of name - value pairs for parameters required by certain top - level domains . */
public java . util . List < ExtraParam > getExtraParams ( ) { } } | if ( extraParams == null ) { extraParams = new com . amazonaws . internal . SdkInternalList < ExtraParam > ( ) ; } return extraParams ; |
public class JingleContentDescriptionProvider { /** * Parse a iq / jingle / description / payload - type element .
* @ param parser the input to parse
* @ return a payload type element */
protected JinglePayloadType parsePayload ( final XmlPullParser parser ) { } } | int ptId = 0 ; String ptName ; int ptChannels = 0 ; try { ptId = Integer . parseInt ( parser . getAttributeValue ( "" , "id" ) ) ; } catch ( Exception e ) { } ptName = parser . getAttributeValue ( "" , "name" ) ; try { ptChannels = Integer . parseInt ( parser . getAttributeValue ( "" , "channels" ) ) ; } catch ( Except... |
public class ServletConfig { /** * Sets the startUpWeight . A null value is translated to the default weight .
* @ param weight */
public void setStartUpWeight ( Integer weight ) { } } | // save previous weight to see if we need to try to remove and add it again to the list
this . previousWeight = this . startUpWeight ; if ( weight != null ) { if ( weight . intValue ( ) >= 0 ) this . startUpWeight = weight ; else this . startUpWeight = DEFAULT_STARTUP ; } else { this . startUpWeight = DEFAULT_STARTUP ;... |
public class AnySAMInputFormat { /** * Returns a { @ link BAMRecordReader } or { @ link SAMRecordReader } as
* appropriate , initialized with the given parameters .
* < p > Throws { @ link IllegalArgumentException } if the given input split is
* not a { @ link FileVirtualSplit } ( used by { @ link BAMInputFormat ... | final Path path ; if ( split instanceof FileSplit ) path = ( ( FileSplit ) split ) . getPath ( ) ; else if ( split instanceof FileVirtualSplit ) path = ( ( FileVirtualSplit ) split ) . getPath ( ) ; else throw new IllegalArgumentException ( "split '" + split + "' has unknown type: cannot extract path" ) ; if ( this . c... |
public class AuditSigningImpl { /** * The < code > retrieveSignerCertificate < / code > method retrieves the Administrator ' s certificate used
* to sign the audit records .
* @ return an X509Certificate */
public X509Certificate retrieveSignerCertificate ( ) throws Exception { } } | // TO - DO : The real way is we get the keyStore value from
// the audit Policy , get the audit truststore , retrieve
// the public certificate and extract the public key from
// the public certificate . But since we don ' t have the WCCM
// model change , we ' ll have to hardcode where the truststore is
PublicKey publ... |
public class CmsDbRemovePubLocksApp { /** * Component for remove publish lock surface . < p >
* @ return HorizontalSplitPanel */
private HorizontalSplitPanel getRemovePublishLocksView ( ) { } } | HorizontalSplitPanel sp = new HorizontalSplitPanel ( ) ; sp . setData ( Collections . singletonMap ( A_CmsAttributeAwareApp . ATTR_MAIN_HEIGHT_FULL , Boolean . TRUE ) ) ; sp . setSizeFull ( ) ; CmsDbRemovePublishLocks publishLocksView = new CmsDbRemovePublishLocks ( ) ; sp . setFirstComponent ( new CmsInternalResources... |
public class StringUtils { /** * < p > Compares two CharSequences , and returns the index at which the
* CharSequences begin to differ . < / p >
* < p > For example ,
* { @ code indexOfDifference ( " i am a machine " , " i am a robot " ) - > 7 } < / p >
* < pre >
* StringUtils . indexOfDifference ( null , nul... | if ( cs1 == cs2 ) { return INDEX_NOT_FOUND ; } if ( cs1 == null || cs2 == null ) { return 0 ; } int i ; for ( i = 0 ; i < cs1 . length ( ) && i < cs2 . length ( ) ; ++ i ) { if ( cs1 . charAt ( i ) != cs2 . charAt ( i ) ) { break ; } } if ( i < cs2 . length ( ) || i < cs1 . length ( ) ) { return i ; } return INDEX_NOT_... |
public class StreamUtils { /** * Create a { @ link java . util . stream . Stream } over the elements of the iterables , in order . A list of iterators
* is first created from the iterables , and passed to { @ link # stream ( Iterator [ ] ) } . The iterable elements are not
* loaded into memory first . */
@ SafeVara... | List < Iterator < T > > iterators = Arrays . stream ( iterables ) . map ( Iterable :: iterator ) . collect ( Collectors . toList ( ) ) ; return stream ( iterators . toArray ( new Iterator [ iterables . length ] ) ) ; |
public class ComponentCollision { /** * Remove point and adjacent points depending of the collidable max collision size .
* @ param x The horizontal location .
* @ param y The vertical location .
* @ param collidable The collidable reference . */
private void removePoints ( double x , double y , Collidable collid... | final int minX = ( int ) Math . floor ( x / REDUCE_FACTOR ) ; final int minY = ( int ) Math . floor ( y / REDUCE_FACTOR ) ; final int maxX = ( int ) Math . floor ( ( x + collidable . getMaxWidth ( ) ) / REDUCE_FACTOR ) ; final int maxY = ( int ) Math . floor ( ( y + collidable . getMaxHeight ( ) ) / REDUCE_FACTOR ) ; r... |
public class Token { /** * This method is deprecated . Please use { @ link # parseToken ( byte [ ] , String ) } instead
* Parse a token string into token object
* @ param token the token string
* @ param secret the secret to decrypt the token string
* @ return a token instance parsed from the string */
@ Deprec... | return parseToken ( secret . getBytes ( Charsets . UTF_8 ) , token ) ; |
public class PossibleMemoryBloat { /** * implements the visitor to reset the opcode stack
* @ param obj
* the context object of the currently parsed code block */
@ Override public void visitCode ( Code obj ) { } } | stack . resetForMethodEntry ( this ) ; userValues . clear ( ) ; jaxbContextRegs . clear ( ) ; if ( Values . STATIC_INITIALIZER . equals ( methodName ) || Values . CONSTRUCTOR . equals ( methodName ) ) { return ; } super . visitCode ( obj ) ; for ( Integer pc : jaxbContextRegs . values ( ) ) { bugReporter . reportBug ( ... |
public class ListTranscriptionJobsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListTranscriptionJobsRequest listTranscriptionJobsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listTranscriptionJobsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listTranscriptionJobsRequest . getStatus ( ) , STATUS_BINDING ) ; protocolMarshaller . marshall ( listTranscriptionJobsRequest . getJobNameContains ( ) , JO... |
public class ExpressionEvaluator { /** * Expression evaluator for lang ( ) function */
private Term evalLang ( Function term ) { } } | Term innerTerm = term . getTerm ( 0 ) ; // Create a default return constant : blank language with literal type .
// TODO : avoid this constant wrapping thing
Function emptyString = termFactory . getTypedTerm ( termFactory . getConstantLiteral ( "" , XSD . STRING ) , XSD . STRING ) ; if ( innerTerm instanceof Variable )... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link Agent } { @ code > } } */
@ XmlElementDecl ( namespace = PROV_NS , name = "agent" ) public JAXBElement < Agent > createAgent ( Agent value ) { } } | return new JAXBElement < Agent > ( _Agent_QNAME , Agent . class , null , value ) ; |
public class LoadBalancerProbesInner { /** * Gets load balancer probe .
* @ param resourceGroupName The name of the resource group .
* @ param loadBalancerName The name of the load balancer .
* @ param probeName The name of the probe .
* @ throws IllegalArgumentException thrown if parameters fail the validation... | return getWithServiceResponseAsync ( resourceGroupName , loadBalancerName , probeName ) . map ( new Func1 < ServiceResponse < ProbeInner > , ProbeInner > ( ) { @ Override public ProbeInner call ( ServiceResponse < ProbeInner > response ) { return response . body ( ) ; } } ) ; |
public class InfluxDBResultMapper { /** * Process a { @ link QueryResult } object returned by the InfluxDB client inspecting the internal
* data structure and creating the respective object instances based on the Class passed as
* parameter .
* @ param queryResult the InfluxDB result object
* @ param clazz the ... | return toPOJO ( queryResult , clazz , TimeUnit . MILLISECONDS ) ; |
public class CropDimension { /** * Get crop dimension from crop string .
* Please note : Crop string contains not width / height as 3rd / 4th parameter but right , bottom .
* @ param cropString Cropping string from CQ5 smartimage widget
* @ return Crop dimension instance
* @ throws IllegalArgumentException if c... | if ( StringUtils . isEmpty ( cropString ) ) { throw new IllegalArgumentException ( "Invalid crop string: '" + cropString + "'." ) ; } // strip off optional size parameter after " / "
String crop = cropString ; if ( StringUtils . contains ( crop , "/" ) ) { crop = StringUtils . substringBefore ( crop , "/" ) ; } String ... |
public class ComputationGraph { /** * Return the input size ( number of inputs ) for the specified layer . < br >
* Note that the meaning of the " input size " can depend on the type of layer . For example : < br >
* - DenseLayer , OutputLayer , etc : the feature vector size ( nIn configuration option ) < br >
* ... | Layer l = getLayer ( layerName ) ; if ( l == null ) { throw new IllegalArgumentException ( "No layer with name \"" + layerName + "\" exists" ) ; } org . deeplearning4j . nn . conf . layers . Layer conf = l . conf ( ) . getLayer ( ) ; if ( conf == null || ! ( conf instanceof FeedForwardLayer ) ) { return 0 ; } FeedForwa... |
public class JKIOUtil { /** * Write data to temp file .
* @ param data String
* @ param ext the ext
* @ return File */
public static File writeDataToTempFile ( final String data , final String ext ) { } } | try { final File file = createTempFile ( ext ) ; final PrintWriter out = new PrintWriter ( new FileOutputStream ( file ) ) ; out . print ( data ) ; // out . flush ( ) ;
out . close ( ) ; // file . deleteOnExit ( ) ;
return file ; } catch ( IOException e ) { JKExceptionUtil . handle ( e ) ; return null ; } |
public class ReceiveMessageActionParser { /** * Adds information about the validation of the message against a certain schema to the context
* @ param messageElement The message element to get the configuration from
* @ param context The context to set the schema validation configuration to */
private void addSchem... | String schemaValidation = messageElement . getAttribute ( "schema-validation" ) ; if ( StringUtils . hasText ( schemaValidation ) ) { context . setSchemaValidation ( Boolean . valueOf ( schemaValidation ) ) ; } String schema = messageElement . getAttribute ( "schema" ) ; if ( StringUtils . hasText ( schema ) ) { contex... |
public class CXFEndpointProvider { /** * Maps a transportId to its corresponding TransportType .
* @ param transportId
* @ return */
private static TransportType map2TransportType ( String transportId ) { } } | TransportType type ; if ( CXF_HTTP_TRANSPORT_ID . equals ( transportId ) || SOAP_HTTP_TRANSPORT_ID . equals ( transportId ) ) { type = TransportType . HTTP ; } else { type = TransportType . OTHER ; } return type ; |
public class UserPoolDescriptionTypeMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UserPoolDescriptionType userPoolDescriptionType , ProtocolMarshaller protocolMarshaller ) { } } | if ( userPoolDescriptionType == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( userPoolDescriptionType . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( userPoolDescriptionType . getName ( ) , NAME_BINDING ) ; protocolMarshaller ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.