code
stringlengths
73
34.1k
label
stringclasses
1 value
public static <T> T findFirstNextByType(FaceletHandler nextHandler, Class<T> type) { if (type.isAssignableFrom(nextHandler.getClass())) { return (T)nextHandler; } else if (nextHandler instanceof javax.faces.view.facelets.CompositeFaceletHandler) { for ...
java
public static boolean tryToClose(Closeable closeable) { Object token = ThreadIdentityManager.runAsServer(); try { if (closeable != null) { try { closeable.close(); return true; } catch (IOException e) { ...
java
private static void setDefaultDiscoveryProperties() { defaultDiscoveryProperties.put(KEY_OIDC_RESPONSE_TYPES_SUPP, new String[] { "code", "token", "id_token token" }); defaultDiscoveryProperties.put(KEY_OIDC_SUB_TYPES_SUPP, new String[] { "public" }); defaultDiscoveryProperties.put(KEY_OIDC_ID_T...
java
public void populateCustomRequestParameterMap(ConfigurationAdmin configAdmin, HashMap<String, String> paramMapToPopulate, String[] configuredCustomRequestParams, String configAttrName, String configAttrValue) { if (configuredCustomRequestParams == null) { return; } for (String config...
java
public void stopModule(EJBModuleMetaDataImpl mmd) { try { //210058 uninstall(mmd, false); } catch (Throwable t) { //210058 FFDCFilter.processException(t, CLASS_NAME + ".stop", "3059", this); throw new ContainerEJBException("Failed to stop - caught Throwable", t); ...
java
protected void bindInterfaces(NameSpaceBinder<?> binder, BeanMetaData bmd) throws Exception { HomeWrapperSet homeSet = null; EJSHome home = bmd.homeRecord.getHome(); if (home != null) { homeSet = home.getWrapperSet(); } int numRemoteInterfaces = countInterfaces(bmd, ...
java
private int countInterfaces(BeanMetaData bmd, boolean local) // F743-23167 { // Note that these variables must be kept in sync with bindInterfaces. String homeInterfaceClassName = local ? bmd.localHomeInterfaceClassName : bmd.homeInterfaceClassName; boolean hasLocalBean = local && bmd.ivLoca...
java
private void bindInterfaces(NameSpaceBinder<?> binder, BeanMetaData bmd, HomeWrapperSet homeSet, boolean local, int numInterfaces, boolean singleGlobalInterface...
java
private <T> void bindInterface(NameSpaceBinder<T> binder, HomeRecord hr, HomeWrapperSet homeSet, int numInterfaces, boolean singleGlobalInterface, ...
java
protected void bindAllRemoteInterfacesToContextRoot() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "bindAllRemoteInterfacesToContextRoot"); Map<EJBModuleMetaDataImpl, NameSpaceBinder<?>> binders = new HashMap<EJ...
java
protected void addHome(BeanMetaData bmd) throws ContainerException { try { EJSContainer.homeOfHomes.addHome(bmd); //d200714 d429866.2 F743-26072 } catch (Throwable ex) { ContainerException ex2 = new ContainerException(ex); Tr.error(tc, "CAUGHT_EXCEPTION_THROWING_NEW_E...
java
protected EJSHome initializeDeferredEJBImpl(HomeRecord hr) throws ContainerException, EJBConfigurationException { BeanMetaData bmd = hr.getBeanMetaData(); Object originalLoader = ThreadContextAccessor.UNCHANGED; try { if (!bmd.fullyInitialized) // d664917.1 { ...
java
protected ReferenceContext createReferenceContext(BeanMetaData bmd) // F743-29417 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "createReferenceContext: " + bmd.j2eeName); if (bmd.ivReferenceContext == null) ...
java
private void finishBMDInit(BeanMetaData bmd) throws ContainerException, EJBConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "finishBMDInit: " + bmd.j2eeName); // d640935.1 // First, create the reference context for the bean if we haven't...
java
public ComponentNameSpaceConfiguration finishBMDInitForReferenceContext(BeanMetaData bmd) throws EJBConfigurationException, ContainerException { return ivEJBMDOrchestrator.finishBMDInitForReferenceContext(bmd, ivDefaultDataSourceJNDIName, ...
java
private EJSHome fireMetaDataCreatedAndStartBean(BeanMetaData bmd) // d648522 throws ContainerException { if (!bmd.isManagedBean()) // F743-34301.1 { try { // Fire the ComponentMetaData event to the listeners // (ie. we have loaded a new bea...
java
protected int createNonPersistentAutomaticTimers(String appName, String moduleName, List<AutomaticTimerBean> timerBeans) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "createNonPersistentAutomaticTimers: " + moduleName); ...
java
protected Timer createNonPersistentCalendarTimer(BeanO beanO, ParsedScheduleExpression parsedExpr, Serializable info) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(); if (isTraceOn && tc.isDebugEnabled()) Tr.entry(tc, "createNonPersistentCalendarTimer...
java
private synchronized final boolean _declareDiscardable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "_declareDiscardable"); boolean linkHasBecomeReleasable = false; // Only discardable if storage managed (items and item references on...
java
private synchronized final boolean _declareNotDiscardable(AbstractItem item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "_declareNotDiscardable"); boolean notifyRequired = false; // we are going to need the item in memory, so we make...
java
private final AbstractItem _getAndAssertItem() throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "_getAndAssertItem"); AbstractItem item = null; synchronized (this) { item = _strongReferenceT...
java
@Override public final void persistRedeliveredCount(int redeliveredCount) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "persistRedeliveredCount"); PersistentTransaction msTran = (PersistentTransaction) ge...
java
final void cmdAdd(final LinkOwner stream, long lockID, final PersistentTransaction transaction) throws StreamIsFull, ProtocolException, TransactionException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "cmdAdd", new Object[...
java
final void cmdRemoveExpiring(final long lockId, final PersistentTransaction transaction) throws ProtocolException, TransactionException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "cmdRemoveExpiring", new Object[] { "Item ...
java
private synchronized final boolean isStateLocked() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isStateLocked"); SibTr.exit(this, tc, "isStateLocked", _itemLinkState); } if (_itemLinkState == ItemLinkState.STATE_L...
java
public final AbstractItem getItem() throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getItem"); AbstractItem item = _getItemNoRestore(); synchronized (this) { if (isExpired()) ...
java
private final void setInMemoryItemSize(AbstractItem item) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setInMemoryItemSize", item); // If we have an Item, we can ask it for its estimated size. if (item != null) { _inMemoryI...
java
final boolean isExpired() throws SevereMessageStoreException { // 182086 if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isExpired"); if (isAvailable() && internalCanExpire()) { // we can only expire if we are available ...
java
public final AbstractItem matches(final Filter filter, boolean allowUnavailable) throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "matches", new Object[] { filter, Boolean.valueOf(allowUnavailable) }); AbstractIt...
java
@Override public final void persistLock(final Transaction transaction) throws ProtocolException, TransactionException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "persistLock", transaction); if (null != transa...
java
@Override public final List<DataSlice> readDataFromPersistence() throws SevereMessageStoreException { List<DataSlice> dataSlices; // lazy restoration only needed if the item was stored. There is // no point trying to restore if there is no data. PersistentMessageStore pm = getMe...
java
public final void releaseItem() throws SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "releaseItem"); synchronized (this) { _strongReferenceToItem = NULL_STRONG_REF; } if (_softReference...
java
@Override public final void releaseIfDiscardable() throws SevereMessageStoreException { boolean unlink = false; // flag so we can unlink outside sync block if (isStoreNever()) { synchronized (this) { if (ItemLinkState.STATE_AVAILABLE == _itemLinkSt...
java
public final AbstractItem removeIfMatches(final Filter filter, PersistentTransaction transaction) throws ProtocolException, TransactionException, SevereMessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeIfMatches", new Object[] {...
java
private Lifecycle _getLifecycle(FacesContext facesContext) { LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); String id = facesContext.getExternalContext().getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR); if (id == null) { ...
java
private boolean locationInOutputDir(String location) { String expandedOutputLocation = cfgSvc.resolveString(LibertyConstants.DEFAULT_OUTPUT_LOCATION); return location.startsWith(LibertyConstants.DEFAULT_OUTPUT_LOCATION) || location.startsWith(expandedOutputLocation); }
java
private void setLocation(String _location) { String res = null; File resFile = null; boolean relativePath = true; boolean defaultPath = false; // try as "absolute" resource (contains symbol, or absolute path) try { res = cfgSvc.resolveString(_location); ...
java
private void setFileBased(Boolean flag) { this.fileBased = flag; setProperty(Constants.SSLPROP_KEY_STORE_FILE_BASED, flag.toString()); }
java
private void setReadOnly(Boolean flag) { this.readOnly = flag; setProperty(Constants.SSLPROP_KEY_STORE_READ_ONLY, flag.toString()); }
java
private void setInitializeAtStartup(Boolean flag) { this.initializeAtStartup = flag; setProperty(Constants.SSLPROP_KEY_STORE_INITIALIZE_AT_STARTUP, flag.toString()); }
java
public String getLocation() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getLocation -> " + location); } return this.location; }
java
public long getPollingRate() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getPollingRate returning " + pollingRate); return this.pollingRate; }
java
public String getTrigger() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getTrigger returning " + trigger); return this.trigger; }
java
public KeyStore getKeyStore(boolean reinitialize, boolean createIfNotPresent) throws Exception { if (myKeyStore == null || reinitialize) { myKeyStore = do_getKeyStore(reinitialize, createIfNotPresent); } return myKeyStore; }
java
public void store() throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "store"); try { String name = getProperty(Constants.SSLPROP_KEY_STORE_NAME); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) ...
java
public void initializeKeyStore(boolean reinitialize) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "initializeKeyStore"); try { String initAtStartup = getProperty(Constants.SSLPROP_KEY_STORE_INITIALIZE_AT_STARTUP); b...
java
public void provideExpirationWarnings(int daysBeforeExpireWarning, String keyStoreName) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "provideExpirationWarnings", Integer.valueOf(daysBeforeExpireWarning)); KeyStore keystore = getKeyStore(fa...
java
public void printWarning(int daysBeforeExpireWarning, String keyStoreName, String alias, X509Certificate cert) { try { long millisDelta = ((((daysBeforeExpireWarning * 24L) * 60L) * 60L) * 1000L); long millisBeforeExpiration = cert.getNotAfter().getTime() - System.currentTimeMillis(); ...
java
public static InputStream openKeyStore(String fileName) throws MalformedURLException, IOException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "openKeyStore: " + fileName); URL urlFile = null; // Check if the filename exists as a File. Fil...
java
public void setCertificateEntry(String alias, Certificate cert) throws KeyStoreException, KeyException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(this, tc, "setCertificateEntry", new Object[] { alias, cert }); } if (Boolean.parseBoolean(getProperty(...
java
private SerializableProtectedString getKeyPassword(String alias) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "getKeyPassword " + alias); SerializableProtectedString keyPass = certAliasInfo.get(alias); if (keyPass != null) { if (TraceCo...
java
private void validateServerVariables(ValidationHelper helper, Context context, Set<String> variables, Server t) { ServerVariables serverVariables = t.getVariables(); for (String variable : variables) { if (serverVariables == null || !serverVariables.containsKey(variable)) { ...
java
private Set<String> validateURL(ValidationHelper helper, Context context, String url) { String pathToCheck = url; Set<String> serverVariables = new HashSet<String>(); while (pathToCheck.contains("{")) { if (!pathToCheck.contains("}")) { final String message = Tr.form...
java
public int findFirstEyeCatcher(byte[] buffer, int off, int len) { if (off < 0 || off >= buffer.length) { throw new IllegalArgumentException("Offset should be in the buffer boundaries"); } if (off + len > buffer.length) { len = buffer.length - off; } // i - pointer in eyeCatcher, p - in the buffer. int...
java
private void initialize() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "initialize"); subsets = new ReliabilitySubset[maxReliabilityIndex + 1]; subsetIDs = new long[maxReliabilityIndex + 1]; for(int i=0;i<subsetIDs.length;i++) { subs...
java
protected void setStream( int priority, Reliability reliability, Stream stream) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "setStream", new Object[] { new Integer(priority), reliability, stream }); ...
java
public void updateCellule( SIBUuid8 newRemoteMEUuid) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "updateCellule", newRemoteMEUuid); this.remoteMEUuid = newRemoteMEUuid; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex...
java
private ReliabilitySubset createPersistentSubset(Reliability reliability, TransactionCommon tran) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createPersistentSubset", new Object[] { reliability }); ReliabilitySubset subs...
java
private void createNonPersistentSubsets() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createNonPersistentSubsets"); for(int i=0; i<subsets.length; i++) { createNonPersistentSubset(getReliability(i)); } if (TraceComponent.isAnyTrac...
java
private ReliabilitySubset createNonPersistentSubset(Reliability reliability) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "createNonPersistentSubset", new Object[] { reliability }); ReliabilitySubset subset = new ReliabilitySubset(relia...
java
public Stream getStream(int priority, Reliability reliability) throws SIResourceException { return getSubset(reliability).getStream(priority); }
java
public SIBUuid12 getDestUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getDestUuid"); SibTr.exit(tc, "getDestUuid", destID); } return destID; }
java
protected void setDestUuid(SIBUuid12 destID) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setDestUuid", destID); this.destID = destID; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "setDestUuid"); }
java
public SIBUuid8 getBusUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getBusUuid"); SibTr.exit(tc, "getBusUuid", busID); } return busID; }
java
public boolean isPersistent() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "isPersistent"); SibTr.exit(tc, "isPersistent", Boolean.valueOf(persistent)); } return persistent; }
java
public SIBUuid12 getStreamID() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(this, tc, "getStreamID"); SibTr.exit(tc, "getStreamID", streamID); } return streamID; }
java
protected void setPersistentData(int priority, Reliability reliability, long completedPrefix) throws SIResourceException { getSubset(reliability).setPersistentData(priority, completedPrefix); }
java
protected long getPersistentData(int priority, Reliability reliability) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "getPersistentData", new Object[] { new Integer(priority), reliability }); long prefix = getSubs...
java
private boolean isOverFileLimit(int addition) { if (LogFile.UNLIMITED == getMaximumSize()) { return false; } // Note: to do this properly, we need to know if the admin updates the // file externally, i.e. 'cat /dev/null > file' to clear it out. Windows // JDK filechan...
java
private void renameFile(File source, File target) { if (!source.exists()) { // don't do anything if the source file doesn't exist return; } if (target.exists()) { target.delete(); } boolean rc = source.renameTo(target); if (!rc) { ...
java
private void addBackup() { // move the current log file to the newly formatted backup name String newname = this.fileinfo + this.myFormat.format(new Date(HttpDispatcher.getApproxTime())) + this.extensioninfo; File newFile = new File(newname); renameFile(this.myFile, newFile); // ...
java
private void rotate() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, getFileName() + ": Rotating output log"); } try { this.myChannel.close(); } catch (IOException ioe) { FFDCFilter.processException(ioe, getClass().ge...
java
public static void binToHex(byte[] bin, int start, int length, StringBuffer hex) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "binToHex", new Object[]{bin, Integer.valueOf(start), Integer.valueOf(length), hex}); /* Constant for binary to Hex conversion ...
java
public static String binToHex(byte[] bin) { StringBuffer hex = new StringBuffer(); binToHex(bin,0,bin.length,hex); return hex.toString(); }
java
public static byte[] hexToBin(String hex, int start) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hexToBin", new Object[]{hex, Integer.valueOf(start)}); int digit1, digit2; int length = (hex.length() - start); // no of characters to be processed // Handle the spe...
java
public FilterCell findNextCell(int nextValue) { if (nextCell == null) { return null; } return (FilterCell) (nextCell.get(nextValue)); }
java
static void rcvCloseProducerSess(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) ...
java
static void rcvSendSessMsg(CommsServerByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.is...
java
RegistryEntry getRegistryEntry(String pid) { if (pid == null) { return null; } return entryMap.get(pid); }
java
private void processReferencedTypes(RegistryEntry pidEntry) { //parent first, AD has a reference pid for (ExtendedAttributeDefinition ad : pidEntry.getAttributeMap().values()) { if (ad.getType() == MetaTypeFactory.PID_TYPE) { if (ad.getReferencePid() != null) { ...
java
protected final void unLock(ObjectManagerState objectManagerState) { synchronized (objectManagerState.transactionUnlockSequenceLock) { unlockSequence = objectManagerState.getNewGlobalTransactionUnlockSequence(); lockingTransaction = null; } // synchronized. }
java
protected void validateCertificate(X509Certificate[] chain) throws com.ibm.wsspi.security.wim.exception.CertificateMapFailedException { // validate the certificate array if (chain == null || chain.length == 0) { throw new com.ibm.wsspi.security.wim.exception.CertificateMapFailedException(); ...
java
protected IDAndRealm separateIDAndRealm(String inputString) throws WIMException { // initialize the method name String methodName = "seperateIDAndRealm"; if (tc.isDebugEnabled()) { Tr.debug(tc, methodName + " " + "inputString = \"" + inputString + "\""); } String defa...
java
public boolean isIdentifierTypeProperty(String inputProperty) { // initialize the return value boolean returnValue = false; // test the property if ((inputProperty != null) && ((inputProperty.equals(Service.PROP_UNIQUE_ID)) || (inputProperty.equals(Service.PROP_UNIQUE_NAME)) ...
java
protected void createRealmDataObject(Root inputRootObject, String inputRealm) { // use the root DataGraph to create a Context DataGraph List<Context> contexts = inputRootObject.getContexts(); if (contexts != null) { Context ctx = new Context(); // set "WIM.Realm" in the C...
java
protected void createPropertyControlDataObject(Root inputRootDataObject, String inputProperty) { // use the root DataGraph to create a PropertyControl DataGraph List<Control> propertyControls = inputRootDataObject.getControls(); PropertyControl propCtrl = null; if (propertyControls != nu...
java
protected String getRealInputAttrName(String inputAttrName, String id, boolean isUser) { boolean isInputAttrValueDN = UniqueNameHelper.isDN(id) != null; boolean isInputAttrIdentifier = isIdentifierTypeProperty(inputAttrName); if (!isInputAttrIdentifier && isInputAttrValueDN) { // To...
java
public String getDefaultRealmName() { String returnRealm = getCoreConfiguration().getDefaultRealmName(); if (returnRealm == null) { returnRealm = urRealmName; } return returnRealm; }
java
private final Properties loadPropertiesFile(WsResource res) throws IOException { Properties props = new Properties(); InputStream is = res.get(); try { props.load(is); } catch (IOException e) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { ...
java
final WsResource getLTPAKeyFileResource(WsLocationAdmin locService, String ltpaKeyFile) { WsResource ltpaFile = locService.resolveResource(ltpaKeyFile); if (ltpaFile != null && ltpaFile.exists()) { return ltpaFile; } else { // The file does not exist so return null ...
java
void cleanupBoxedCache(int boxedAccessor) { for (int i = 0; i < boxedCache.length; i++) if (boxed[i][0] == boxedAccessor) boxedCache[i] = null; }
java
private JSON getJSON() throws JSONMarshallException { if (json == null) { JSONSettings settings = new JSONSettings(Include.NON_NULL); json = JSONFactory.newInstance(settings); } return json; }
java
public void setSubscriptionIDFilter(String subscriptionId) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setSubscriptionIDFilter", subscriptionId); this._subscriptionId = subscriptionId; this._destination = null; this._consumerDispatcherState = null; if (tc.isEntryEnabled()) SibTr....
java
public void setDestinationFilter(SIBUuid12 destination) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setDestinationFilter", destination); this._destination = destination; this._subscriptionId = null; this._consumerDispatcherState = null; if (tc.isEntryEnabled()) SibTr.exit(tc, "se...
java
public void setConsumerDispatcherStateFilter(ConsumerDispatcherState consumerDispatcherState) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setConsumerDispatcherStateFilter", consumerDispatcherState); this._consumerDispatcherState = consumerDispatcherState; this._subscriptionId = null; this._dest...
java
public boolean filterMatches(AbstractItem item) { if (tc.isEntryEnabled()) SibTr.entry(tc, "filterMatches", item); /* Cast the incoming item to a subscriptionState object. if it is not, an * exception will be thrown and the match will fail */ ConsumerDispatcherState subState = null; if (item...
java
public boolean matchesToMicros(LibertyVersion other) { if (other == null) { return true; } return this.major == other.major && this.minor == other.minor && this.micro == other.micro; }
java
public void putCustomizedProperty(String key, Object obj) { if (key == null || obj == null) return; customizedProperties.put(key, obj); }
java
PartialMatch newPartialMatch(char[] key, PartialMatch pm) { if (tc.isEntryEnabled()) tc.entry(this,cclass, "newPartialMatch", "key: "+new String(key)+", pm:"+pm); PartialMatch ans = new PartialMatch(key, pm, owner); if (tc.isEntryEnabled()) tc.exit(this,cclass, "newPartialMatch", ans); retur...
java
void put(PatternWrapper pattern, Conjunction selector, MatchTarget object, InternTable subExpr) throws MatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "put", new Object[]{pattern,selector,object,subExpr}); switch (pattern.getState()) { case PatternWrapper.FINAL_EXACT: ...
java