signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class RestApiClient { /** * Gets the user . * @ param username * the username * @ return the user */ public UserEntity getUser ( String username ) { } }
UserEntity userEntity = restClient . get ( "users/" + username , UserEntity . class , new HashMap < String , String > ( ) ) ; return userEntity ;
public class HttpHelper { /** * Perform an HTTP POST request to the URL . * @ param content string containing the content to be posted * @ return string containing the response from the server */ public byte [ ] postBytes ( byte [ ] content ) throws IOException { } }
if ( ! connection . isOpen ( ) ) connection . open ( ) ; connection . prepare ( "POST" ) ; OutputStream os = connection . getOutputStream ( ) ; os . write ( content ) ; response = connection . readInput ( ) ; os . close ( ) ; return getResponseBytes ( ) ;
public class CharsetIssues { /** * used by external tools , lists the method signature checked for , for unreplaceable encoding methods * @ return a map of these methods */ @ PublicAPI ( "Used by fb-contrib-eclipse-quickfixes to determine type of fix to apply" ) public static Map < String , Integer > getUnreplaceable...
Map < String , Integer > encodings = new HashMap < > ( ( int ) ( UNREPLACEABLE_ENCODING_METHODS . size ( ) * 1.6 ) ) ; for ( Map . Entry < FQMethod , Integer > entry : UNREPLACEABLE_ENCODING_METHODS . entrySet ( ) ) { encodings . put ( entry . getKey ( ) . toString ( ) , entry . getValue ( ) ) ; } return encodings ;
public class Iteration { /** * Begin an { @ link Iteration } over the named selection of the given type . Also sets the name and type of the variable for this iteration ' s * " current element " . The type serves for automatic type check . */ public static IterationBuilderOver over ( Class < ? extends WindupVertexFra...
Iteration iterationImpl = new Iteration ( new TypedNamedFramesSelector ( sourceType , source ) ) ; iterationImpl . setPayloadManager ( new TypedNamedIterationPayloadManager ( sourceType , singleVariableIterationName ( source ) ) ) ; return iterationImpl ;
public class SymmetricDifferenceMatcher { /** * Remove all mappings to target * @ param target */ public void unmap ( T target ) { } }
Set < I > items = reverseMap . get ( target ) ; items . forEach ( ( i ) -> mapSet . removeItem ( i , target ) ) ; reverseMap . remove ( target ) ;
public class LabelledTriple { /** * Get the object of the triple as a string . * @ return the string form of the object */ public String getObject ( ) { } }
if ( triple . getObject ( ) instanceof Literal ) { return ( ( Literal ) triple . getObject ( ) ) . getLexicalForm ( ) ; } else if ( triple . getObject ( ) instanceof IRI ) { return ( ( IRI ) triple . getObject ( ) ) . getIRIString ( ) ; } return triple . getObject ( ) . ntriplesString ( ) ;
public class DebugUtil { /** * Builds a prefix message to be used in front of < i > debug < / i > messages for identification purposes . * The message format is : * < pre > * * * * * external debug : [ timestamp ] [ class name ] : * < / pre > * @ param pObject the { @ code java . lang . Object } to be debugge...
StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( DEBUG ) ; buffer . append ( getTimestamp ( ) ) ; buffer . append ( " " ) ; if ( pObject == null ) { buffer . append ( "[unknown class]" ) ; } else { if ( pObject instanceof String ) { buffer . append ( ( String ) pObject ) ; } else { buffer . append ( get...
public class SchemasInner { /** * Get the content callback url . * @ param resourceGroupName The resource group name . * @ param integrationAccountName The integration account name . * @ param schemaName The integration account schema name . * @ param listContentCallbackUrl the GetCallbackUrlParameters value ...
if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( integra...
public class AbstractRestClient { /** * Build a PoolingHttpClientConnectionManager that trusts certificates loaded from specified resource with specified trust strategy . * If you want the REST client to trust some specific server certificates , you can override { @ link # buildConnectionManager ( ) } method * and ...
try { KeyStore trustStore = certResources == null || certResources . length == 0 ? null : buildKeyStoreFromResources ( certResources ) ; SSLContext sslContext = SSLContexts . custom ( ) . loadTrustMaterial ( trustStore , trustStrategy ) . build ( ) ; SSLConnectionSocketFactory sslsf = hostnameVerifier == null ? new SSL...
public class XsdAsmUtils { /** * Generates the required methods for adding a given attribute and creates the * respective class , if needed . * @ param createdAttributes Information about attributes that were already created . * @ param classWriter The { @ link ClassWriter } to write the methods . * @ param ele...
XsdAsmAttributes . generateMethodsForAttribute ( classWriter , elementAttribute , returnType , className , apiName ) ; createAttribute ( createdAttributes , elementAttribute ) ;
public class BoxRequestEvent { /** * Serialize object . * @ serialData The capacity ( int ) , followed by elements ( each an { @ code Object } ) in the proper order , followed by a null * @ param s * the stream */ private void writeObject ( java . io . ObjectOutputStream s ) throws java . io . IOException { } }
// Write out capacity and any hidden stuff s . defaultWriteObject ( ) ;
public class AbstractSQLQuery { /** * Get the results as a JDBC ResultSet * @ return results as ResultSet */ public ResultSet getResults ( ) { } }
final SQLListenerContextImpl context = startContext ( connection ( ) , queryMixin . getMetadata ( ) ) ; String queryString = null ; List < Object > constants = ImmutableList . of ( ) ; try { listeners . preRender ( context ) ; SQLSerializer serializer = serialize ( false ) ; queryString = serializer . toString ( ) ; lo...
public class MainMenuBar { /** * This method initializes menuFileProperties * @ return javax . swing . JMenuItem */ private ZapMenuItem getMenuFileProperties ( ) { } }
if ( menuFileProperties == null ) { menuFileProperties = new ZapMenuItem ( "menu.file.properties" , View . getSingleton ( ) . getMenuShortcutKeyStroke ( KeyEvent . VK_P , KeyEvent . ALT_DOWN_MASK , false ) ) ; menuFileProperties . setText ( Constant . messages . getString ( "menu.file.properties" ) ) ; // ZAP : i18n me...
public class TreeUtils { /** * Performs the following transformation on the given MutableBinaryTreeNode : * < pre > * o1 o2 * A o2 = = = = > o1 C * B C A B * < / pre > * @ param node the node to transform * @ return the new root after the transformation , which is either the right sub node of the original...
checkArgNotNull ( node , "node" ) ; N right = node . right ( ) ; if ( right == null ) return node ; node . setRight ( right . left ( ) ) ; right . setLeft ( node ) ; return right ;
public class TasksBase { /** * Adds a tag to a task . Returns an empty data block . * @ param task The task to add a tag to . * @ return Request object */ public ItemRequest < Task > addTag ( String task ) { } }
String path = String . format ( "/tasks/%s/addTag" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ;
public class ConverterManager { /** * Removes a converter from the set of converters . If the converter was * not in the set , no changes are made . * @ param converter the converter to remove , null ignored * @ return replaced converter , or null */ public DurationConverter removeDurationConverter ( DurationConv...
checkAlterDurationConverters ( ) ; if ( converter == null ) { return null ; } DurationConverter [ ] removed = new DurationConverter [ 1 ] ; iDurationConverters = iDurationConverters . remove ( converter , removed ) ; return removed [ 0 ] ;
public class DiscreteDistributions { /** * Returns the cumulative probability of k of a specific number of tries n and probability p * @ param k * @ param p * @ param n * @ return */ public static double binomialCdf ( int k , double p , int n ) { } }
if ( k < 0 || p < 0 || n < 1 ) { throw new IllegalArgumentException ( "All the parameters must be positive and n larger than 1." ) ; } k = Math . min ( k , n ) ; double probabilitySum = approxBinomialCdf ( k , p , n ) ; return probabilitySum ;
public class StorePackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getObjectIDMPluginConfiguration ( ) { } }
if ( objectIDMPluginConfigurationEClass == null ) { objectIDMPluginConfigurationEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( StorePackage . eNS_URI ) . getEClassifiers ( ) . get ( 13 ) ; } return objectIDMPluginConfigurationEClass ;
public class LDAPController { /** * Gets the form for the creation of a mapping */ @ RequestMapping ( value = "ldap-mapping/create" , method = RequestMethod . GET ) public Form getMappingCreationForm ( ) { } }
securityService . checkGlobalFunction ( AccountGroupManagement . class ) ; return AccountGroupMapping . form ( accountService . getAccountGroups ( ) ) ;
public class V3ProxyValidateController { /** * Handle model and view . * @ param request the request * @ param response the response * @ return the model and view * @ throws Exception the exception */ @ GetMapping ( path = CasProtocolConstants . ENDPOINT_PROXY_VALIDATE_V3 ) @ Override protected ModelAndView han...
return super . handleRequestInternal ( request , response ) ;
public class License { /** * Sign the license . * The license is signed the following way : * < ol > * < li > Add the digest algorithm string to the license as a feature . The feature name is { @ code signatureDigest } * ( name is defined in the constant { @ link # DIGEST _ KEY } in this class ) . * < / li > ...
add ( Feature . Create . stringFeature ( DIGEST_KEY , digest ) ) ; final var digester = MessageDigest . getInstance ( digest ) ; final var ser = unsigned ( ) ; final var digestValue = digester . digest ( ser ) ; final var cipher = Cipher . getInstance ( key . getAlgorithm ( ) ) ; cipher . init ( Cipher . ENCRYPT_MODE ,...
public class PersonNameIndexRenderer { /** * { @ inheritDoc } */ @ Override public final String getIndexName ( ) { } }
final Person person = personRenderer . getGedObject ( ) ; if ( ! person . isSet ( ) ) { return "" ; } if ( personRenderer . isConfidential ( ) ) { return "Confidential" ; } if ( personRenderer . isHiddenLiving ( ) ) { return "Living" ; } final GedRenderer < ? extends GedObject > renderer = personRenderer . createGedRen...
public class ConversationMetaDataImpl { /** * begin F206161.5 */ public InetAddress getRemoteAddress ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getRemoteAddress" ) ; InetAddress result = null ; TCPConnectionContext tcpContext = null ; ConnectionLink connLinkRef = baseLink . getDeviceLink ( ) ; if ( connLinkRef != null ) { tcpContext = ( TCPConnectionContext ...
public class WebSocketHandler { /** * Handles websocket transport errors * @ param webSocketSession websocket session where the error appeared * @ param exception exception that occured * @ throws Exception transport error exception */ @ Override public void handleTransportError ( final WebSocketSession webSocket...
if ( exception != null ) { logger . error ( "[handleTransportError]" , exception ) ; }
public class DFSClient { /** * Create a new dfs file with the specified block replication * with write - progress reporting and return an output stream for writing * into the file . * @ param src stream name * @ param permission The permission of the directory being created . * If permission = = null , use { ...
return create ( src , permission , overwrite , createParent , replication , blockSize , progress , buffersize , conf . getInt ( "io.bytes.per.checksum" , 512 ) ) ;
public class BarcodePostnet { /** * Creates the bars for Postnet . * @ param text the code to be created without checksum * @ return the bars */ public static byte [ ] getBarsPostnet ( String text ) { } }
int total = 0 ; for ( int k = text . length ( ) - 1 ; k >= 0 ; -- k ) { int n = text . charAt ( k ) - '0' ; total += n ; } text += ( char ) ( ( ( 10 - ( total % 10 ) ) % 10 ) + '0' ) ; byte bars [ ] = new byte [ text . length ( ) * 5 + 2 ] ; bars [ 0 ] = 1 ; bars [ bars . length - 1 ] = 1 ; for ( int k = 0 ; k < text ....
public class Dispatcher { /** * Schedules status update of given event for all registered targets . */ @ MainThread private void scheduleStatusUpdates ( Event event , EventStatus status ) { } }
for ( EventTarget target : targets ) { for ( EventMethod method : target . methods ) { if ( event . getKey ( ) . equals ( method . eventKey ) && method . type == EventMethod . Type . STATUS ) { Utils . log ( event . getKey ( ) , method , "Scheduling status update" ) ; executionQueue . add ( Task . create ( this , targe...
public class GraphGeneratorUtils { /** * Generates { @ link Vertex vertices } present in the given set of { @ link Edge } s . * @ param edges source { @ link DataSet } of { @ link Edge } s * @ param parallelism operator parallelism * @ param < K > label type * @ param < EV > edge value type * @ return { @ lin...
DataSet < Vertex < K , NullValue > > vertexSet = edges . flatMap ( new EmitSrcAndTarget < > ( ) ) . setParallelism ( parallelism ) . name ( "Emit source and target labels" ) ; return vertexSet . distinct ( ) . setCombineHint ( CombineHint . HASH ) . setParallelism ( parallelism ) . name ( "Emit vertex labels" ) ;
public class ManagerUtil { /** * Strips the internal action id from the given action id . * @ param actionId the action id prefixed by the internal action id as * received from Asterisk . * @ return the original action id , that is the action id as it was before * the internal action id was added . * @ see # ...
int delimiterIndex ; delimiterIndex = actionId . indexOf ( INTERNAL_ACTION_ID_DELIMITER ) ; if ( delimiterIndex > 0 ) { if ( actionId . length ( ) > delimiterIndex + 1 ) { return actionId . substring ( delimiterIndex + 1 ) ; } return null ; } return null ;
public class DataUtil { /** * little - endian or intel format . */ public static void writeLongLittleEndian ( byte [ ] buffer , int offset , long value ) { } }
buffer [ offset ++ ] = ( byte ) ( value & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >> 8 ) & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >> 16 ) & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >> 24 ) & 0xFF ) ; buffer [ offset ++ ] = ( byte ) ( ( value >> 32 ) & 0xFF ) ; buffer [ offset ++ ] = ( b...
public class DeploymentsInner { /** * Exports the template used for specified deployment . * @ param resourceGroupName The name of the resource group . The name is case insensitive . * @ param deploymentName The name of the deployment from which to get the template . * @ throws IllegalArgumentException thrown if ...
if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( deploymentName == null ) { throw new IllegalArgumentException ( "Parameter deploymentName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == nul...
public class PasswordUtil { /** * Encode the provided string by using the specified encoding algorithm and properties * @ param decoded _ string the string to be encoded . * @ param crypto _ algorithm the algorithm to be used for encoding . The supported values are xor , aes , or hash . * @ param properties the p...
/* * encoding process : * - - check for empty algorithm tag * - - convert input String to byte [ ] UTF8 conversion code * - - encipher byte [ ] * - - convert byte [ ] to String using using base64 encoding */ StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( CRYPTO_ALGORITHM_STARTED ) ; if ( crypt...
public class Out { /** * syck _ out _ mark */ public static void outMark ( IRubyObject emitter , IRubyObject node ) { } }
Emitter emitterPtr = ( Emitter ) emitter . dataGetStructChecked ( ) ; YEmitter . Extra bonus = ( YEmitter . Extra ) emitterPtr . bonus ; ( ( RubyObject ) node ) . fastSetInstanceVariable ( "@emitter" , emitter ) ; if ( ! bonus . oid . isNil ( ) ) { ( ( RubyHash ) bonus . data ) . fastASet ( bonus . oid , node ) ; }
public class DE { /** * anlegen eines de beim parsen funktioniert analog zum * anlegen eines de bei der message - synthese */ private void parseValue ( StringBuffer res , HashMap < String , String > predefs , char preDelim , HashMap < String , String > valids ) { } }
int len = res . length ( ) ; if ( preDelim != ( char ) 0 && res . charAt ( 0 ) != preDelim ) { if ( len == 0 ) { throw new ParseErrorException ( HBCIUtils . getLocMsg ( "EXCMSG_ENDOFSTRG" , getPath ( ) ) ) ; } // log . ( " error string : " + res . toString ( ) , log . _ ERR ) ; // log . ( " current : " + getPath ( ) + ...
public class AbstractGitFlowMojo { /** * Executes git for - each - ref with < code > refname : short < / code > format . * @ param branchName * Branch name to find . * @ param firstMatch * Return first match . * @ return Branch names which matches < code > refs / heads / { branchName } * < / code > . * @ th...
String wildcard = "*" ; if ( branchName . endsWith ( "/" ) ) { wildcard = "**" ; } String branches ; if ( firstMatch ) { branches = executeGitCommandReturn ( "for-each-ref" , "--count=1" , "--format=\"%(refname:short)\"" , "refs/heads/" + branchName + wildcard ) ; } else { branches = executeGitCommandReturn ( "for-each...
public class OneStepDistributedRowLock { /** * Read all the lock columns . Will also ready data columns if withDataColumns ( true ) was called * @ param readDataColumns * @ return * @ throws Exception */ private Map < C , Long > readLockColumns ( boolean readDataColumns ) throws Exception { } }
Map < C , Long > result = Maps . newLinkedHashMap ( ) ; // Read all the columns if ( readDataColumns ) { columns = new OrderedColumnMap < C > ( ) ; ColumnList < C > lockResult = keyspace . prepareQuery ( columnFamily ) . setConsistencyLevel ( consistencyLevel ) . getKey ( key ) . execute ( ) . getResult ( ) ; for ( Col...
public class JPAExpressions { /** * Create a max ( col ) expression * @ param left collection * @ return max ( col ) */ public static < A extends Comparable < ? super A > > ComparableExpression < A > max ( CollectionExpression < ? , A > left ) { } }
return Expressions . comparableOperation ( ( Class ) left . getParameter ( 0 ) , Ops . QuantOps . MAX_IN_COL , ( Expression < ? > ) left ) ;
public class MissingFail { /** * Returns a string describing the exception type caught by the given try tree ' s catch * statement ( s ) , defaulting to { @ code " Exception " } if more than one exception type is caught . */ private static String exceptionToString ( TryTree tree , VisitorState state ) { } }
if ( tree . getCatches ( ) . size ( ) != 1 ) { return "Exception" ; } Tree exceptionType = tree . getCatches ( ) . iterator ( ) . next ( ) . getParameter ( ) . getType ( ) ; Type type = ASTHelpers . getType ( exceptionType ) ; if ( type != null && type . isUnion ( ) ) { return "Exception" ; } return state . getSourceFo...
public class FileCachingJobServiceClassLoaderStrategy { /** * Gets the < code > File < / code > in which to store the given class definition . * @ param name The fully qualified name of the class . * @ param digest The MD5 digest of the class definition . * @ param createDirectory A value indicating whether the d...
File entryDirectory = new File ( directory , name . replace ( '.' , '/' ) ) ; if ( createDirectory && ! entryDirectory . isDirectory ( ) ) { entryDirectory . mkdirs ( ) ; } return new File ( entryDirectory , StringUtil . toHex ( digest ) ) ;
public class NoticeReference { /** * Describe < code > toASN1Object < / code > method here . * @ return a < code > DERObject < / code > value */ public DERObject toASN1Object ( ) { } }
ASN1EncodableVector av = new ASN1EncodableVector ( ) ; av . add ( organization ) ; av . add ( noticeNumbers ) ; return new DERSequence ( av ) ;
public class Futures { /** * Create a composite { @ link CompletableFuture } is composed from the given { @ code futures } . * @ param futures must not be { @ literal null } . * @ return the composed { @ link CompletableFuture } . * @ since 5.1.1 */ @ SuppressWarnings ( { } }
"unchecked" , "rawtypes" } ) public static CompletableFuture < Void > allOf ( Collection < ? extends CompletableFuture < ? > > futures ) { LettuceAssert . notNull ( futures , "Futures must not be null" ) ; return CompletableFuture . allOf ( futures . toArray ( new CompletableFuture [ 0 ] ) ) ;
public class HybridizationFingerprinter { /** * Gets the bond Symbol attribute of the Fingerprinter class . * @ return The bondSymbol value */ protected String getBondSymbol ( IBond bond ) { } }
String bondSymbol = "" ; if ( bond . getOrder ( ) == IBond . Order . SINGLE ) { if ( isSP2Bond ( bond ) ) { bondSymbol = ":" ; } else { bondSymbol = "-" ; } } else if ( bond . getOrder ( ) == IBond . Order . DOUBLE ) { if ( isSP2Bond ( bond ) ) { bondSymbol = ":" ; } else { bondSymbol = "=" ; } } else if ( bond . getOr...
public class HBaseParserScreen { /** * Print the top nav menu . * @ exception DBException File exception . */ public void printHtmlLogo ( PrintWriter out , ResourceBundle reg ) throws DBException { } }
String strXml = this . getProperty ( "xml" ) ; // Html page if ( ( strXml != null ) && ( strXml . length ( ) > 0 ) ) ( ( BaseParserScreen ) this . getScreenField ( ) ) . setURL ( ( ( BaseParserScreen ) this . getScreenField ( ) ) . addURLParam ( Constants . BLANK , "xml" , strXml ) ) ; super . printHtmlLogo ( out , reg...
public class CleaneLingSolver { /** * Dumps redundant clauses with eliminated variables . */ private void dumpEliminatedRedundant ( ) { } }
for ( final CLClause c : this . clauses ) { if ( ! c . redundant ( ) || c . satisfied ( ) || c . dumped ( ) ) { continue ; } if ( containsEliminated ( c ) ) { dumpClause ( c ) ; } }
public class SansOrm { /** * Use this one to use simple embedded { @ link TransactionManager } implementation for tx handling . * @ param dataSource the { @ link DataSource } to use by the default * @ return dataSource that will be used for queries */ public static DataSource initializeTxSimple ( DataSource dataSou...
TxTransactionManager txManager = new TxTransactionManager ( dataSource ) ; return initializeTxCustom ( txManager . getTxDataSource ( ) , txManager , txManager ) ;
public class TaskAnnouncement { /** * nullable for backward compatibility */ public static TaskAnnouncement create ( Task task , TaskStatus status , TaskLocation location ) { } }
return create ( task . getId ( ) , task . getType ( ) , task . getTaskResource ( ) , status , location , task . getDataSource ( ) ) ;
public class OidcAuthorizationRequestSupport { /** * Gets oidc prompt from authorization request . * @ param url the url * @ return the oidc prompt from authorization request */ @ SneakyThrows public static Set < String > getOidcPromptFromAuthorizationRequest ( final @ NonNull String url ) { } }
return new URIBuilder ( url ) . getQueryParams ( ) . stream ( ) . filter ( p -> OidcConstants . PROMPT . equals ( p . getName ( ) ) ) . map ( param -> param . getValue ( ) . split ( " " ) ) . flatMap ( Arrays :: stream ) . collect ( Collectors . toSet ( ) ) ;
public class PluginWrapper { /** * Gets the URL that shows more information about this plugin . * @ return * null if this information is unavailable . * @ since 1.283 */ @ Exported public String getUrl ( ) { } }
// first look for the manifest entry . This is new in maven - hpi - plugin 1.30 String url = manifest . getMainAttributes ( ) . getValue ( "Url" ) ; if ( url != null ) return url ; // fallback to update center metadata UpdateSite . Plugin ui = getInfo ( ) ; if ( ui != null ) return ui . wiki ; return null ;
public class SSOTokenCredentialProvider { /** * { @ inheritDoc } */ @ Override public void setCredential ( Subject subject ) throws CredentialException { } }
Set < WSPrincipal > principals = subject . getPrincipals ( WSPrincipal . class ) ; if ( principals . isEmpty ( ) ) { return ; } if ( principals . size ( ) != 1 ) { throw new CredentialException ( "Too many WSPrincipals in the subject" ) ; } WSPrincipal principal = principals . iterator ( ) . next ( ) ; CredentialsServi...
public class ResourceManager { /** * Retrieve resource with specified basename . * @ param baseName the basename * @ param classLoader the classLoader to load resources from * @ param locale the locale of the resources requested . * @ return the Resources */ public static Resources getBaseResources ( String bas...
synchronized ( ResourceManager . class ) { Resources resources = getCachedResource ( baseName + "_" + locale . hashCode ( ) ) ; if ( null == resources ) { resources = new Resources ( baseName , locale , classLoader ) ; putCachedResource ( baseName + "_" + locale . hashCode ( ) , resources ) ; } return resources ; }
public class TimeZoneNamesImpl { /** * Returns a set of names for the given time zone ID . This method loads * the set of names into the internal map and trie for future references . * @ param tzID the canonical time zone ID * @ return An instance of ZNames that includes a set of time zone display names . */ priv...
ZNames tznames = _tzNamesMap . get ( tzID ) ; if ( tznames == null ) { ZNamesLoader loader = new ZNamesLoader ( ) ; loader . loadTimeZone ( _zoneStrings , tzID ) ; tznames = ZNames . createTimeZoneAndPutInCache ( _tzNamesMap , loader . getNames ( ) , tzID ) ; } return tznames ;
public class AuditableVisitor { /** * Visits Auditable objects in an object graph / hierarchy setting auditable information ( created / modified * by / date - time / process ) . * @ param visitable the Visitable object visited by this Visitor . * @ see org . cp . elements . lang . Auditable */ @ Override @ Suppre...
if ( visitable instanceof Auditable ) { Auditable < USER , PROCESS , ? > auditable = ( Auditable < USER , PROCESS , ? > ) visitable ; if ( auditable . isNew ( ) || isCreatedUnset ( auditable ) ) { auditable . setCreatedBy ( getUser ( ) ) ; auditable . setCreatedOn ( getDateTime ( ) ) ; auditable . setCreatedWith ( getP...
public class BuildWrapper { /** * Provides an opportunity for a { @ link BuildWrapper } to decorate the { @ link BuildListener } logger to be used by the build . * This hook is called very early on in the build ( even before { @ link # setUp ( AbstractBuild , Launcher , BuildListener ) } is invoked . ) * The defaul...
return logger ;
public class SystemPropertyUtil { /** * Returns the value of the Java system property with the specified * { @ code key } , while falling back to the specified default value if * the property access fails . * @ return the property value . * { @ code def } if there ' s no such property or if an access to the *...
String value = get ( key ) ; if ( value == null ) { return def ; } value = value . trim ( ) ; try { return Integer . parseInt ( value ) ; } catch ( Exception e ) { // Ignore } logger . warn ( "Unable to parse the integer system property '{}':{} - using the default value: {}" , key , value , def ) ; return def ;
public class ManagedServiceFactoryTracker { /** * Processes registered ManagedServiceFactory and updates each with their own * configuration properties . * @ param reference * - ServiceReference for MangedServiceFactory */ @ Override public ManagedServiceFactory addingService ( ServiceReference < ManagedServiceFa...
String [ ] factoryPids = getServicePid ( reference ) ; if ( factoryPids == null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "handleRegistration(): Invalid service.pid type: " + reference ) ; } return null ; } ManagedServiceFactory msf = context . getService ( refer...
public class VariableNumMap { /** * Returns { @ code true } if the values in { @ code assignment } are * possible values for the variables in { @ code this } . * { @ code assignment } must contain a subset of the variables in * { @ code this } . * @ param assignment * @ return */ public boolean isValidAssignm...
Preconditions . checkArgument ( containsAll ( assignment . getVariableNumsArray ( ) ) ) ; for ( int varNum : assignment . getVariableNumsArray ( ) ) { int index = getVariableIndex ( varNum ) ; if ( ! vars [ index ] . canTakeValue ( assignment . getValue ( varNum ) ) ) { return false ; } } return true ;
public class Result { /** * Accept Lists and mark as empty or not * @ param value * @ return */ public static < R > Result < List < R > > ok ( List < R > value ) { } }
return new Result < List < R > > ( value , OK , SUCCESS , null ) . emptyList ( value . size ( ) == 0 ) ;
public class PasswordPolicyDto { /** * transformers */ public static PasswordPolicyDto fromPasswordPolicy ( PasswordPolicy policy ) { } }
PasswordPolicyDto policyDto = new PasswordPolicyDto ( ) ; for ( PasswordPolicyRule rule : policy . getRules ( ) ) { policyDto . rules . add ( new PasswordPolicyRuleDto ( rule ) ) ; } return policyDto ;
public class PackageInfo { /** * Get the { @ link ClassInfo } objects for all classes that are members of this package or a sub - package . * @ return the the { @ link ClassInfo } objects for all classes that are members of this package or a sub - package . */ public ClassInfoList getClassInfoRecursive ( ) { } }
final Set < ClassInfo > reachableClassInfo = new HashSet < > ( ) ; obtainClassInfoRecursive ( reachableClassInfo ) ; return new ClassInfoList ( reachableClassInfo , /* sortByName = */ true ) ;
public class RewriteAsRangeCriteria { /** * Find all references in the supplied list that match those supplied and set them to null . * @ param comparisons the collection in which null references are to be placed * @ param comparisonsToNull the comparisons that are to be found and nulled in the collection */ protec...
for ( Comparison comparisonToNull : comparisonsToNull ) { nullReference ( comparisons , comparisonToNull ) ; }
public class ObjectMetadata { /** * Gets a map of the raw metadata / headers for the associated object . * @ return A map of the raw metadata / headers for the associated object . */ public Map < String , Object > getRawMetadata ( ) { } }
Map < String , Object > copy = new TreeMap < String , Object > ( String . CASE_INSENSITIVE_ORDER ) ; copy . putAll ( metadata ) ; return Collections . unmodifiableMap ( copy ) ;
public class Annotations { /** * Get the config - property - type for an annotation * @ param annotation The annotation * @ param type An optional declared type * @ param classLoader The class loader to use * @ return The fully qualified classname * @ exception ClassNotFoundException Thrown if a class cannot ...
if ( annotation . isOnField ( ) ) { Class clz = Class . forName ( annotation . getClassName ( ) , true , classLoader ) ; while ( ! Object . class . equals ( clz ) ) { try { Field field = SecurityActions . getDeclaredField ( clz , annotation . getMemberName ( ) ) ; if ( type == null || type . equals ( Object . class ) |...
public class MonitorWebController { /** * Start monitoring now . * @ return text describing the result . */ protected String startMonitoring ( ) { } }
String result ; if ( ! this . started . getAndSet ( true ) ) { synchronized ( this . brokerPollerMap ) { for ( ActiveMQBrokerPoller onePoller : this . brokerPollerMap . values ( ) ) { onePoller . start ( ) ; } } result = "started" ; } else { result = "already running" ; } return result ;
public class ResourceUtils { /** * Return a stream of resources from a response * @ param response the response * @ param < R > the resource type * @ param < U > the response type * @ return a stream of resources from the response */ public static < R extends Resource < ? > , U extends PaginatedResponse < R > >...
return Flux . fromIterable ( response . getResources ( ) ) ;
public class BpmPlatformXmlParser { /** * create an configure the { @ link ProcessesXmlParse } object . */ public BpmPlatformXmlParse createParse ( ) { } }
BpmPlatformXmlParse parse = new BpmPlatformXmlParse ( this ) ; parse . setSchemaResource ( ReflectUtil . getResourceUrlAsString ( BPM_PLATFORM_XSD ) ) ; return parse ;
public class HttpBuilder { /** * Executes an asynchronous DELETE request on the configured URI ( an asynchronous alias to the ` delete ( Closure ) ` method ) , with additional configuration * provided by the configuration closure . * [ source , groovy ] * def http = HttpBuilder . configure { * request . uri = '...
return CompletableFuture . supplyAsync ( ( ) -> delete ( closure ) , getExecutor ( ) ) ;
public class AnimatedDrawable2 { /** * Start the animation . */ @ Override public void start ( ) { } }
if ( mIsRunning || mAnimationBackend == null || mAnimationBackend . getFrameCount ( ) <= 1 ) { return ; } mIsRunning = true ; mStartTimeMs = now ( ) ; mExpectedRenderTimeMs = mStartTimeMs ; mLastFrameAnimationTimeMs = - 1 ; mLastDrawnFrameNumber = - 1 ; invalidateSelf ( ) ; mAnimationListener . onAnimationStart ( this ...
public class LinkState { /** * Method getRemoteMEUuid * < p > Returns the Uuid of the ME on the remote end of this Link */ public SIBUuid8 getRemoteMEUuid ( SIBUuid12 linkUuid ) throws SIResourceException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getRemoteMEUuid" , linkUuid ) ; LinkSelection s = null ; SIBUuid8 remoteMEUuid = null ; s = _localisationManager . getTRMFacade ( ) . chooseLink ( linkUuid ) ; // If the link is not available in WLM return null as we don ' ...
public class LauncherConfig { /** * Import the launcher data from node . * @ param node The node reference ( must not be < code > null < / code > ) . * @ return The launcher data . * @ throws LionEngineException If unable to read node . */ public static LauncherConfig imports ( Xml node ) { } }
Check . notNull ( node ) ; final Collection < Xml > children = node . getChildren ( LaunchableConfig . NODE_LAUNCHABLE ) ; final Collection < LaunchableConfig > launchables = new ArrayList < > ( children . size ( ) ) ; for ( final Xml launchable : children ) { launchables . add ( LaunchableConfig . imports ( launchable...
public class ElasticSearch { /** * Format the query url template according to the parameters . * The format will be / { index } / { type } / { id } ? { query } if query is not empty ( or null ) otherwise the format will be / { index } / { type } / { id } * @ param index * @ param type * @ param id * @ param q...
String queryUrl = String . format ( fullQueryTemplate , index == null ? "_all" : index , type == null ? "_all" : type , id == null ? "" : id , toQueryParams ( query ) ) ; return queryUrl . endsWith ( "?" ) ? queryUrl . substring ( 0 , queryUrl . length ( ) - 1 ) : queryUrl ;
public class ClassReflectionIndex { /** * Get a method declared on this object . * @ param returnType the method return type * @ param name the name of the method * @ param paramTypes the parameter types of the method * @ return the method , or { @ code null } if no method of that description exists */ public M...
final Map < ParamList , Map < Class < ? > , Method > > nameMap = methods . get ( name ) ; if ( nameMap == null ) { return null ; } final Map < Class < ? > , Method > paramsMap = nameMap . get ( createParamList ( paramTypes ) ) ; if ( paramsMap == null ) { return null ; } return paramsMap . get ( returnType ) ;
public class StorageComponent { /** * Returns child StorageComponent by given key . * @ param key * the key of children StorageComponent . * @ return a StorageComponent object . */ public StorageComponent < KeyType , ValueType > getStorageComponent ( final KeyType key ) { } }
KeyToStorageComponent < KeyType , ValueType > storage = getkeyToStorage ( ) ; StorageComponent < KeyType , ValueType > storageComponent = storage . get ( key ) ; if ( storageComponent == null ) { storageComponent = new StorageComponent < KeyType , ValueType > ( ) ; storage . put ( key , storageComponent ) ; } return st...
public class CPOptionCategoryUtil { /** * Returns all the cp option categories where uuid = & # 63 ; and companyId = & # 63 ; . * @ param uuid the uuid * @ param companyId the company ID * @ return the matching cp option categories */ public static List < CPOptionCategory > findByUuid_C ( String uuid , long compa...
return getPersistence ( ) . findByUuid_C ( uuid , companyId ) ;
public class MessageFieldUtil { /** * Returns a field value getter by index name for proto repeated enum field . */ public static String javaRepeatedEnumValueGetterByIndexName ( Field field ) { } }
if ( field . isRepeated ( ) ) { return GETTER_PREFIX + Formatter . toPascalCase ( field . getName ( ) ) + VALUE ; } throw new IllegalArgumentException ( field . toString ( ) ) ;
public class Search { /** * Obtain the { @ link SearchManager } object for a cache . */ public static SearchManager getSearchManager ( Cache < ? , ? > cache ) { } }
if ( cache == null || cache . getAdvancedCache ( ) == null ) { throw new IllegalArgumentException ( "cache parameter shall not be null" ) ; } AdvancedCache < ? , ? > advancedCache = cache . getAdvancedCache ( ) ; ensureAccessPermissions ( advancedCache ) ; return new SearchManagerImpl ( advancedCache ) ;
public class Type1Font { /** * Reads the font metrics * @ param rf the AFM file * @ throws DocumentException the AFM file is invalid * @ throws IOException the AFM file could not be read */ public void process ( RandomAccessFileOrArray rf ) throws DocumentException , IOException { } }
String line ; boolean isMetrics = false ; while ( ( line = rf . readLine ( ) ) != null ) { StringTokenizer tok = new StringTokenizer ( line , " ,\n\r\t\f" ) ; if ( ! tok . hasMoreTokens ( ) ) continue ; String ident = tok . nextToken ( ) ; if ( ident . equals ( "FontName" ) ) FontName = tok . nextToken ( "\u00ff" ) . s...
public class ResultExporter { /** * footer group band ( gc ! = null & hasFunction = true ) */ private void printBand ( GroupCache gc , Band staticBand , boolean hasFunction , boolean usePrevious ) throws QueryException { } }
Band band ; List < FunctionCache > fCache = null ; isDetail = false ; boolean isPageHeaderFooter = false ; if ( gc == null ) { if ( staticBand != null ) { band = staticBand ; if ( ReportLayout . PAGE_HEADER_BAND_NAME . equals ( band . getName ( ) ) || ReportLayout . PAGE_FOOTER_BAND_NAME . equals ( band . getName ( ) )...
public class JBBPBitInputStream { /** * Read number of long items from the input stream . * @ param items number of items to be read from the input stream , if less than * zero then all stream till the end will be read * @ param byteOrder the order of bytes to be used to decode values * @ return read items as a...
int pos = 0 ; if ( items < 0 ) { long [ ] buffer = new long [ INITIAL_ARRAY_BUFFER_SIZE ] ; // till end while ( hasAvailableData ( ) ) { final long next = readLong ( byteOrder ) ; if ( buffer . length == pos ) { final long [ ] newbuffer = new long [ buffer . length << 1 ] ; System . arraycopy ( buffer , 0 , newbuffer ,...
public class QueryParserKraken { /** * Parses the show . */ private ShowQueryBuilder parseShow ( ShowQueryBuilder query ) { } }
Token token = scanToken ( ) ; if ( token == Token . TABLE ) { } else if ( token == Token . IDENTIFIER && _lexeme . equalsIgnoreCase ( "tableinfo" ) ) { query . method ( "tableinfo" ) ; } else { throw error ( "Expected TABLE at {0}" , token ) ; } token = scanToken ( ) ; if ( token != Token . IDENTIFIER ) { throw error (...
public class Radar { /** * < editor - fold defaultstate = " collapsed " desc = " Visualization " > */ @ Override protected void paintComponent ( Graphics g ) { } }
if ( ! isInitialized ( ) ) { return ; } final Graphics2D G2 = ( Graphics2D ) g . create ( ) ; G2 . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; G2 . setRenderingHint ( RenderingHints . KEY_RENDERING , RenderingHints . VALUE_RENDER_QUALITY ) ; G2 . setRenderingHint ( Ren...
public class Observable { /** * Returns an Observable that reverses the effect of { @ link # materialize materialize } by transforming the * { @ link Notification } objects emitted by the source ObservableSource into the items or notifications they * represent . * < img width = " 640 " height = " 335 " src = " ht...
@ SuppressWarnings ( "unchecked" ) Observable < Notification < T2 > > m = ( Observable < Notification < T2 > > ) this ; return RxJavaPlugins . onAssembly ( new ObservableDematerialize < T2 > ( m ) ) ;
public class OptionsRenderer { /** * Renders options report . * @ param config rendering config * @ return rendered report */ @ Override public String renderReport ( final OptionsConfig config ) { } }
final StringBuilder res = new StringBuilder ( ) ; render ( config , res ) ; return res . toString ( ) ;
public class ExeHelpAction { /** * { @ inheritDoc } Prints the usage statement . The format is : * < pre > * Usage : { tasks | . . . } [ arguments ] * < / pre > */ public String getScriptUsage ( ) { } }
StringBuffer scriptUsage = new StringBuffer ( NL ) ; scriptUsage . append ( getHelpPart ( "usage" , COMMAND ) ) ; scriptUsage . append ( " {" ) ; ExeAction [ ] tasks = ExeAction . values ( ) ; for ( int i = 0 ; i < tasks . length ; i ++ ) { ExeAction task = tasks [ i ] ; scriptUsage . append ( task . toString ( ) ) ; i...
public class SectionCursorAdapter { /** * This will map a position in the list adapter ( which includes mSections ) to a position in * the cursor ( which does not contain mSections ) . * @ param listPosition the position of the current item in the list with mSections included * @ return the correct position to us...
if ( mSections . size ( ) == 0 ) { return listPosition ; } else if ( ! isSection ( listPosition ) ) { int sectionIndex = getIndexWithinSections ( listPosition ) ; if ( isListPositionBeforeFirstSection ( listPosition , sectionIndex ) ) { return listPosition ; } else { return listPosition - ( sectionIndex + 1 ) ; } } els...
public class StructureSequenceMatcher { /** * Generates a ProteinSequence corresponding to the sequence of struct , * and maintains a mapping from the sequence back to the original groups . * Chains are appended to one another . ' X ' is used for heteroatoms . * @ param struct Input structure * @ param groupInd...
if ( groupIndexPosition != null ) { groupIndexPosition . clear ( ) ; } StringBuilder seqStr = new StringBuilder ( ) ; for ( Chain chain : struct . getChains ( ) ) { List < Group > groups = chain . getAtomGroups ( ) ; Map < Integer , Integer > chainIndexPosition = new HashMap < Integer , Integer > ( ) ; int prevLen = se...
public class PersistentExecutorMBeanImpl { /** * ( non - Javadoc ) * @ see com . ibm . websphere . concurrent . persistent . mbean . PersistentExecutorMBean # transfer ( java . lang . Long , long ) */ @ Override public int transfer ( Long maxTaskId , long oldPartitionId ) throws Exception { } }
try { return _pe . transfer ( maxTaskId , oldPartitionId ) ; } catch ( Exception e ) { throw buildAndLogException ( e ) ; }
public class SimulatorJobTracker { /** * The cleanupJob method maintains the queue cleanQueue . When a job is finalized , * it is added to the cleanupQueue . Jobs are removed from the cleanupQueue * so that its size is maintained to be less than that specified by * JOBS _ IN _ MUMAK _ MEMORY . * @ param job : T...
cleanupQueue . add ( job . getJobID ( ) ) ; while ( cleanupQueue . size ( ) > JOBS_IN_MUMAK_MEMORY ) { JobID removedJob = cleanupQueue . poll ( ) ; // retireJob ( removedJob , " " ) ; }
public class JavaLexer { /** * $ ANTLR start " T _ _ 56" */ public final void mT__56 ( ) throws RecognitionException { } }
try { int _type = T__56 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 37:7 : ( ' > ' ) // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 37:9 : ' > ' { match ( '>' ) ; } state . type = _typ...
public class ClientNode { /** * Gets node index and its peer count * @ return ClientsResult object with info */ public ClientsResult calculateAllNodesResult ( ) { } }
final List < String > childNodePaths = getChildren ( electionRootPath , false ) ; _logger . info ( "Total peers = {} " , childNodePaths . size ( ) ) ; Collections . sort ( childNodePaths ) ; int index = childNodePaths . indexOf ( clientNodePath . substring ( clientNodePath . lastIndexOf ( '/' ) + 1 ) ) ; return new Cli...
public class DocumentStore { /** * Deletes the DocumentStore instance . * @ throws DocumentStoreNotDeletedException if the DocumentStore doesn ' t exist on disk or * if there was an error deleting the DocumentStore directory . */ public void delete ( ) throws DocumentStoreNotDeletedException { } }
try { this . close ( ) ; } catch ( Exception e ) { // caught exception could be something benign like DocumentStore already closed , so just log logger . log ( Level . WARNING , "Caught exception whilst closing DocumentStore in delete()" , e ) ; } if ( ! location . exists ( ) ) { String msg = String . format ( "Documen...
public class ClassHelper { /** * Load a class . * @ param name * The class name . * @ param < T > * The expected class type . * @ return The class . */ public static < T > Class < T > getType ( String name ) { } }
Class < T > type ; try { type = ( Class < T > ) Class . forName ( name ) ; } catch ( ClassNotFoundException e ) { throw new XOException ( "Cannot find class with name '" + name + "'" , e ) ; } return type ;
public class ClassScanner { /** * Finds a class from its name */ public Class < ? > findClass ( String className ) throws ClassNotFoundException { } }
for ( String skip : SKIP_CLASSES ) { if ( skip . equals ( className ) ) { return null ; } } for ( ClassLoader classLoader : getClassLoaders ( ) ) { try { return classLoader . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { // ignore } } return Class . forName ( className ) ;
public class EncryptionContext { /** * Fluent API to add encryption context . */ public EncryptionContext withContext ( String key , String value ) { } }
this . context . put ( key , value ) ; return this ;
public class HttpRosetteAPI { /** * Returns a byte array from InputStream . * @ param is InputStream * @ return byte array * @ throws IOException */ private static byte [ ] getBytes ( InputStream is ) throws IOException { } }
ByteArrayOutputStream out = new ByteArrayOutputStream ( ) ; byte [ ] buf = new byte [ 4096 ] ; while ( true ) { int r = is . read ( buf ) ; if ( r == - 1 ) { out . flush ( ) ; return out . toByteArray ( ) ; } out . write ( buf , 0 , r ) ; }
public class ClientCertificateSigner { /** * The main method for this application . It expects the following arguments : * < ol > * < li > The name of the target environment ( e . g . Sandbox , PreProd , Production , etc . ) . < / li > * < li > The name of the client . < / li > * < li > The path to the director...
String environment = args [ 0 ] ; String clientCertificatePrefix = args [ 1 ] + "-" + environment ; String caKeyStorePrefix = args [ 2 ] + File . separator + environment + "-CA" ; try ( FileReader pwReader = new FileReader ( caKeyStorePrefix + ".pw" ) ; FileInputStream caInput = new FileInputStream ( caKeyStorePrefix +...
public class CryptoUtil { /** * 生成AES密钥 , 可选长度为128,192,256位 . */ public static byte [ ] generateAesKey ( int keysize ) { } }
try { KeyGenerator keyGenerator = KeyGenerator . getInstance ( AES_ALG ) ; keyGenerator . init ( keysize ) ; SecretKey secretKey = keyGenerator . generateKey ( ) ; return secretKey . getEncoded ( ) ; } catch ( GeneralSecurityException e ) { throw ExceptionUtil . unchecked ( e ) ; }
public class DiscCache { /** * 设置缓存文件夹的名字 * @ param dirName Dir Name */ public void setCacheDir ( String dirName , int mode ) { } }
if ( sDebug ) { LogUtils . v ( TAG , "setCacheDir() dirName=" + dirName + " mode=" + mode ) ; } if ( dirName == null ) { mCacheDirName = DIR_NAME_DEFAULT ; } else { mCacheDirName = dirName ; } mMode = mode ; checkCacheDir ( true ) ;
import java . util . Iterator ; import java . util . HashMap ; import java . util . Map ; public class FilterDictionary { /** * This function filters a dictionary based on its values . It excludes entries that have values below the specified threshold . * Examples : * filter _ dictionary ( { ' Cierra Vega ' : 175 ,...
HashMap < Object , Integer > filtered_dict = new HashMap < Object , Integer > ( ) ; Iterator < Map . Entry < Object , Integer > > itr = input_dict . entrySet ( ) . iterator ( ) ; while ( itr . hasNext ( ) ) { Map . Entry < Object , Integer > entry = itr . next ( ) ; if ( entry . getValue ( ) >= threshold ) { filtered_d...
public class CPRuleAssetCategoryRelLocalServiceBaseImpl { /** * Deletes the cp rule asset category rel with the primary key from the database . Also notifies the appropriate model listeners . * @ param CPRuleAssetCategoryRelId the primary key of the cp rule asset category rel * @ return the cp rule asset category r...
return cpRuleAssetCategoryRelPersistence . remove ( CPRuleAssetCategoryRelId ) ;
public class PortletPlaceholderEventSource { /** * Implement to generate CharacterEvents based on a { @ link StartElement } match . If not * implemented throws UnsupportedOperationException */ protected void generateCharacterEvents ( IPortletWindowId portletWindowId , StartElement event , Collection < CharacterEvent ...
throw new UnsupportedOperationException ( ) ;