signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class UpdateFunctionConfigurationRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( UpdateFunctionConfigurationRequest updateFunctionConfigurationRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( updateFunctionConfigurationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateFunctionConfigurationRequest . getFunctionName ( ) , FUNCTIONNAME_BINDING ) ; protocolMarshaller . marshall ( updateFunctionConfigurationRequest...
public class CSSCombineMediaPostProcessor { /** * ( non - Javadoc ) * @ see net . jawr . web . resource . bundle . postprocess . * AbstractChainedResourceBundlePostProcessor * # doPostProcessBundle ( net . jawr . web . resource . bundle . postprocess * . BundleProcessingStatus , java . lang . StringBuffer ) */ ...
LOGGER . info ( "Post processing file '" + status . getLastPathAdded ( ) + "'" ) ; String bundleMediaTypePropertyName = "jawr.css.bundle." + status . getCurrentBundle ( ) . getName ( ) + ".media" ; JawrConfig config = status . getJawrConfig ( ) ; String bundleMediaType = ( String ) config . getProperty ( bundleMediaTyp...
public class PoolableObjects { /** * Queues the { @ code future } into the waiting list * @ param future the future who is waiting to borrow from this pool */ public void queue ( final PoolWaitFuture < PoolableObject < V > > future ) { } }
if ( future == null ) return ; waiting . add ( future ) ;
public class ClientImpl { /** * Synchronously invoke a procedure call blocking until a result is available . * @ param batchTimeout procedure invocation batch timeout . * @ param allPartition whether this is an all - partition invocation * @ param procName class name ( not qualified by package ) of the procedure ...
long handle = m_handle . getAndIncrement ( ) ; ProcedureInvocation invocation = new ProcedureInvocation ( handle , batchTimeout , allPartition , procName , parameters ) ; long nanos = unit . toNanos ( clientTimeout ) ; return internalSyncCallProcedure ( nanos , invocation ) ;
public class GenerateServiceTicketAction { /** * Checks if { @ code gateway } is present in the request params . * @ param context the context * @ return true , if gateway present */ protected boolean isGatewayPresent ( final RequestContext context ) { } }
val requestParameterMap = context . getExternalContext ( ) . getRequestParameterMap ( ) ; return StringUtils . hasText ( requestParameterMap . get ( CasProtocolConstants . PARAMETER_GATEWAY ) ) ;
public class OCP_Sample { /** * tag OCP request - > HTTPMessage */ public static void httpComponentWithTry ( HttpPut request , String auth ) { } }
auth = auth + "password" ; try { // this will probably be tagged with // CSI _ CHAR _ SET _ ISSUES _ USE _ STANDARD _ CHARSET , if compiled under JDK 7 // or later request . addHeader ( "Authorization" , Base64 . encodeBase64String ( auth . getBytes ( "UTF-8" ) ) ) ; } catch ( UnsupportedEncodingException e ) { e . pri...
public class I2CDeviceImpl { /** * This method writes several bytes to the i2c device from given buffer at given offset . * @ param data buffer of data to be written to the i2c device in one go * @ param offset offset in buffer * @ param size number of bytes to be written * @ throws IOException thrown in case b...
getBus ( ) . writeBytesDirect ( this , size , offset , data ) ;
public class Simple16 { /** * Uncompress data from an array to another array . * Both inpos and outpos parameters are modified to indicate new positions * after read / write . * @ param in * array containing data in compressed form * @ param tmpinpos * where to start reading in the array * @ param inlengt...
final int finalpos = tmpinpos + inlength ; while ( tmpinpos < finalpos ) { final int howmany = decompressblock ( out , currentPos , in , tmpinpos , outlength ) ; outlength -= howmany ; currentPos += howmany ; tmpinpos += 1 ; }
public class AWSIotClient { /** * Gets the search configuration . * @ param getIndexingConfigurationRequest * @ return Result of the GetIndexingConfiguration operation returned by the service . * @ throws InvalidRequestException * The request is not valid . * @ throws ThrottlingException * The rate exceeds ...
request = beforeClientExecution ( request ) ; return executeGetIndexingConfiguration ( request ) ;
public class AbstractHCElement { /** * Note : return type cannot by IMicroElement since the checkbox object * delivers an IMicroNodeList ! */ @ Override @ Nonnull @ OverridingMethodsMustInvokeSuper protected IMicroNode internalConvertToMicroNode ( @ Nonnull final IHCConversionSettingsToNode aConversionSettings ) { } ...
// Create the element final IMicroElement ret = createMicroElement ( aConversionSettings ) ; if ( ret == null ) throw new IllegalStateException ( "Created a null element!" ) ; // Set all HTML attributes etc . fillMicroElement ( ret , aConversionSettings ) ; // Optional callback after everything was done ( implementatio...
public class Expressions { /** * Create a new Path expression * @ param type element type * @ param queryType element expression type * @ param metadata path metadata * @ param < E > element type * @ param < Q > element expression type * @ return path expression */ public static < E , Q extends SimpleExpres...
return new ListPath < E , Q > ( type , queryType , metadata ) ;
public class CommandLineJmxClient { /** * Run a script . This might go recursive if we run from within a script . */ private void runScript ( String alias , int levelC ) throws IOException { } }
String scriptFile = alias ; InputStream stream ; try { stream = getInputStream ( scriptFile ) ; if ( stream == null ) { System . out . println ( "Error. Script file is not found: " + scriptFile ) ; return ; } } catch ( IOException e ) { System . out . println ( "Error. Could not load script file " + scriptFile + ": "...
public class BplusTreeFile { /** * Create a LRU hashmap of size maxSize * @ param maxSize * @ return IntLinkedHashMap */ @ SuppressWarnings ( "rawtypes" ) private IntLinkedHashMap < Node > createCacheLRUlinked ( final int maxSize ) { } }
return new IntLinkedHashMap < Node > ( ( int ) ( maxSize * 1.5f ) , Node . class , true ) ;
public class SFTPRepositoryStrategy { /** * Ermittelt anhand der < code > SUBDIR _ POLICY < / code > das Unterverzeichnis , in dem das Item zu der übergebenen Id * gepeichert ist bzw . werden muss . * Das Verzeichnis wird angelegt , falls es nicht existiert . * @ param id * des Items * @ return Verzeichnis ,...
String path = objs + UNIX_PATH_SEPERATOR + id . substring ( 0 , SUBDIR_POLICY ) ; safeMkdir ( path ) ; return path ;
public class SipParser { /** * Expect the next byte to be a white space * @ param buffer */ public static int expectWS ( final Buffer buffer ) throws SipParseException { } }
int consumed = 0 ; try { if ( buffer . hasReadableBytes ( ) ) { final byte b = buffer . getByte ( buffer . getReaderIndex ( ) ) ; if ( b == SP || b == HTAB ) { // ok , it was a WS so consume the byte buffer . readByte ( ) ; ++ consumed ; } else { throw new SipParseException ( buffer . getReaderIndex ( ) , "Expected WS"...
public class ChangeTagsForResourceRequest { /** * A complex type that contains a list of the tags that you want to add to the specified health check or hosted zone * and / or the tags that you want to edit < code > Value < / code > for . * You can add a maximum of 10 tags to a health check or a hosted zone . * < ...
if ( this . addTags == null ) { setAddTags ( new com . amazonaws . internal . SdkInternalList < Tag > ( addTags . length ) ) ; } for ( Tag ele : addTags ) { this . addTags . add ( ele ) ; } return this ;
public class SearchResult { /** * The requested facet information . * @ param facets * The requested facet information . * @ return Returns a reference to this object so that method calls can be chained together . */ public SearchResult withFacets ( java . util . Map < String , BucketInfo > facets ) { } }
setFacets ( facets ) ; return this ;
public class InternalSubchannel { /** * Returns a READY transport that will be used to create new streams . * < p > Returns { @ code null } if the state is not READY . Will try to connect if state is IDLE . */ @ Nullable ClientTransport obtainActiveTransport ( ) { } }
ClientTransport savedTransport = activeTransport ; if ( savedTransport != null ) { return savedTransport ; } try { synchronized ( lock ) { savedTransport = activeTransport ; // Check again , since it could have changed before acquiring the lock if ( savedTransport != null ) { return savedTransport ; } if ( state . getS...
public class Utils { /** * in CBLMisc . m * BOOL CBLMayBeTransientError ( NSError * error ) */ public static boolean isTransientError ( Throwable throwable ) { } }
if ( throwable instanceof CouchbaseLiteException ) { CouchbaseLiteException e = ( CouchbaseLiteException ) throwable ; return isTransientError ( e . getCBLStatus ( ) . getCode ( ) ) ; } else if ( throwable instanceof RemoteRequestResponseException ) { RemoteRequestResponseException e = ( RemoteRequestResponseException ...
public class StandaloneAhcWSResponse { /** * Get all the HTTP headers of the response as a case - insensitive map */ @ Override public Map < String , List < String > > getHeaders ( ) { } }
final Map < String , List < String > > headerMap = new TreeMap < > ( String . CASE_INSENSITIVE_ORDER ) ; final HttpHeaders headers = ahcResponse . getHeaders ( ) ; for ( String name : headers . names ( ) ) { final List < String > values = headers . getAll ( name ) ; headerMap . put ( name , values ) ; } return headerMa...
public class LogHelper { /** * Log error to a logging service ( if available ) , otherwise log to std error * @ param pBundleContext bundle context to lookup LogService * @ param pMessage message to log * @ param pThrowable an exception to log */ public static void logError ( BundleContext pBundleContext , String...
final ServiceReference lRef = pBundleContext . getServiceReference ( LogService . class . getName ( ) ) ; if ( lRef != null ) { try { final LogService logService = ( LogService ) pBundleContext . getService ( lRef ) ; if ( logService != null ) { logService . log ( LogService . LOG_ERROR , pMessage , pThrowable ) ; retu...
public class LabelFMESVisitor { /** * Add leaf node label . */ private void addLeafLabel ( ) { } }
final int nodeKind = mRtx . getNode ( ) . getKind ( ) ; if ( ! mLeafLabels . containsKey ( nodeKind ) ) { mLeafLabels . put ( nodeKind , new ArrayList < ITreeData > ( ) ) ; } mLeafLabels . get ( nodeKind ) . add ( mRtx . getNode ( ) ) ;
public class FeatureTransaction { /** * Transform this object into a DTO feature transaction . * @ return feature transaction DTO */ public org . geomajas . layer . feature . FeatureTransaction toDto ( ) { } }
org . geomajas . layer . feature . FeatureTransaction dto = new org . geomajas . layer . feature . FeatureTransaction ( ) ; dto . setLayerId ( layer . getServerLayerId ( ) ) ; if ( oldFeatures != null ) { org . geomajas . layer . feature . Feature [ ] oldDto = new org . geomajas . layer . feature . Feature [ oldFeature...
public class RevocableLicense { /** * Check if the license is revoked or not . To get the revocation information * the method tries to issue a http connection ( GET ) to the url specified in * the license feature { @ code revocationUrl } . If the URL returns anything * with http status code { @ code 200 } then th...
var revoked = true ; try { final var url = getRevocationURL ( ) ; if ( url == null ) { return false ; } final var con = httpHandler . open ( url ) ; con . setUseCaches ( false ) ; if ( con instanceof HttpURLConnection ) { final var hCon = ( HttpURLConnection ) con ; hCon . connect ( ) ; return httpHandler . responseCod...
public class CommerceRegionPersistenceImpl { /** * Returns all the commerce regions where commerceCountryId = & # 63 ; . * @ param commerceCountryId the commerce country ID * @ return the matching commerce regions */ @ Override public List < CommerceRegion > findByCommerceCountryId ( long commerceCountryId ) { } }
return findByCommerceCountryId ( commerceCountryId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ;
public class SolrTermVector { /** * Converts doc - level term vector information the Solr QueryResponse into a SolrTermVector . */ public static SolrTermVector newInstance ( String docId , HashingTF hashingTF , NamedList < Object > termList ) { } }
int termCount = termList . size ( ) ; int [ ] indices = new int [ termCount ] ; double [ ] weights = new double [ termCount ] ; String [ ] terms = new String [ termCount ] ; Iterator < Map . Entry < String , Object > > termsIter = termList . iterator ( ) ; int idx = - 1 ; while ( termsIter . hasNext ( ) ) { Map . Entry...
public class StatsServlet { /** * Update tracking interval for a given metrics */ private void handleChangeMetricInterval ( final HttpServletRequest req , final Map < String , Object > ret ) throws ServletException { } }
try { final String metricName = getParam ( req , STATS_MAP_METRICNAMEPARAM ) ; final long newInterval = getLongParam ( req , STATS_MAP_REPORTINGINTERVAL ) ; if ( MetricReportManager . isAvailable ( ) ) { final MetricReportManager metricManager = MetricReportManager . getInstance ( ) ; final TimeBasedReportingMetric < ?...
public class BigDecimal { /** * Returns a { @ code BigDecimal } whose value is < tt > ( this & times ; * multiplicand ) < / tt > , and whose scale is { @ code ( this . scale ( ) + * multiplicand . scale ( ) ) } . * @ param multiplicand value to be multiplied by this { @ code BigDecimal } . * @ return { @ code t...
int productScale = checkScale ( ( long ) scale + multiplicand . scale ) ; if ( this . intCompact != INFLATED ) { if ( ( multiplicand . intCompact != INFLATED ) ) { return multiply ( this . intCompact , multiplicand . intCompact , productScale ) ; } else { return multiply ( this . intCompact , multiplicand . intVal , pr...
public class AbstractCache { /** * Returns directly the < code > Future < / code > associated with the key or null * if an entry does not exist . This method will not create a task for a * non - existent entry . This method is primarily used for testing . * @ param key * Key to use for the entity lookup . * @...
assert ( key != null ) ; return cache . get ( key ) ;
public class StateMachine { /** * Private method to set the state - not available to subclasses . < br > * Restricted to ensure mod never gets into an illegal state . * @ param toState state we are transitioning to . */ private void setState ( IState toState ) { } }
// We want to make sure state changes happen purely on the " home " thread , // for the sake of sanity and avoiding many obscure race - condition bugs . if ( Thread . currentThread ( ) == this . homeThread ) { // We are on the home thread , so safe to proceed : if ( this . state != toState ) { System . out . println ( ...
public class NamespaceVisitFromServerGetWatchDeleteRecreateWaitApplicableListImpl { /** * Waits until the latch reaches to zero and then checks if the expected result * @ param latch The latch . * @ param expected The expected number . * @ param actual The actual number . * @ param amount The amount of time to ...
try { if ( latch . await ( amount , timeUnit ) ) { return actual . intValue ( ) == expected ; } return false ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; return false ; }
public class CausticUtil { /** * Checks if two OpenGL versioned object have compatible version . Throws an exception if that ' s not the case . A version is determined to be compatible with another is it ' s lower than the said * version . This isn ' t always true when deprecation is involved , but it ' s an acceptab...
if ( ! debug ) { return ; } final GLVersion requiredVersion = required . getGLVersion ( ) ; final GLVersion objectVersion = object . getGLVersion ( ) ; if ( objectVersion . getMajor ( ) > requiredVersion . getMajor ( ) && objectVersion . getMinor ( ) > requiredVersion . getMinor ( ) ) { throw new IllegalStateException ...
public class Stream { /** * Terminal operation returning an immutable SortedSet with all the elements of this Stream , * sorted using the supplied { @ code Comparator } . Use { @ link Ordering # natural ( ) } to sort * Comparable elements based on { @ link Comparable # compareTo ( Object ) } order . Call this metho...
return ImmutableSortedSet . copyOf ( comparator , toCollection ( Lists . < T > newArrayListWithCapacity ( 256 ) ) ) ;
public class ServiceApiWrapper { /** * Get profile details from the service . * @ param token Comapi access token . * @ param profileId Profile Id of the user . * @ return Profile details from the service . */ Observable < ComapiResult < Map < String , Object > > > doGetProfile ( @ NonNull final String token , @ ...
return wrapObservable ( service . getProfile ( AuthManager . addAuthPrefix ( token ) , apiSpaceId , profileId ) . map ( mapToComapiResult ( ) ) , log , "Getting profile " + profileId ) ;
public class AsperaTransactionImpl { /** * Check if the status been passed through to check matches the * current status of the xferId within the transferListener * @ param status * @ return boolean */ private boolean doesStatusMatch ( String status ) { } }
return ( status . equals ( transferListener . getStatus ( xferid ) ) ? true : false ) ;
public class NodeWriteTrx { /** * Adapting the structure with a rolling hash for all ancestors only with * remove . * @ throws TTIOException * if anything weird happened */ private void rollingRemove ( ) throws TTException { } }
final ITreeData startNode = mDelegate . getCurrentNode ( ) ; long hashToRemove = startNode . getHash ( ) ; long hashToAdd = 0 ; long newHash = 0 ; // go the path to the root do { synchronized ( mDelegate . getCurrentNode ( ) ) { getPtx ( ) . getData ( mDelegate . getCurrentNode ( ) . getDataKey ( ) ) ; if ( mDelegate ....
public class EquivalenceBasedProvenancedAlignment { /** * Any equivalence class is by definition aligned to itself if it is present on both the left * and the right . Otherwise , it has no alignment . */ private Collection < EqClassT > getAlignedTo ( final Object item ) { } }
if ( rightEquivalenceClassesToProvenances . containsKey ( item ) && leftEquivalenceClassesToProvenances . containsKey ( item ) ) { return ImmutableList . of ( ( EqClassT ) item ) ; } else { return ImmutableList . of ( ) ; }
public class CmsLocationPicker { /** * Sets the preview visible . < p > * @ param visible < code > true < / code > to set the preview visible */ protected void setPreviewVisible ( boolean visible ) { } }
if ( visible ) { addStyleName ( I_CmsLayoutBundle . INSTANCE . locationPickerCss ( ) . hasPreview ( ) ) ; } else { removeStyleName ( I_CmsLayoutBundle . INSTANCE . locationPickerCss ( ) . hasPreview ( ) ) ; }
public class OperaSettings { /** * Sets the profile to use as an Opera profile represented as an object . * @ param profile the Opera profile to use * @ throws NullPointerException if argument is null */ public void setProfile ( OperaProfile profile ) { } }
options . get ( PROFILE ) . setValue ( PROFILE . sanitize ( profile ) ) ; supportsPd = true ;
public class KnowledgeBaseImpl { /** * Handles the write serialization of the Package . Patterns in Rules may reference generated data which cannot be serialized by default methods . * The Package uses PackageCompilationData to hold a reference to the generated bytecode . The generated bytecode must be restored befor...
ObjectOutput droolsStream ; boolean isDrools = out instanceof DroolsObjectOutputStream ; ByteArrayOutputStream bytes ; out . writeBoolean ( isDrools ) ; if ( isDrools ) { droolsStream = out ; bytes = null ; } else { bytes = new ByteArrayOutputStream ( ) ; droolsStream = new DroolsObjectOutputStream ( bytes ) ; } // mus...
public class CharBuffer { /** * Appends < code > sb < / code > to the end of this CharBuffer . * This method involves copying the new data once ! * @ param sb the StringBuffer to append or null */ public void append ( final StringBuffer sb ) { } }
if ( sb == null ) { return ; } provideCapacity ( length + sb . length ( ) ) ; sb . getChars ( 0 , sb . length ( ) , c , length ) ; length += sb . length ( ) ;
public class JSettingsPanel { /** * GEN - LAST : event _ jCheckBoxDrawFinalZeroingLinesActionPerformed */ private void jCheckBoxDrawCurrentXActionPerformed ( java . awt . event . ActionEvent evt ) // GEN - FIRST : event _ jCheckBoxDrawCurrentXActionPerformed { } }
// GEN - HEADEREND : event _ jCheckBoxDrawCurrentXActionPerformed parent . getGraphPanelChart ( ) . getChartSettings ( ) . setDrawCurrentX ( jCheckBoxDrawCurrentX . isSelected ( ) ) ; refreshGraphPreview ( ) ;
public class PatternToExpVisitor { /** * Now , compound patterns involve recursive calls to expand their pattern components to expressions . * @ param node * @ return * @ throws AnalysisException */ public PExp caseARecordPattern ( ARecordPattern node ) throws AnalysisException { } }
AMkTypeExp mkExp = new AMkTypeExp ( ) ; mkExp . setTypeName ( node . getTypename ( ) . clone ( ) ) ; List < PExp > args = new Vector < PExp > ( ) ; for ( PPattern p : node . getPlist ( ) ) { args . add ( p . apply ( this ) . clone ( ) ) ; } addPossibleType ( mkExp , node ) ; mkExp . setArgs ( args ) ; return mkExp ;
public class SerIteratorFactory { /** * Gets an iterable wrapper for { @ code List } . * @ param valueType the value type , not null * @ param valueTypeTypes the generic parameters of the value type * @ return the iterable , not null */ public static final SerIterable list ( final Class < ? > valueType , final Li...
final List < Object > coll = new ArrayList < > ( ) ; return new SerIterable ( ) { @ Override public SerIterator iterator ( ) { return collection ( coll , Object . class , valueType , valueTypeTypes ) ; } @ Override public void add ( Object key , Object column , Object value , int count ) { if ( key != null ) { throw ne...
public class MapBasedConnPropsBuilder { /** * suppress warnings about not using an object for the four strings in this PRIVATE method */ @ SuppressWarnings ( { } }
"PMD.UseObjectForClearerAPI" } ) // CHECKSTYLE : ON private static void logDefault ( final String key , final String invalidValue , final String validationError , final String defaultValue ) { if ( LOG . isWarnEnabled ( ) ) { final StringBuilder msg = new StringBuilder ( "Invalid value ('" ) . append ( invalidValue ) ....
public class IronJacamar { /** * { @ inheritDoc } */ @ Override protected Statement withAfters ( final FrameworkMethod method , final Object target , final Statement statement ) { } }
final Statement afters = super . withAfters ( method , target , new NoopStatement ( ) ) ; return new Statement ( ) { @ Override public void evaluate ( ) throws Throwable { statement . evaluate ( ) ; afters . evaluate ( ) ; TestClass tc = getTestClass ( ) ; // Non - static @ Resource List < FrameworkField > fields = tc ...
public class FunctionTypeBuilder { /** * Clobber the templateTypeNames from the JSDoc with builtin ones for native types . */ private boolean maybeUseNativeClassTemplateNames ( JSDocInfo info ) { } }
// TODO ( b / 74253232 ) : maybeGetNativeTypesOfBuiltin should also handle cases where a local type // declaration shadows a templatized native type . ImmutableList < TemplateType > nativeKeys = typeRegistry . maybeGetTemplateTypesOfBuiltin ( fnName ) ; // TODO ( b / 73386087 ) : Make infoTemplateTypeNames . size ( ) =...
public class EntityListenerDescFactory { /** * / * * インポート名を処理します 。 * @ param entityListenerDesc エンティティリスナー記述 * @ param entityDesc エンティティ記述 */ protected void handleImportName ( EntityListenerDesc entityListenerDesc , EntityDesc entityDesc ) { } }
classDescSupport . addImportName ( entityListenerDesc , entityDesc . getQualifiedName ( ) ) ; if ( superclassName == null ) { classDescSupport . addImportName ( entityListenerDesc , ClassConstants . EntityListener ) ; classDescSupport . addImportName ( entityListenerDesc , ClassConstants . PreInsertContext ) ; classDes...
public class ParsedColInfo { /** * and syncs with ( table / column ) * ( name / alias ) . */ public ParsedColInfo toTVE ( int indx , int diff ) { } }
TupleValueExpression exp = new TupleValueExpression ( m_tableName , m_tableAlias , m_columnName , m_alias , m_expression , indx ) ; exp . setDifferentiator ( diff ) ; m_expression = exp ; return this ;
public class VirtualMachineScaleSetsInner { /** * Reimages ( upgrade the operating system ) one or more virtual machines in a VM scale set . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set . * @ throws IllegalArgumentException thrown if parameters...
return beginReimageWithServiceResponseAsync ( resourceGroupName , vmScaleSetName ) . map ( new Func1 < ServiceResponse < OperationStatusResponseInner > , OperationStatusResponseInner > ( ) { @ Override public OperationStatusResponseInner call ( ServiceResponse < OperationStatusResponseInner > response ) { return respon...
public class FileSender { /** * Sends the file to the given output group . */ private void doSendFile ( final AsyncFile file , final OutputGroup group , final int position , final Handler < AsyncResult < Void > > doneHandler ) { } }
if ( ! group . sendQueueFull ( ) ) { file . read ( new Buffer ( BUFFER_SIZE ) , 0 , position , BUFFER_SIZE , new Handler < AsyncResult < Buffer > > ( ) { @ Override public void handle ( AsyncResult < Buffer > result ) { if ( result . failed ( ) ) { new DefaultFutureResult < Void > ( result . cause ( ) ) . setHandler ( ...
public class DefaultEventbus { /** * - - - RECEIVE EVENT FROM REMOTE SERVICE - - - */ @ Override public void receiveEvent ( Tree message ) { } }
// Verify protocol version if ( checkVersion ) { String ver = message . get ( "ver" , "unknown" ) ; if ( ! ServiceBroker . PROTOCOL_VERSION . equals ( ver ) ) { logger . warn ( "Invalid protocol version (" + ver + ")!" ) ; return ; } } // Get event property String name = message . get ( "event" , ( String ) null ) ; if...
public class XsdSupportingStructure { /** * Creates the TextGroup interface . * Methods : * < R > T text ( R text ) * < R > T comment ( R comment ) * @ param apiName The name of the generated fluent interface . */ private static void createTextGroup ( String apiName ) { } }
ClassWriter classWriter = generateClass ( TEXT_GROUP , JAVA_OBJECT , new String [ ] { ELEMENT } , "<T::" + elementTypeDesc + "Z::" + elementTypeDesc + ">" + JAVA_OBJECT_DESC + "L" + elementType + "<TT;TZ;>;" , ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE , apiName ) ; textGroupMethod ( classWriter , "text" , "visitText" )...
public class LinkOptionsExample { /** * this is were the majority of the work is done for building the link . Note that it is in a container that is * reset , effectively creating a new link . this is only done to enable to dynamically change the link to a button * and back . */ private void applySettings ( ) { } }
linkContainer . reset ( ) ; WLink exampleLink = new WLink ( ) ; exampleLink . setText ( tfLinkLabel . getText ( ) ) ; final String url = tfUrlField . getValue ( ) ; if ( "" . equals ( url ) || ! isValidUrl ( url ) ) { tfUrlField . setText ( URL ) ; exampleLink . setUrl ( URL ) ; } else { exampleLink . setUrl ( url ) ; ...
public class AuditBaseDao { /** * Checks if the database is MySQL . * @ return true , if is my sql database * @ throws HandlerException the handler exception */ protected boolean isMySQLDatabase ( ) throws HandlerException { } }
String dbName = determineDatabaseType ( ) ; if ( dbName == null ) { return false ; } return "MySQL" . equalsIgnoreCase ( dbName ) ;
public class Main { /** * copy all jars * @ param outputDir output directory * @ throws IOException ioException */ private static void copyAllJars ( String outputDir ) throws IOException { } }
File out = new File ( outputDir ) ; String targetPath = out . getAbsolutePath ( ) + File . separatorChar + "lib" ; File current = new File ( "." ) ; String path = current . getCanonicalPath ( ) ; String libPath = path + File . separatorChar + ".." + File . separatorChar + ".." + File . separatorChar + "lib" ; Utils . c...
public class VariableLengthRowBasedKeyValueBatch { /** * Returns the key row in this batch at ` rowId ` . Returned key row is reused across calls . */ @ Override public UnsafeRow getKeyRow ( int rowId ) { } }
assert ( rowId >= 0 ) ; assert ( rowId < numRows ) ; if ( keyRowId != rowId ) { // if keyRowId = = rowId , desired keyRow is already cached long offset = keyOffsets [ rowId ] ; int klen = Platform . getInt ( base , offset - 4 ) ; keyRow . pointTo ( base , offset , klen ) ; // set keyRowId so we can check if desired row...
public class Unpooled { /** * Creates a new buffer whose content is a merged copy of the specified * { @ code buffers } ' slices . The new buffer ' s { @ code readerIndex } and * { @ code writerIndex } are { @ code 0 } and the sum of all buffers ' * { @ code remaining } respectively . * @ throws IllegalArgument...
switch ( buffers . length ) { case 0 : return EMPTY_BUFFER ; case 1 : return copiedBuffer ( buffers [ 0 ] ) ; } // Merge the specified buffers into one buffer . ByteOrder order = null ; int length = 0 ; for ( ByteBuffer b : buffers ) { int bLen = b . remaining ( ) ; if ( bLen <= 0 ) { continue ; } if ( Integer . MAX_VA...
public class TypeResolver { /** * Resolves a given type variable . This is achieved by a lookup in the { @ link # resolvedTypeVariables } map . */ public Type resolveType ( TypeVariable < ? > variable ) { } }
Type resolvedType = this . resolvedTypeVariables . get ( variable ) ; if ( resolvedType == null ) { return variable ; // we are not able to resolve } return resolvedType ;
public class Less { /** * Compile the less data from a string . * @ param baseURL * the baseURL for import of external less data . * @ param lessData * the input less data * @ param options * some optional options , see constants for details * @ param readerFactory * A factory for the readers for import...
try { if ( options == null ) { options = Collections . emptyMap ( ) ; } LessParser parser = new LessParser ( ) ; parser . parse ( baseURL , new StringReader ( lessData ) , readerFactory ) ; boolean compress = Boolean . parseBoolean ( options . get ( COMPRESS ) ) ; CssFormatter formatter = compress ? new CompressCssForm...
public class OjbTagsHandler { /** * Processes the template for all indices of the current table . * @ param template The template * @ param attributes The attributes of the tag * @ exception XDocletException if an error occurs * @ doc . tag type = " block " * @ doc . param name = " unique " optional = " true ...
boolean processUnique = TypeConversionUtil . stringToBoolean ( attributes . getProperty ( ATTRIBUTE_UNIQUE ) , false ) ; // first the default index _curIndexDef = _curTableDef . getIndex ( null ) ; if ( ( _curIndexDef != null ) && ( processUnique == _curIndexDef . isUnique ( ) ) ) { generate ( template ) ; } for ( Iter...
public class location { /** * Use this API to fetch location resources of given names . */ public static location [ ] get ( nitro_service service , String ipfrom [ ] ) throws Exception { } }
if ( ipfrom != null && ipfrom . length > 0 ) { location response [ ] = new location [ ipfrom . length ] ; location obj [ ] = new location [ ipfrom . length ] ; for ( int i = 0 ; i < ipfrom . length ; i ++ ) { obj [ i ] = new location ( ) ; obj [ i ] . set_ipfrom ( ipfrom [ i ] ) ; response [ i ] = ( location ) obj [ i ...
public class LayerImpl { /** * Unfolds a folded module list and returns a list of Source objects * @ param request The request * @ return A list of Source objects * @ throws IOException */ protected ModuleList getModules ( HttpServletRequest request ) throws IOException { } }
final String sourceMethod = "getModules" ; // $ NON - NLS - 1 $ final boolean isTraceLogging = log . isLoggable ( Level . FINER ) ; if ( isTraceLogging ) { log . entering ( sourceMethod , sourceMethod , new Object [ ] { request } ) ; } ModuleList result = ( ModuleList ) request . getAttribute ( MODULE_FILES_PROPNAME ) ...
public class ControlMessageFactoryImpl { /** * Create a new , empty Subscription Propagation message * @ return The new SubscriptionMessage * @ exception MessageCreateFailedException Thrown if such a message can not be created */ public final SubscriptionMessage createNewSubscriptionMessage ( ) throws MessageCreate...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewSubscriptionMessage" ) ; SubscriptionMessage msg = null ; try { msg = new SubscriptionMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; } catch ( MessageDecodeFailedException e ) { /* No need to FFDC this as JsMsg...
public class Context { /** * Handle a proxy request for this context . * @ param target the proxy target * @ param exchange the http server exchange * @ param callback the proxy callback * @ param timeout the timeout * @ param timeUnit the time unit * @ param exclusive whether this connection is exclusive *...
if ( addRequest ( ) ) { exchange . addExchangeCompleteListener ( new ExchangeCompletionListener ( ) { @ Override public void exchangeEvent ( HttpServerExchange exchange , NextListener nextListener ) { requestDone ( ) ; nextListener . proceed ( ) ; } } ) ; node . getConnectionPool ( ) . connect ( target , exchange , cal...
public class DefaultNameGenerator { /** * Validates a name prefix . */ private void checkPrefix ( String prefix ) { } }
if ( prefix . length ( ) > 0 ) { // Make sure that prefix starts with a legal character . if ( ! contains ( firstChars , prefix . charAt ( 0 ) ) ) { char [ ] chars = new char [ firstChars . length ] ; for ( int i = 0 ; i < chars . length ; i ++ ) { chars [ i ] = firstChars [ i ] . name ; } throw new IllegalArgumentExce...
public class KmeansCalculator { /** * KMeans + + アルゴリズムで初期の中心点リストを生成する 。 * @ param basePoints 中心点を生成するベースデータ * @ param clusterNum クラスタ数 * @ return 中心点リスト */ public static List < KmeansPoint > createInitialCentroids ( List < KmeansPoint > basePoints , int clusterNum ) { } }
Random random = new Random ( ) ; List < KmeansPoint > resultList = Lists . newArrayList ( ) ; // ベースデータリストを更新しないためにコピーを生成して用いる List < KmeansPoint > pointList = Lists . newArrayList ( basePoints ) ; KmeansPoint firstCentroid = pointList . remove ( random . nextInt ( pointList . size ( ) ) ) ; resultList . add ( first...
public class DragHelper { /** * Returns the speed of the drag gesture in pixels per millisecond . * @ return The speed of the drag gesture as a { @ link Float } value or - 1 , if the threshold has * not been reached yet */ public final float getDragSpeed ( ) { } }
if ( hasThresholdBeenReached ( ) ) { long interval = System . currentTimeMillis ( ) - dragStartTime ; return Math . abs ( getDragDistance ( ) ) / ( float ) interval ; } else { return - 1 ; }
public class FormatStringBuffer { /** * Skip digits and return the number they form . */ private int skipDigits ( ) { } }
char ch ; int i = 0 ; while ( index < format . length ( ) ) { if ( Character . isDigit ( ch = format . charAt ( index ) ) ) { index ++ ; i = i * 10 + Character . digit ( ch , 10 ) ; } else { break ; } } return i ;
public class CalendarParserImpl { /** * { @ inheritDoc } */ public final void parse ( final Reader in , final ContentHandler handler ) throws IOException , ParserException { } }
final StreamTokenizer tokeniser = new StreamTokenizer ( in ) ; try { tokeniser . resetSyntax ( ) ; tokeniser . wordChars ( WORD_CHAR_START , WORD_CHAR_END ) ; tokeniser . whitespaceChars ( WHITESPACE_CHAR_START , WHITESPACE_CHAR_END ) ; tokeniser . ordinaryChar ( ':' ) ; tokeniser . ordinaryChar ( ';' ) ; tokeniser . o...
public class StatementBuilder { /** * Gets the { @ link Statement } representing the state of this statement * builder . * @ return the { @ link Statement } */ public Statement toStatement ( ) { } }
Statement statement = new Statement ( ) ; statement . setQuery ( queryBuilder . buildQuery ( ) ) ; statement . setValues ( Maps . toList ( queryBuilder . getBindVariableMap ( ) , String_ValueMapEntry . class ) . toArray ( new String_ValueMapEntry [ ] { } ) ) ; return statement ;
public class FastStr { /** * Construct a FastStr from a String * @ param s the String * @ return a FastStr */ public static FastStr of ( String s ) { } }
int sz = s . length ( ) ; if ( sz == 0 ) return EMPTY_STR ; char [ ] buf = s . toCharArray ( ) ; return new FastStr ( buf , 0 , sz ) ;
public class PrettyTime { /** * / * [ deutsch ] * < p > Definiert das lokalisierte Minuszeichen . < / p > * < p > In den meisten Sprachen ist es einfach das Zeichen { @ code U + 002D } . * Per Vorgabe wird Time4J versuchen , die Konfiguration des * i18n - Moduls oder sonst die JDK - Einstellung zu verwenden . D...
if ( minusSign . equals ( this . minusSign ) ) { // NPE - check return this ; } return new PrettyTime ( this . locale , this . refClock , this . zeroDigit , minusSign , this . emptyUnit , this . weekToDays , this . shortStyle , this . stdListSeparator , this . endListSeparator ) ;
public class _ComponentAttributesMap { /** * Execute the getter method of the specified property on the underlying * component . * @ param propertyDescriptor specifies which property to read . * @ return the value returned by the getter method . * @ throws IllegalArgumentException if the property is not readabl...
Method readMethod = propertyDescriptor . getReadMethod ( ) ; if ( readMethod == null ) { throw new IllegalArgumentException ( "Component property " + propertyDescriptor . getName ( ) + " is not readable" ) ; } try { return readMethod . invoke ( _component , EMPTY_ARGS ) ; } catch ( Exception e ) { FacesContext facesCon...
public class GeoRSSModule { /** * ( non - Javadoc ) * @ see com . rometools . rome . feed . CopyFrom # copyFrom ( java . lang . Object ) */ @ Override public void copyFrom ( final CopyFrom obj ) { } }
final GeoRSSModule geoRSSModule = ( GeoRSSModule ) obj ; geometry = geoRSSModule . getGeometry ( ) ; try { geometry = ( AbstractGeometry ) geometry . clone ( ) ; } catch ( final CloneNotSupportedException ex ) { LOG . error ( "Error" , ex ) ; }
public class ProtocolCompatible { /** * Check if the client and DataNode have compatible ClientDataNodeProtocol versions * @ param clientVersion the version of ClientDatanodeProtocol that client has * @ param serverVersion the version of ClientDatanodeProtocol that DataNode has * @ return true if two versions are...
return clientVersion == serverVersion || ( ( clientVersion == ClientDatanodeProtocol . GET_BLOCKINFO_VERSION - 1 || clientVersion == ClientDatanodeProtocol . GET_BLOCKINFO_VERSION || clientVersion == ClientDatanodeProtocol . COPY_BLOCK_VERSION ) && ( serverVersion == ClientDatanodeProtocol . GET_BLOCKINFO_VERSION - 1 |...
public class filterhtmlinjectionvariable { /** * Use this API to fetch filterhtmlinjectionvariable resources of given names . */ public static filterhtmlinjectionvariable [ ] get ( nitro_service service , String variable [ ] ) throws Exception { } }
if ( variable != null && variable . length > 0 ) { filterhtmlinjectionvariable response [ ] = new filterhtmlinjectionvariable [ variable . length ] ; filterhtmlinjectionvariable obj [ ] = new filterhtmlinjectionvariable [ variable . length ] ; for ( int i = 0 ; i < variable . length ; i ++ ) { obj [ i ] = new filterhtm...
public class ArrayQueue { /** * Inserts the specified element at the end of this queue . * < p > This method is equivalent to { @ link # offer } . * @ param e the element to add * @ return < tt > true < / tt > ( as specified by { @ link Collection # add } ) * @ throws NullPointerException if the specified eleme...
if ( e == null ) throw new NullPointerException ( "e == null" ) ; elements [ tail ] = e ; if ( ( tail = ( tail + 1 ) & ( elements . length - 1 ) ) == head ) doubleCapacity ( ) ; return true ;
public class HttpTextViewUtils { /** * Validates the given { @ code start } and { @ code end } positions . * @ param start the start position to be validated * @ param end the end position to be validated * @ throws IllegalArgumentException if any of the conditions is true : * < ul > * < li > the { @ code sta...
if ( start < 0 ) { throw new IllegalArgumentException ( "Parameter start must not be negative." ) ; } if ( end < 0 ) { throw new IllegalArgumentException ( "Parameter end must not be negative." ) ; } if ( start > end ) { throw new IllegalArgumentException ( "Parameter start must not be greater than end." ) ; }
public class SimpleDOWriter { /** * from the relationship subject , determine which datastream to modify etc */ private String resolveSubjectToDatastream ( String subject ) throws ServerException { } }
String pidURI = PID . toURI ( m_obj . getPid ( ) ) ; if ( subject . startsWith ( pidURI ) ) { if ( subject . length ( ) == pidURI . length ( ) ) { return "RELS-EXT" ; } if ( subject . charAt ( pidURI . length ( ) ) == '/' ) { return "RELS-INT" ; } } throw new GeneralException ( "Cannot determine which relationship data...
public class CommerceDiscountRelPersistenceImpl { /** * Creates a new commerce discount rel with the primary key . Does not add the commerce discount rel to the database . * @ param commerceDiscountRelId the primary key for the new commerce discount rel * @ return the new commerce discount rel */ @ Override public ...
CommerceDiscountRel commerceDiscountRel = new CommerceDiscountRelImpl ( ) ; commerceDiscountRel . setNew ( true ) ; commerceDiscountRel . setPrimaryKey ( commerceDiscountRelId ) ; commerceDiscountRel . setCompanyId ( companyProvider . getCompanyId ( ) ) ; return commerceDiscountRel ;
public class HttpHandlerImpl { /** * Actually sorts the paths , which is not appreciated and not even used anywhere * @ return */ private Set < String > findExclusionPaths ( ) throws InitException { } }
Set < String > exclusions = new TreeSet < String > ( ) ; // Let other handlers deal with folders that do not reside in the WEB - INF or META - INF List < String > collect = null ; File webapp = new File ( deploymentInfo . getRealPath ( "" ) ) ; String [ ] paths = webapp . list ( ) ; if ( webapp . exists ( ) && paths !=...
public class BandImageDataImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setDATA ( byte [ ] newDATA ) { } }
byte [ ] oldDATA = data ; data = newDATA ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . BAND_IMAGE_DATA__DATA , oldDATA , data ) ) ;
public class ComapiChatClient { /** * Method to close the client state , won ' t be usable anymore . Useful e . g . for unit testing . * @ param context Context . */ public void close ( Context context ) { } }
client . clean ( context . getApplicationContext ( ) ) ; if ( db != null ) { db . closeDatabase ( ) ; }
public class CmsJspContentLoadBean { /** * Initialize this instance . < p > * @ param cms the OpenCms context of the current user * @ param locale the Locale to use when accessing the content * @ param content the content to access , must contain Object of type { @ link CmsResource } */ public void init ( CmsObje...
m_cms = cms ; m_locale = locale ; m_content = convertResourceList ( m_cms , m_locale , content ) ;
public class DefaultDataGridStateCodec { /** * Decode a Map of URL parameters . This method will convert a complete set of URL parameters into several * buckets including the sorts , filters , and paging information for the data grid name associated with this * state codec . In addition , a bucket of ' other ' para...
_decoded = true ; String namespacePrefix = getGridName ( ) + ";" ; Iterator keys = parameters . keySet ( ) . iterator ( ) ; while ( keys . hasNext ( ) ) { String key = ( String ) keys . next ( ) ; String [ ] values = ( String [ ] ) parameters . get ( key ) ; if ( key . equals ( PARAM_KEY_SORT ) ) { List sorts = null ; ...
public class HashMapJsonDeserializer { /** * < p > newInstance < / p > * @ param keyDeserializer { @ link KeyDeserializer } used to deserialize the keys . * @ param valueDeserializer { @ link JsonDeserializer } used to deserialize the values . * @ param < K > Type of the keys inside the { @ link HashMap } * @ p...
return new HashMapJsonDeserializer < K , V > ( keyDeserializer , valueDeserializer ) ;
public class servicegroup { /** * Use this API to fetch all the servicegroup resources that are configured on netscaler . * This uses servicegroup _ args which is a way to provide additional arguments while fetching the resources . */ public static servicegroup [ ] get ( nitro_service service , servicegroup_args args...
servicegroup obj = new servicegroup ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; servicegroup [ ] response = ( servicegroup [ ] ) obj . get_resources ( service , option ) ; return response ;
public class Validation { /** * method to valid all existent connections in the Notation objects * @ param helm2notation * HELM2Notation object * @ return true if all connections are valid , false otherwise * @ throws NotationException * if notation is not valid * @ throws ChemistryException * if the Chem...
try { LOG . info ( "Validation of Connection section starts" ) ; List < ConnectionNotation > listConnections = helm2notation . getListOfConnections ( ) ; List < String > listPolymerIDs = helm2notation . getPolymerAndGroupingIDs ( ) ; /* Hash - Map to save only specific InterConnections */ InterConnections interconnecti...
public class ArrayUtil { /** * Determines if the array has a null column for any of the positions given * in the rowColMap array . */ public static boolean hasNull ( Object [ ] array , int [ ] columnMap ) { } }
int count = columnMap . length ; for ( int i = 0 ; i < count ; i ++ ) { if ( array [ columnMap [ i ] ] == null ) { return true ; } } return false ;
public class RuntimeTypeAdapterFactory { /** * Creates a new runtime type adapter using for { @ code baseType } using { @ code * typeFieldName } as the type field name . Type field names are case sensitive . * { @ code maintainType } flag decide if the type will be stored in pojo or not . */ public static < T > Run...
return new RuntimeTypeAdapterFactory < T > ( baseType , typeFieldName , maintainType ) ;
public class AsyncExample { /** * tag : : url - manifest [ ] */ @ Route ( method = HttpMethod . GET , uri = "/manifest" ) public Result manifest ( ) throws MalformedURLException { } }
URL manifest = this . getClass ( ) . getClassLoader ( ) . getResource ( "/META-INF/MANIFEST.MF" ) ; return ok ( manifest ) . as ( MimeTypes . TEXT ) ;
public class QrCodeUtil { /** * 生成二维码或条形码图片 * @ param content 文本内容 * @ param format 格式 , 可选二维码或者条形码 * @ param width 宽度 * @ param height 高度 * @ return 二维码图片 ( 黑白 ) */ public static BufferedImage generate ( String content , BarcodeFormat format , int width , int height ) { } }
return generate ( content , format , new QrConfig ( width , height ) ) ;
public class GoogleAccount { /** * Creates one single calendar with the given name and style . * @ param name The name of the calendar . * @ param style The style of the calendar . * @ return The new google calendar . */ public final GoogleCalendar createCalendar ( String name , Calendar . Style style ) { } }
GoogleCalendar calendar = new GoogleCalendar ( ) ; calendar . setName ( name ) ; calendar . setStyle ( style ) ; return calendar ;
public class JsonFormat { /** * Converts an object into a JSON - compatible object . */ public < T > Object writeObject ( final T object , final DataTypeDescriptor < T > descriptor ) { } }
try { return objectFormat . write ( object , descriptor ) ; } catch ( Exception e ) { throw propagate ( e ) ; }
public class ManagementModule { /** * { @ inheritDoc } */ @ Override public String ingest ( Context context , InputStream serialization , String logMessage , String format , String encoding , String pid ) throws ServerException { } }
return mgmt . ingest ( context , serialization , logMessage , format , encoding , pid ) ;
public class BitStrings { /** * 比较两个等长字符串的每一位 , 相或 < br > * 适用于仅含有1和0的字符串 . * @ param first a { @ link java . lang . String } object . * @ param second a { @ link java . lang . String } object . * @ return a { @ link java . lang . String } object . */ public static String or ( final String first , final String ...
final StringBuilder buffer = new StringBuilder ( ) ; for ( int i = 0 ; i < first . length ( ) ; i ++ ) { if ( '0' == first . charAt ( i ) && '0' == second . charAt ( i ) ) { buffer . append ( '0' ) ; } else { buffer . append ( '1' ) ; } } return buffer . toString ( ) ;
public class ParenthesizedCondition { /** * Returns a parenthesized condition for the given condition if the given * condition is not already a parenthesized condition ; or the original * condition otherwise . */ public static ParenthesizedCondition getInstance ( Condition condition ) { } }
return condition instanceof ParenthesizedCondition ? ( ParenthesizedCondition ) condition : new ParenthesizedCondition ( condition ) ;
public class FileBytes { /** * Maps a portion of the randomAccessFile into memory and returns a { @ link UnsafeMappedBytes } instance . * @ param offset The offset from which to map the randomAccessFile into memory . * @ param size The count of the bytes to map into memory . * @ param mode The mode in which to ma...
MappedByteBuffer mappedByteBuffer = mapFile ( randomAccessFile , offset , size , mode ) ; return new MappedBytes ( file , randomAccessFile , mappedByteBuffer , mode ) ;
public class MultiObserverImpl { /** * Called when an event is received that does not have an onNext method definition * in TSubCls . Override in TSubClas to handle the error . * @ param event A reference to an object which is an event not handled by TSubCls . * @ param < TEvent > The type of the event being proc...
LOG . log ( Level . SEVERE , "Unimplemented event: [{0}]: {1}" , new Object [ ] { identifier , event } ) ; throw new RuntimeException ( "Event not supported: " + event ) ;