signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TxXATerminator { /** * / * ( non - Javadoc ) * @ see javax . resource . spi . XATerminator # commit ( javax . transaction . xa . Xid , boolean ) */ public void commit ( Xid xid , boolean onePhase ) throws XAException { } }
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "commit" , new Object [ ] { xid , onePhase } ) ; final JCATranWrapper txWrapper ; try { validateXid ( xid ) ; // Get the wrapper adding an association in the process txWrapper = getTxWrapper ( xid , true ) ; } catch ( XAException e ) { if ( tc . isEntryEnabled ( ) ) Tr ....
public class WalkerFactory { /** * Tell if the given axis goes downword . Bogus name , if you can think of * a better one , please do tell . This really has to do with inverting * attribute axis . * @ param axis One of Axis . XXX . * @ return true if the axis is not a child axis and does not go up from * the ...
return ( ( Axis . DESCENDANTORSELF == axis ) || ( Axis . DESCENDANT == axis ) || ( Axis . FOLLOWING == axis ) // | | ( Axis . FOLLOWINGSIBLING = = axis ) || ( Axis . PRECEDING == axis ) // | | ( Axis . PRECEDINGSIBLING = = axis ) ) ;
public class LinkedDataFragmentBase { /** * Adds an RDF description of page links to the given RDF model . * This method may be overridden in subclasses . * @ param model */ public void addControls ( final Model model ) { } }
final URIBuilder pagedURL ; try { pagedURL = new URIBuilder ( fragmentURL ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( e ) ; } final Resource fragmentId = model . createResource ( fragmentURL ) ; final Resource firstPageId = model . createResource ( pagedURL . setParameter ( ILinkedDataFr...
public class GetServiceGraphRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetServiceGraphRequest getServiceGraphRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getServiceGraphRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getServiceGraphRequest . getStartTime ( ) , STARTTIME_BINDING ) ; protocolMarshaller . marshall ( getServiceGraphRequest . getEndTime ( ) , ENDTIME_BINDING ) ; pr...
public class CopyableFile { /** * Compute the correct { @ link OwnerAndPermission } obtained from replicating source owner and permissions and applying * the { @ link PreserveAttributes } rules for fromPath and every ancestor up to but excluding toPath . * @ return A list of the computed { @ link OwnerAndPermission...
if ( ! PathUtils . isAncestor ( toPath , fromPath ) ) { throw new IOException ( String . format ( "toPath %s must be an ancestor of fromPath %s." , toPath , fromPath ) ) ; } List < OwnerAndPermission > ownerAndPermissions = Lists . newArrayList ( ) ; Path currentPath = fromPath ; while ( PathUtils . isAncestor ( toPath...
public class SelectRestClauseParser { /** * Parse select rest . */ public final void parse ( ) { } }
Collection < Keyword > unsupportedRestKeywords = new LinkedList < > ( ) ; unsupportedRestKeywords . addAll ( Arrays . asList ( DefaultKeyword . UNION , DefaultKeyword . INTERSECT , DefaultKeyword . EXCEPT , DefaultKeyword . MINUS ) ) ; unsupportedRestKeywords . addAll ( Arrays . asList ( getUnsupportedKeywordsRest ( ) ...
public class WeakFastHashMap { /** * Return < code > true < / code > if this map contains a mapping for the * specified key . * @ param key the key to be searched for * @ return true if the map contains the key */ @ Override public boolean containsKey ( Object key ) { } }
if ( fast ) { return ( map . containsKey ( key ) ) ; } else { synchronized ( map ) { return ( map . containsKey ( key ) ) ; } }
public class LogFactory { /** * Configure logging provider from configuration object . Configuration object format is entirely under provider control ; * this method just pass it as it is . * If provider configuration fails , most probably because of bad configuration , reset provider to default . * @ param confi...
try { provider . config ( config ) ; } catch ( Throwable t ) { provider = new DefaultLogProvider ( ) ; Log log = provider . getLogger ( LogFactory . class . getName ( ) ) ; log . error ( "Fail on logger provider configuration. Reset logging system to default provider." ) ; log . dump ( "Logging configuration stack dump...
public class SearchAddressBooksResult { /** * The address books that meet the specified set of filter criteria , in sort order . * @ param addressBooks * The address books that meet the specified set of filter criteria , in sort order . */ public void setAddressBooks ( java . util . Collection < AddressBookData > a...
if ( addressBooks == null ) { this . addressBooks = null ; return ; } this . addressBooks = new java . util . ArrayList < AddressBookData > ( addressBooks ) ;
public class HypergraphEdge { /** * Computes the center of gravity for this edge ( see Aloul , Markov , and Sakallah ) . * @ param nodeOrdering the node ordering for which the COG is computed * @ return the center of gravity for this edge */ public double centerOfGravity ( final Map < HypergraphNode < T > , Integer...
int cog = 0 ; for ( final HypergraphNode < T > node : this . nodes ) { final Integer level = nodeOrdering . get ( node ) ; if ( level == null ) throw new IllegalStateException ( "Could not find node " + node + " in the node ordering." ) ; cog += level ; } return ( double ) cog / this . nodes . size ( ) ;
public class AbstractJsonDeserializer { /** * Convenience method for subclasses . * @ param paramName the name of the parameter * @ param errorMessage the errormessage to add to the exception if the param does not exist . * @ return a stringparameter with given name . If it does not exist and the errormessage is ...
return getBooleanParam ( paramName , errorMessage , ( Map < String , Object > ) inputParams . get ( ) ) ;
public class GrpcServerFactoryAutoConfiguration { /** * The server lifecycle bean for netty based server . * @ param factory The factory used to create the lifecycle . * @ return The inter - process server lifecycle bean . */ @ ConditionalOnMissingBean @ ConditionalOnClass ( name = { } }
"io.netty.channel.Channel" , "io.grpc.netty.NettyServerBuilder" } ) @ Bean public GrpcServerLifecycle nettyGrpcServerLifecycle ( final NettyGrpcServerFactory factory ) { return new GrpcServerLifecycle ( factory ) ;
public class Interval { /** * parse when there are two date - times */ private static Interval parseEndDateTime ( Instant start , ZoneOffset offset , CharSequence endStr ) { } }
try { TemporalAccessor temporal = DateTimeFormatter . ISO_DATE_TIME . parseBest ( endStr , OffsetDateTime :: from , LocalDateTime :: from ) ; if ( temporal instanceof OffsetDateTime ) { OffsetDateTime odt = ( OffsetDateTime ) temporal ; return Interval . of ( start , odt . toInstant ( ) ) ; } else { // infer offset fro...
public class OutJampWebSocket { /** * Sends a message to a given address */ public void query ( WebSocket session , HeadersAmp headers , String from , long qid , String to , String methodName , PodRef podCaller , Object ... args ) throws IOException { } }
/* try ( Writer out = session . getBasicRemote ( ) . getSendWriter ( ) ) { init ( out ) ; query ( headers , from , qid , to , methodName , args ) ; */
public class lbwlm { /** * Use this API to delete lbwlm resources of given names . */ public static base_responses delete ( nitro_service client , String wlmname [ ] ) throws Exception { } }
base_responses result = null ; if ( wlmname != null && wlmname . length > 0 ) { lbwlm deleteresources [ ] = new lbwlm [ wlmname . length ] ; for ( int i = 0 ; i < wlmname . length ; i ++ ) { deleteresources [ i ] = new lbwlm ( ) ; deleteresources [ i ] . wlmname = wlmname [ i ] ; } result = delete_bulk_request ( client...
public class ApiOvhOrder { /** * Create order * REST : POST / order / email / exchange / { organizationName } / service / { exchangeService } / accountUpgrade / { duration } * @ param newQuota [ required ] New storage quota for that account * @ param primaryEmailAddress [ required ] The account you wish to upgrad...
String qPath = "/order/email/exchange/{organizationName}/service/{exchangeService}/accountUpgrade/{duration}" ; StringBuilder sb = path ( qPath , organizationName , exchangeService , duration ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "newQuota" , newQuota ) ; addBody ( o , ...
public class CustomDictionary { /** * 最长匹配 * @ param text 文本 * @ param processor 处理器 */ public static void parseLongestText ( String text , AhoCorasickDoubleArrayTrie . IHit < CoreDictionary . Attribute > processor ) { } }
if ( trie != null ) { final int [ ] lengthArray = new int [ text . length ( ) ] ; final CoreDictionary . Attribute [ ] attributeArray = new CoreDictionary . Attribute [ text . length ( ) ] ; char [ ] charArray = text . toCharArray ( ) ; DoubleArrayTrie < CoreDictionary . Attribute > . Searcher searcher = dat . getSearc...
public class AuthCredentialToSubjectResolverManager { /** * Resolve the { @ link IAuthSubject } from the specified credentials . * @ param aCredentials * The credentials to be transformed . * @ return < code > null < / code > if no subject matches the specified credentials . */ @ Nullable public static IAuthSubje...
for ( final IAuthCredentialToSubjectResolverSPI aHdl : s_aHdlList ) if ( aHdl . supportsCredentials ( aCredentials ) ) { final IAuthSubject aSubject = aHdl . getSubjectFromCredentials ( aCredentials ) ; if ( aSubject != null ) return aSubject ; } return null ;
public class BinarySearch { /** * Search for the value in the reverse sorted short array and return the index . * @ param shortArray array that we are searching in . * @ param value value that is being searched in the array . * @ return the index where the value is found in the array , else - 1. */ public static ...
int start = 0 ; int end = shortArray . length - 1 ; int middle = 0 ; while ( start <= end ) { middle = ( start + end ) >> 1 ; if ( value == shortArray [ middle ] ) { return middle ; } if ( value > shortArray [ middle ] ) { end = middle - 1 ; } else { start = middle + 1 ; } } return - 1 ;
public class AbstractHttpStack { /** * Reads the contents of HttpEntity into a byte [ ] . */ public final byte [ ] getContentBytes ( HttpURLConnection connection , ByteArrayPool byteArrayPool ) throws IOException { } }
InputStream inputStream ; try { inputStream = connection . getInputStream ( ) ; } catch ( IOException ioe ) { inputStream = connection . getErrorStream ( ) ; if ( inputStream == null ) { throw ioe ; } } return getContentBytes ( inputStream , byteArrayPool , connection . getContentLength ( ) ) ;
public class DRL6Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 325:1 : inExpression returns [ BaseDescr result ] : left = relationalExpression ( ( not _ key in _ key ) = > not _ key in = in _ key LEFT _ PAREN e1 = expression ( COMMA e2 = expression ) * RIGHT _ PAREN...
BaseDescr result = null ; BaseDescr left = null ; ParserRuleReturnScope e1 = null ; ParserRuleReturnScope e2 = null ; ConstraintConnectiveDescr descr = null ; BaseDescr leftDescr = null ; BindingDescr binding = null ; try { // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 328:3 : ( lef...
public class MariaDbX509KeyManager { /** * Search aliases corresponding to algorithms and issuers . * @ param keyTypes list of algorithms * @ param issuers list of issuers ; * @ return list of corresponding aliases */ private ArrayList < String > searchAccurateAliases ( String [ ] keyTypes , Principal [ ] issuers...
if ( keyTypes == null || keyTypes . length == 0 ) { return null ; } ArrayList < String > accurateAliases = new ArrayList < > ( ) ; for ( Map . Entry < String , KeyStore . PrivateKeyEntry > mapEntry : privateKeyHash . entrySet ( ) ) { Certificate [ ] certs = mapEntry . getValue ( ) . getCertificateChain ( ) ; String alg...
public class DefaultNamespaceService { /** * { @ inheritDoc } */ @ Override public void compileNamespace ( String resourceLocation ) throws ResourceDownloadError , IndexingFailure { } }
if ( resourceLocation == null ) { throw new InvalidArgument ( "resourceLocation" , resourceLocation ) ; } synchronized ( resourceLocation ) { // compile final String indexPath = doCompile ( resourceLocation ) ; // close opened namespace index closeNamespace ( resourceLocation ) ; // reopen namespace index openNamespace...
public class SmartLdapGroupStore { /** * Returns an < code > Iterator < / code > over the < code > Collection < / code > of < code > IEntityGroups * < / code > that are members of this < code > IEntityGroup < / code > . * @ return java . util . Iterator * @ param group org . apereo . portal . groups . IEntityGrou...
if ( isTreeRefreshRequired ( ) ) { refreshTree ( ) ; } log . debug ( "Invoking findMemberGroups() for group: {}" , group . getLocalKey ( ) ) ; List < IEntityGroup > rslt = new ArrayList < > ( ) ; List < String > list = groupsTree . getChildren ( ) . get ( group . getLocalKey ( ) ) ; if ( list != null ) { // should onl...
public class DialogBuilder { /** * makes a String unique by appending a numerical suffix * @ param _ xElementContainer the com . sun . star . container . XNameAccess container * that the new Element is going to be inserted to * @ param _ sElementName the StemName of the Element */ public static String createUniqu...
boolean bElementexists = true ; int i = 1 ; String sIncSuffix = "" ; String BaseName = _sElementName ; while ( bElementexists ) { bElementexists = _xElementContainer . hasByName ( _sElementName ) ; if ( bElementexists ) { i += 1 ; _sElementName = BaseName + Integer . toString ( i ) ; } } return _sElementName ;
public class SoyExpression { /** * Returns an Expression of a non - null { @ link SoyValueProvider } providing this value . */ public Expression boxAsSoyValueProvider ( ) { } }
if ( soyType ( ) . equals ( NullType . getInstance ( ) ) ) { if ( delegate == NULL || delegate == NULL_BOXED ) { return FieldRef . NULL_PROVIDER . accessor ( ) ; } // otherwise this expression might have side effects , evaluate it as a statement then return // the NULL _ PROVIDER return toStatement ( ) . then ( FieldRe...
public class PathService { /** * Returns a path with the given root ( or no root , if null ) and the given names . */ public JimfsPath createPath ( @ Nullable Name root , Iterable < Name > names ) { } }
ImmutableList < Name > nameList = ImmutableList . copyOf ( Iterables . filter ( names , NOT_EMPTY ) ) ; if ( root == null && nameList . isEmpty ( ) ) { // ensure the canonical empty path ( one empty string name ) is used rather than a path with // no root and no names return emptyPath ( ) ; } return createPathInternal ...
public class Splash { /** * Parse the param line and add it to this properties object . * ( ie . , key = value ) . * @ properties The properties object to add this params to . * @ param strParam param line in the format param = value */ public static String getParam ( String [ ] args , String strParam ) { } }
if ( ( args != null ) && ( strParam != null ) ) { for ( int i = 0 ; i < args . length ; i ++ ) { if ( args [ i ] != null ) { int iIndex = args [ i ] . indexOf ( '=' ) ; if ( iIndex != - 1 ) { if ( strParam . equalsIgnoreCase ( args [ i ] . substring ( 0 , iIndex ) ) ) return args [ i ] . substring ( iIndex + 1 , args [...
public class UpdateablePageCollection { /** * Removes the given PageWrapper from this PageCollection . * @ param page The PageWrapper to remove . This page will have its offset set to PagePointer . NO _ OFFSET . */ @ Override synchronized void remove ( PageWrapper page ) { } }
super . remove ( page ) ; if ( this . incompleteNewPageOffset == page . getOffset ( ) ) { this . incompleteNewPageOffset = PagePointer . NO_OFFSET ; } this . deletedPageOffsets . add ( page . getOffset ( ) ) ; page . setOffset ( PagePointer . NO_OFFSET ) ;
public class syslog_ui_cmd { /** * Use this API to fetch filtered set of syslog _ ui _ cmd resources . * filter string should be in JSON format . eg : " vm _ state : DOWN , name : [ a - z ] + " */ public static syslog_ui_cmd [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
syslog_ui_cmd obj = new syslog_ui_cmd ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; syslog_ui_cmd [ ] response = ( syslog_ui_cmd [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class AWSResourceGroupsTaggingAPIClient { /** * Returns all tag keys in the specified region for the AWS account . * @ param getTagKeysRequest * @ return Result of the GetTagKeys operation returned by the service . * @ throws InvalidParameterException * A parameter is missing or a malformed string or inv...
request = beforeClientExecution ( request ) ; return executeGetTagKeys ( request ) ;
public class DefaultExternalContentManager { /** * Determines the mime type of a given file * @ param file for which the mime type needs to be detected * @ return the detected mime type */ private String determineMimeType ( File file ) { } }
String mimeType = MIME_MAP . getContentType ( file ) ; // if mimeType detection failed , fall back to the default if ( mimeType == null || mimeType . equalsIgnoreCase ( "" ) ) { mimeType = DEFAULT_MIMETYPE ; } return mimeType ;
public class FSEditLog { /** * Create empty edit log files . * Initialize the output stream for logging . * @ throws IOException */ synchronized void open ( ) throws IOException { } }
if ( syncer == null ) { syncer = new SyncThread ( ) ; syncThread = new Thread ( syncer ) ; syncThread . start ( ) ; } if ( state != State . BETWEEN_LOG_SEGMENTS ) throw new IOException ( "Bad state: " + state ) ; startLogSegment ( getLastWrittenTxId ( ) + 1 , true ) ; if ( state != State . IN_SEGMENT ) throw new IOExce...
public class AdditionalAnswers { /** * An answer that directly forwards the calls to the delegate . The delegate may or may not be of the same type as the mock . * If the type is different , a matching method needs to be found on delegate type otherwise an exception is thrown . * Useful for spies or partial mocks o...
return ( Answer < T > ) new ForwardsInvocations ( delegate ) ;
public class SocialNetworkUtilities { /** * Get distance between geographical coordinates * @ param point1 Point1 * @ param point2 Point2 * @ return Distance ( double ) */ public static Double getDistanceBetweenCoordinates ( Tuple2 < Double , Double > point1 , Tuple2 < Double , Double > point2 ) { } }
// sqrt ( ( x2 - x1 ) ^ 2 + ( y2 - y2 ) ^ 2 ) Double xDiff = point1 . _1 ( ) - point2 . _1 ( ) ; Double yDiff = point1 . _2 ( ) - point2 . _2 ( ) ; return Math . sqrt ( xDiff * xDiff + yDiff * yDiff ) ;
public class UploadServlet { /** * Process an HTML get or post . * @ exceptionServletException From inherited class . * @ exceptionIOException From inherited class . */ public void doProcess ( HttpServletRequest req , HttpServletResponse res ) throws ServletException , IOException { } }
PrintStream out = System . out ; Properties properties = new Properties ( ) ; String strTargetDirectory = this . getDestDirectory ( ) ; String strReceiveMessage = gstrBlank ; try { MultipartRequest multi = new MultipartRequest ( req , strTargetDirectory , MAX_SIZE ) ; this . parseProperties ( properties , multi ) ; if ...
public class CharacterStreamWritePool { /** * Write a single character . */ public ISynchronizationPoint < IOException > write ( char c ) { } }
if ( ! ( stream instanceof ICharacterStream . Writable . Buffered ) ) return write ( new char [ ] { c } , 0 , 1 ) ; ISynchronizationPoint < IOException > last = lastWrite ; if ( last . isUnblocked ( ) ) { lastWrite = ( ( ICharacterStream . Writable . Buffered ) stream ) . writeAsync ( c ) ; return lastWrite ; } Synchro...
public class MatchParserImpl { /** * BetweenPredicate : : = Expression ( < NOT > ) ? < BETWEEN > Expression < AND > Expression */ final public Selector BetweenPredicate ( ) throws ParseException { } }
Selector expr1 , expr2 , expr3 ; boolean neg = false ; expr1 = Expression ( ) ; switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case NOT : jj_consume_token ( NOT ) ; neg = true ; break ; default : jj_la1 [ 16 ] = jj_gen ; ; } jj_consume_token ( BETWEEN ) ; expr2 = Expression ( ) ; jj_consume_token ( AND ) ; expr3 ...
public class FnObject { /** * Determines whether the result of executing the specified function * on the target object and the specified object parameter are equal * in value , this is , whether < tt > functionResult . compareTo ( object ) = = 0 < / tt > . * Both the function result and the specified object have ...
return FnFunc . chain ( by , eqValue ( object ) ) ;
public class IncrementalArrayData { /** * Loads each increment until full range has been loading , halting in between increment until instructed to * proceed . */ private void loadLoop ( ) throws InterruptedException { } }
boolean firstItem = true ; boolean moreAvailable = true ; // Loop until all loaded . while ( moreAvailable ) { // Thread interruptions terminate the loop . if ( currentThread ( ) . isInterrupted ( ) ) { throw new InterruptedException ( ) ; } try { setLoading ( true ) ; // Load next increment of items . final Result < ?...
public class IntTuples { /** * Lexicographically increment the given tuple in the given range , and * store the result in the given result tuple . It is assumed that the * elements of the given tuple are * { @ link # areElementsGreaterThanOrEqual ( IntTuple , IntTuple ) greater than * or equal to } the values i...
Utils . checkForEqualSize ( t , min ) ; Utils . checkForEqualSize ( t , max ) ; Utils . checkForEqualSize ( t , result ) ; if ( result != t ) { result . set ( t ) ; } return incrementLexicographically ( result , min , max , result . getSize ( ) - 1 ) ;
public class XPathParser { /** * Insert room for operation . This will NOT set * the length value of the operation , but will update * the length value for the total expression . * @ param pos The position where the op is to be inserted . * @ param length The length of the operation space in the op map . * @ ...
int totalLen = m_ops . getOp ( OpMap . MAPINDEX_LENGTH ) ; for ( int i = totalLen - 1 ; i >= pos ; i -- ) { m_ops . setOp ( i + length , m_ops . getOp ( i ) ) ; } m_ops . setOp ( pos , op ) ; m_ops . setOp ( OpMap . MAPINDEX_LENGTH , totalLen + length ) ;
public class A_CmsJspValueWrapper { /** * Parses the wrapped value to a Long integer . < p > * Note that the result is an Object of type { @ link java . lang . Long } , * so in case the wrapped value can not be converted to a number , < code > null < / code > is returned . * This means you can check for an < code...
if ( m_long == null ) { try { m_long = new Long ( Long . parseLong ( getToString ( ) ) ) ; } catch ( NumberFormatException e ) { LOG . info ( e . getLocalizedMessage ( ) ) ; } } return m_long ;
public class RelationalOperations { /** * Returns true if polyline _ a contains envelope _ b . */ private static boolean polylineContainsEnvelope_ ( Polyline polyline_a , Envelope envelope_b , double tolerance , ProgressTracker progress_tracker ) { } }
Envelope2D env_a = new Envelope2D ( ) , env_b = new Envelope2D ( ) ; envelope_b . queryEnvelope2D ( env_b ) ; polyline_a . queryEnvelope2D ( env_a ) ; if ( ! envelopeInfContainsEnvelope_ ( env_a , env_b , tolerance ) ) return false ; if ( env_b . getHeight ( ) > tolerance && env_b . getWidth ( ) > tolerance ) return fa...
public class EmailAutoCompleteTextView { /** * Sets the visibility of the clear button . The clear button must also be enabled for it to be visible . * @ see { @ link # setClearButtonEnabled ( boolean ) } * @ param visible true if the clear button should be visible , otherwise , false . */ public void setClearVisib...
if ( mClearButtonEnabled ) { final Drawable d = ( visible ? mTappableDrawable : null ) ; final Drawable [ ] drawables = getCompoundDrawables ( ) ; if ( drawables != null ) { setCompoundDrawables ( drawables [ 0 ] , drawables [ 1 ] , d , drawables [ 3 ] ) ; } else { Log . w ( TAG , "No clear button is available." ) ; } ...
public class CleaneLingStyleSolver { /** * Initializes the internal solver state . */ private void initialize ( ) { } }
this . level = 0 ; this . next = 0 ; this . empty = null ; this . scoreIncrement = 1 ; this . ignore = null ; this . vars = new LNGVector < > ( ) ; this . vals = new LNGByteVector ( ) ; this . phases = new LNGByteVector ( ) ; this . decisions = new LNGDoublePriorityQueue ( ) ; this . control = new LNGVector < > ( ) ; t...
public class S3UtteranceReader { /** * { @ inheritDoc } */ @ Override public InputStream read ( final String locale ) { } }
Validate . notNull ( locale , "Locale must not be blank." ) ; final String resourcePath = getLeadingPath ( ) + locale + getResourceLocation ( ) ; final S3Object s3Object = s3Client . getObject ( bucketName , resourcePath ) ; Validate . notNull ( s3Object , "Resource " + resourcePath + " does not exist in bucket with na...
public class DatabaseRecordIterator { /** * Fetch the next record . */ private void fetchRecord ( ) throws SQLException { } }
if ( rs . next ( ) ) { long revision = rs . getLong ( 1 ) ; String journalId = rs . getString ( 2 ) ; String producerId = rs . getString ( 3 ) ; DataInputStream dataIn = new DataInputStream ( rs . getBinaryStream ( 4 ) ) ; record = new ReadRecord ( journalId , producerId , revision , dataIn , 0 , resolver , npResolver ...
public class EnumKeyDeserializer { /** * { @ inheritDoc } */ @ Override protected E doDeserialize ( String key , JsonDeserializationContext ctx ) { } }
try { return Enum . valueOf ( enumClass , key ) ; } catch ( IllegalArgumentException ex ) { if ( ctx . isReadUnknownEnumValuesAsNull ( ) ) { return null ; } throw ex ; }
public class XMLWriter { /** * Escape a string to include it in XML ( this is automatically called by other methods of this class when needed ) . */ public static String escape ( CharSequence s ) { } }
StringBuilder str = new StringBuilder ( ) ; int len = s . length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { char c = s . charAt ( i ) ; if ( c == '&' ) str . append ( "&amp;" ) ; else if ( c == '"' ) str . append ( "&quot;" ) ; else if ( c == '\'' ) str . append ( "&apos;" ) ; else if ( c == '>' ) str . append ( "&gt;"...
public class BranchingEnumerator { /** * Move the pointer one step forward . Move is made exactly matching the corresponding nucleotide in the reference * sequence , so this method prevents branching in the current position . */ private void move1 ( ) { } }
if ( node == null ) return ; if ( position >= reference . size ( ) ) { node = null ; return ; } node = node . links [ reference . codeAt ( position ++ ) ] ;
public class CloudRedisClient { /** * Deletes a specific Redis instance . Instance stops serving and data is deleted . * < p > Sample code : * < pre > < code > * try ( CloudRedisClient cloudRedisClient = CloudRedisClient . create ( ) ) { * InstanceName name = InstanceName . of ( " [ PROJECT ] " , " [ LOCATION ]...
DeleteInstanceRequest request = DeleteInstanceRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return deleteInstanceAsync ( request ) ;
public class OtpErlangList { /** * Get all the elements from the list as an array . * @ return an array containing all of the list ' s elements . */ public OtpErlangObject [ ] elements ( ) { } }
if ( arity ( ) == 0 ) { return NO_ELEMENTS ; } final OtpErlangObject [ ] res = new OtpErlangObject [ arity ( ) ] ; System . arraycopy ( elems , 0 , res , 0 , res . length ) ; return res ;
public class DateUtils { /** * Format date by given pattern . * @ param date date to be handled . * @ param pattern pattern use to handle given date . * @ return a string object of format date by given pattern . */ public static String getDateFormat ( final Date date , final String pattern ) { } }
SimpleDateFormat simpleDateFormat = buildDateFormat ( pattern ) ; return simpleDateFormat . format ( date ) ;
public class Examples { /** * / * cancel mutualfunds order */ public void cancelMFOrder ( KiteConnect kiteConnect ) throws KiteException , IOException { } }
kiteConnect . cancelMFOrder ( "668604240868430" ) ; System . out . println ( "cancel order successful" ) ;
public class RadioButtonGroup { /** * This method will add a radio button to the group with the given value . The value must be unique for the group . * The radio button returned by this method must be added to the required location in the UI Component tree . * The radio button group uses the { @ link String } repr...
WRadioButton radioButton = new WRadioButton ( this ) ; radioButton . setData ( value ) ; return radioButton ;
public class AmazonCodeDeployClient { /** * < note > * The newer BatchGetDeploymentTargets should be used instead because it works with all compute types . * < code > ListDeploymentInstances < / code > throws an exception if it is used with a compute platform other than * EC2 / On - premises or AWS Lambda . * <...
request = beforeClientExecution ( request ) ; return executeListDeploymentInstances ( request ) ;
public class JsonJacksonFormat { /** * Parses an object from a string . */ public < T > T read ( final String s , final DataTypeDescriptor < T > descriptor ) throws Exception { } }
if ( descriptor == null ) throw new NullPointerException ( "descriptor" ) ; if ( s == null ) return null ; JsonParser parser = factory . createParser ( s ) ; return read ( parser , descriptor ) ;
public class FlashImpl { /** * Saves the value of setRedirect ( ) for the next request , if it was true */ private void _saveRedirectValue ( FacesContext facesContext ) { } }
ExternalContext externalContext = facesContext . getExternalContext ( ) ; // This request contains a redirect . This condition is in general // triggered by a NavigationHandler . After a redirect all request scope // values get lost , so in order to preserve this value we need to // pass it between request . One strate...
public class ReadAheadQueue { /** * Notification that a full message has been received . Counters should be updated . * @ param queueData */ private void notifyMessageReceived ( QueueData queueData ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "notifyMessageReceived" , queueData ) ; long messageLength = queueData . getMessageLength ( ) ; if ( trackBytes ) { bytesReceivedSinceLastRequestForMsgs += messageLength ; } // Update the message arrival time queueDat...
public class AbstractFxmlView { /** * Gets the URL resource . This will be derived from applied annotation value * or from naming convention . * @ param annotation * the annotation as defined by inheriting class . * @ return the URL resource */ private URL getURLResource ( final FXMLView annotation ) { } }
if ( annotation != null && ! annotation . value ( ) . equals ( "" ) ) { return getClass ( ) . getResource ( annotation . value ( ) ) ; } else { return getClass ( ) . getResource ( getFxmlPath ( ) ) ; }
public class AnalysisResults { /** * Get the results of the i - th performed run of the given search when solving the given problem . * @ param problemID ID of the problem * @ param searchID ID of the applied search * @ param i search run index * @ return results of i - th run of the given search when solving t...
if ( ! results . containsKey ( problemID ) ) { throw new UnknownIDException ( "Unknown problem ID " + problemID + "." ) ; } if ( ! results . get ( problemID ) . containsKey ( searchID ) ) { throw new UnknownIDException ( "Unknown search ID " + searchID + " for problem " + problemID + "." ) ; } return results . get ( pr...
public class MemcachedNodesManager { /** * Changes the sessionId by setting the given jvmRoute and replacing the memcachedNodeId if it ' s currently * set to a failoverNodeId . * @ param sessionId the current session id * @ param jvmRoute the new jvmRoute to set . * @ return the session id with maybe new jvmRou...
final String newSessionId = jvmRoute != null && ! jvmRoute . trim ( ) . isEmpty ( ) ? _sessionIdFormat . changeJvmRoute ( sessionId , jvmRoute ) : _sessionIdFormat . stripJvmRoute ( sessionId ) ; if ( isEncodeNodeIdInSessionId ( ) ) { final String nodeId = _sessionIdFormat . extractMemcachedId ( newSessionId ) ; if ( _...
public class CreateJobRequest { /** * The default arguments for this job . * You can specify arguments here that your own job - execution script consumes , as well as arguments that AWS Glue * itself consumes . * For information about how to specify and consume your own Job arguments , see the < a * href = " ht...
setDefaultArguments ( defaultArguments ) ; return this ;
public class FileStreamStore { /** * Write from buf to file * @ param offset of block * @ param buf ByteBuffer to write * @ return long offset where buffer begin was write or - 1 if error */ public synchronized long write ( final ByteBuffer buf ) { } }
if ( ! validState ) { throw new InvalidStateException ( ) ; } final int packet_size = ( HEADER_LEN + buf . limit ( ) + FOOTER_LEN ) ; // short + int + data + byte final boolean useDirectIO = ( packet_size > ( 1 << bits ) ) ; try { if ( useDirectIO ) { log . warn ( "WARN: usingDirectIO packet size is greater (" + packet...
public class DoradusServer { /** * Write version to local file */ private static void writeVersionToVerFile ( String version ) throws IOException { } }
// declared in a try - with - resource statement , it will be closed regardless of it completes normally or not try ( PrintWriter writer = new PrintWriter ( new File ( DoradusServer . class . getResource ( "/" + VERSION_FILE ) . getPath ( ) ) ) ) { writer . write ( version ) ; }
public class AVIMConversationEventHandler { /** * 当前用户被禁言通知处理函数 * @ param client 聊天客户端 * @ param conversation 对话 * @ param operator 操作者 id */ public void onMuted ( AVIMClient client , AVIMConversation conversation , String operator ) { } }
LOGGER . d ( "Notification --- " + " you are muted by " + operator ) ;
public class URIBaseMethods { /** * Sets a path ( s ) for the URI . * Note : File separator is handled in this method * and should not be passed as parameter . * @ return The updated { @ link T } object . */ public T path ( String path ) { } }
if ( path . length ( ) == 0 ) { this . path += encodePath ( path ) ; } else { this . path += "/" + encodePath ( path ) ; } return returnThis ( ) ;
public class Matrix4x3f { /** * Apply rotation of < code > angles . x < / code > radians about the X axis , followed by a rotation of < code > angles . y < / code > radians about the Y axis and * followed by a rotation of < code > angles . z < / code > radians about the Z axis . * When used with a right - handed co...
return rotateXYZ ( angles . x , angles . y , angles . z ) ;
public class NeuralNetwork { /** * This method matches the exact operation of gemv _ row _ optimized in order to match all the bits */ public double [ ] formNNInputs ( ) { } }
double [ ] input2ActFun = new double [ _outSize ] ; int cols = _inputs . length ; int rows = input2ActFun . length ; int extra = cols - cols % 8 ; int multiple = ( cols / 8 ) * 8 - 1 ; int idx = 0 ; for ( int row = 0 ; row < rows ; row ++ ) { double psum0 = 0 , psum1 = 0 , psum2 = 0 , psum3 = 0 , psum4 = 0 , psum5 = 0 ...
public class TypicalFaicliApiFailureHook { @ Override public ApiResponse handleValidationError ( ApiFailureResource resource ) { } }
final FaicliUnifiedFailureType failureType = FaicliUnifiedFailureType . VALIDATION_ERROR ; final FaicliUnifiedFailureResult result = createFailureResult ( failureType , resource , null ) ; return asJson ( result ) . httpStatus ( prepareBusinessFailureStatus ( ) ) ;
public class Uploader { /** * Upload a photo from a byte - array . * @ param data * The photo data as a byte array * @ param metaData * The meta data * @ return photoId or ticketId * @ throws FlickrException */ @ Override public String upload ( byte [ ] data , UploadMetaData metaData ) throws FlickrExceptio...
Payload payload = new Payload ( data ) ; return sendUploadRequest ( metaData , payload ) ;
public class CmsSubscriptionManager { /** * Sets the name of the database pool to use . < p > * @ param poolName the name of the database pool to use */ public void setPoolName ( String poolName ) { } }
if ( m_frozen ) { throw new CmsRuntimeException ( Messages . get ( ) . container ( Messages . ERR_CONFIG_SUBSCRIPTIONMANAGER_FROZEN_0 ) ) ; } m_poolName = poolName ;
public class PrimitiveWrapper { /** * Convert all wrapper types in { @ code types } to their primitive * counter parts . * @ param types * The array of types that should be converted . * @ return A new array where all wrapped types have been converted to their * primitive counter part . */ public static Class...
if ( types == null ) { throw new IllegalArgumentException ( "types cannot be null" ) ; } Class < ? > [ ] convertedTypes = new Class < ? > [ types . length ] ; for ( int i = 0 ; i < types . length ; i ++ ) { final Class < ? > originalType = types [ i ] ; Class < ? > primitiveType = primitiveWrapper . get ( originalType ...
public class GvmCluster { /** * Adds the specified cluster to this cluster . * @ param cluster the cluster to be added */ void add ( GvmCluster < S , K > cluster ) { } }
if ( cluster == this ) throw new IllegalArgumentException ( ) ; if ( cluster . count == 0 ) return ; // nothing to do if ( count == 0 ) { set ( cluster ) ; } else { count += cluster . count ; // TODO accelerate add m0 += cluster . m0 ; clusters . space . add ( m1 , cluster . m1 ) ; clusters . space . add ( m2 , cluster...
public class PolicyDefinitionsInner { /** * Gets all the built in policy definitions . * @ 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 ; PolicyDefi...
return listBuiltInNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < PolicyDefinitionInner > > , Page < PolicyDefinitionInner > > ( ) { @ Override public Page < PolicyDefinitionInner > call ( ServiceResponse < Page < PolicyDefinitionInner > > response ) { return response . body (...
public class Days { /** * Returns a new instance with the specified number of days added . * This instance is immutable and unaffected by this method call . * @ param days the amount of days to add , may be negative * @ return the new period plus the specified number of days * @ throws ArithmeticException if th...
if ( days == 0 ) { return this ; } return Days . days ( FieldUtils . safeAdd ( getValue ( ) , days ) ) ;
public class BenchmarkAssociationSpeedRandom { private FastQueue < TupleDesc_F64 > createSet ( Random rand ) { } }
FastQueue < TupleDesc_F64 > ret = new FastQueue < > ( 10 , TupleDesc_F64 . class , ( ) -> new TupleDesc_F64 ( DOF ) ) ; for ( int i = 0 ; i < NUM_FEATURES ; i ++ ) { TupleDesc_F64 t = ret . grow ( ) ; for ( int j = 0 ; j < DOF ; j ++ ) { t . value [ j ] = ( rand . nextDouble ( ) - 0.5 ) * 20 ; } } return ret ;
public class S2SBaseFormGenerator { /** * Sort the attachments . */ public void sortAttachments ( ByteArrayInputStream byteArrayInputStream ) { } }
List < String > attachmentNameList = new ArrayList < > ( ) ; List < AttachmentData > attacmentList = getAttachments ( ) ; List < AttachmentData > tempAttacmentList = new ArrayList < > ( ) ; try { DocumentBuilderFactory domParserFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder domParser = domParserFa...
public class WebSocketScopeManager { /** * Set the application scope for this manager . * @ param appScope */ public void setApplication ( IScope appScope ) { } }
log . debug ( "Application scope: {}" , appScope ) ; this . appScope = appScope ; // add the name to the collection ( no ' / ' prefix ) activeRooms . add ( appScope . getName ( ) ) ;
public class SwiffyFallbackAsset { /** * Sets the asset value for this SwiffyFallbackAsset . * @ param asset * The Swiffy asset . */ public void setAsset ( com . google . api . ads . admanager . axis . v201808 . CreativeAsset asset ) { } }
this . asset = asset ;
public class Bech32 { /** * Expand a HRP for use in checksum computation . */ private static byte [ ] expandHrp ( final String hrp ) { } }
int hrpLength = hrp . length ( ) ; byte ret [ ] = new byte [ hrpLength * 2 + 1 ] ; for ( int i = 0 ; i < hrpLength ; ++ i ) { int c = hrp . charAt ( i ) & 0x7f ; // Limit to standard 7 - bit ASCII ret [ i ] = ( byte ) ( ( c >>> 5 ) & 0x07 ) ; ret [ i + hrpLength + 1 ] = ( byte ) ( c & 0x1f ) ; } ret [ hrpLength ] = 0 ;...
public class GeneratorMain { /** * Initialize cluster labels and models . * Clusters that are set to " reassign " will have their labels set to null , or * if there is only one possible reassignment , to this target label . * @ param generators Cluster generators * @ param labels Labels ( output ) * @ param m...
int existingclusters = 0 ; if ( reassign != null ) { for ( int i = 0 ; i < labels . length ; i ++ ) { final GeneratorInterface curclus = generators . get ( i ) ; if ( ! reassign . matcher ( curclus . getName ( ) ) . find ( ) ) { labels [ i ] = new SimpleClassLabel ( curclus . getName ( ) ) ; models [ i ] = curclus . ma...
public class MavenLinkerPublisher2 { /** * Synchronize because { @ link Run # addOrReplaceAction ( hudson . model . Action ) } is not thread safe */ @ Override public synchronized void process ( StepContext context , Element mavenSpyLogsElt ) throws IOException , InterruptedException { } }
Run < ? , ? > run = context . get ( Run . class ) ; // we replace instead of because we want to refresh the cache org . jenkinsci . plugins . pipeline . maven . publishers . MavenReport . getGeneratedArtifacts ( ) run . addOrReplaceAction ( new MavenReport ( run ) ) ;
public class PdfPublicKeySecurityHandler { /** * Routine for decode output of PdfContentByte . escapeString ( byte [ ] bytes ) . * It should be moved to PdfContentByte . */ static public byte [ ] unescapedString ( byte [ ] bytes ) throws BadPdfFormatException { } }
ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; int index = 0 ; if ( bytes [ 0 ] != '(' && bytes [ bytes . length - 1 ] != ')' ) throw new BadPdfFormatException ( "Expect '(' and ')' at begin and end of the string." ) ; while ( index < bytes . length ) { if ( bytes [ index ] == '\\' ) { index ++ ; switch (...
public class ContentTypeFilter { /** * Add a content type header to any request whose path matches one of the * supplied paths . */ @ Override public void doFilter ( ServletRequest request , ServletResponse response , FilterChain chain ) throws IOException , ServletException { } }
HttpServletRequest httpServletRequest = ( HttpServletRequest ) request ; for ( String path : mediaTypes . keySet ( ) ) { if ( matches ( httpServletRequest , path ) ) { response . setContentType ( mediaTypes . get ( path ) ) ; break ; } } chain . doFilter ( request , response ) ;
public class UpdateDescription { /** * Find the diff between two documents . * < p > NOTE : This does not do a full diff on { @ link BsonArray } . If there is * an inequality between the old and new array , the old array will * simply be replaced by the new one . * @ param beforeDocument original document * @...
// for each key in this document . . . for ( final Map . Entry < String , BsonValue > entry : beforeDocument . entrySet ( ) ) { final String key = entry . getKey ( ) ; // don ' t worry about the _ id or version field for now if ( key . equals ( "_id" ) || key . equals ( DOCUMENT_VERSION_FIELD ) ) { continue ; } final B...
public class UriEscape { /** * Perform am URI path segment < strong > unescape < / strong > operation * on a < tt > char [ ] < / tt > input . * This method will unescape every percent - encoded ( < tt > % HH < / tt > ) sequences present in input , * even for those characters that do not need to be percent - encod...
if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( encoding == null ) { throw new IllegalArgumentException ( "Argument 'encoding' cannot be null" ) ; } final int textLen = ( text == null ? 0 : text . length ) ; if ( offset < 0 || offset > textLen ) { throw new Ill...
public class AbstractIoAcceptor { /** * { @ inheritDoc } * @ org . apache . xbean . Property nestedType = " java . net . SocketAddress " */ @ Override public final void setDefaultLocalAddresses ( SocketAddress firstLocalAddress , SocketAddress ... otherLocalAddresses ) { } }
if ( otherLocalAddresses == null ) { otherLocalAddresses = new SocketAddress [ 0 ] ; } Collection < SocketAddress > newLocalAddresses = new ArrayList < > ( otherLocalAddresses . length + 1 ) ; newLocalAddresses . add ( firstLocalAddress ) ; Collections . addAll ( newLocalAddresses , otherLocalAddresses ) ; setDefaultLo...
public class Model { /** * Gets attribute value as < code > Integer < / code > . * If there is a { @ link Converter } registered for the attribute that converts from Class < code > S < / code > to Class * < code > java . lang . Integer < / code > , given the attribute value is an instance of < code > S < / code > ,...
Object value = getRaw ( attributeName ) ; Converter < Object , Integer > converter = modelRegistryLocal . converterForValue ( attributeName , value , Integer . class ) ; return converter != null ? converter . convert ( value ) : Convert . toInteger ( value ) ;
public class GradientWrapper { /** * Returns the interpolated color that you get if you multiply the delta between * color2 and color1 with the given fraction ( for each channel ) and interpolation . The fraction should * be a value between 0 and 1. * @ param COLOR1 The first color as integer in the hex format 0x...
assert ( Float . compare ( FRACTION , 0f ) >= 0 && Float . compare ( FRACTION , 1f ) <= 0 ) ; final float INT_TO_FLOAT_CONST = 1f / 255f ; final float RED1 = COLOR1 . getRed ( ) * INT_TO_FLOAT_CONST ; final float GREEN1 = COLOR1 . getGreen ( ) * INT_TO_FLOAT_CONST ; final float BLUE1 = COLOR1 . getBlue ( ) * INT_TO_FLO...
public class RootInjector { /** * Injects the root webelement into an element . * @ param root The root webelement . * @ param element The element . * @ since 0.3.0 */ public static < E > void rootElement ( WebElement root , E element ) { } }
if ( element == null || root == null ) return ; if ( element instanceof WebElement ) return ; for ( Class < ? > clazz = element . getClass ( ) ; ! clazz . equals ( Object . class ) ; clazz = clazz . getSuperclass ( ) ) { if ( Enhancer . isEnhanced ( clazz ) ) continue ; Field [ ] fields = clazz . getDeclaredFields ( ) ...
public class StoreConfig { /** * Gets an integer property via a string property name . * @ param pName - the property name * @ param defaultValue - the default property value * @ return an integer property */ public int getInt ( String pName , int defaultValue ) { } }
String pValue = _properties . getProperty ( pName ) ; return parseInt ( pName , pValue , defaultValue ) ;
public class ViewDefinition { /** * Returns a builder for a BigQuery view definition . * @ param query the query used to generate the table * @ param functions user - defined functions that can be used by the query */ public static Builder newBuilder ( String query , List < UserDefinedFunction > functions ) { } }
return newBuilder ( query ) . setUserDefinedFunctions ( functions ) ;
public class MeasurementUnitsImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setXoaUnits ( Integer newXoaUnits ) { } }
Integer oldXoaUnits = xoaUnits ; xoaUnits = newXoaUnits ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . MEASUREMENT_UNITS__XOA_UNITS , oldXoaUnits , xoaUnits ) ) ;
public class PerceptronPOSTagger { /** * 标注 * @ param wordList * @ return */ @ Override public String [ ] tag ( List < String > wordList ) { } }
String [ ] termArray = new String [ wordList . size ( ) ] ; wordList . toArray ( termArray ) ; return tag ( termArray ) ;
public class CmsVfsModePropertyEditor { /** * Builds the fields for the configured properties in the first tab . < p > */ private void internalBuildConfiguredFields ( ) { } }
Map < String , CmsClientProperty > ownProps = m_handler . getOwnProperties ( ) ; List < String > keys = new ArrayList < String > ( m_propertyConfig . keySet ( ) ) ; moveToTop ( keys , CmsClientProperty . PROPERTY_NAVTEXT ) ; moveToTop ( keys , CmsClientProperty . PROPERTY_DESCRIPTION ) ; moveToTop ( keys , CmsClientPro...
public class Graph { /** * Returns a transposed graph from this graph */ public Graph < T > transpose ( ) { } }
Builder < T > builder = new Builder < > ( ) ; builder . addNodes ( nodes ) ; // reverse edges edges . keySet ( ) . forEach ( u -> { edges . get ( u ) . stream ( ) . forEach ( v -> builder . addEdge ( v , u ) ) ; } ) ; return builder . build ( ) ;
public class NotificationGlobal { /** * Enable / disable notification view . * @ param enable */ public void setViewEnabled ( boolean enable ) { } }
final NotificationRootView root = mWindow . mRoot ; root . setViewEnabled ( enable ) ; if ( enable && mView == null ) { mView = root . getView ( ) ; mView . initialize ( this ) ; mView . addStateListener ( new ViewStateListener ( ) ) ; }
public class DelegatedClientAuthenticationAction { /** * Find delegated client by name base client . * @ param request the request * @ param clientName the client name * @ param service the service * @ return the base client */ protected BaseClient < Credentials , CommonProfile > findDelegatedClientByName ( fin...
val client = ( BaseClient < Credentials , CommonProfile > ) this . clients . findClient ( clientName ) ; LOGGER . debug ( "Delegated authentication client is [{}] with service [{}}" , client , service ) ; if ( service != null ) { request . setAttribute ( CasProtocolConstants . PARAMETER_SERVICE , service . getId ( ) ) ...