_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q153500
HttpInboundServiceContextImpl.finishSendError
train
protected void finishSendError() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "finishSendError: " + getVC()); } HttpError error = (HttpError) getVC().getStateMap().get(HTTP_ERROR_IDENTIFIER); WsByteBuffer[] body = (WsByteBuffer[]) getVC()....
java
{ "resource": "" }
q153501
HttpInboundServiceContextImpl.finishSendError
train
protected void finishSendError(Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "finishSendError(exception): " + getVC()); } WsByteBuffer[] body = (WsByteBuffer[]) getVC().getStateMap().remove(EPS_KEY); if (null != body) { ...
java
{ "resource": "" }
q153502
HttpInboundServiceContextImpl.purgeBodyBuffers
train
public void purgeBodyBuffers(boolean callClose) { // the async read for the entire incoming body has finished, discard // the buffers and pick up with the close sequence if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Discarding body buffers..."); ...
java
{ "resource": "" }
q153503
RichThreadPoolImpl.initialise
train
public void initialise(String name, int minSize, int maxSize) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "initialise", new Object[]{name, minSize, maxSize}); wasThreadPool = new com.ibm.ws.util.ThreadPool(name, minS...
java
{ "resource": "" }
q153504
H2HttpInboundLinkWrap.prepareHeaders
train
public ArrayList<Frame> prepareHeaders(byte[] marshalledHeaders, boolean complete) { //Create the HeaderFrame //Passback the header frame if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "prepareHeaders entry: stream: marked as complete: " + complete)...
java
{ "resource": "" }
q153505
H2HttpInboundLinkWrap.prepareBody
train
public ArrayList<Frame> prepareBody(WsByteBuffer[] wsbb, int length, boolean isFinalWrite) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "prepareBody entry : final write: " + isFinalWrite); } ArrayList<Frame> dataFrames = new ArrayList<Frame>(); ...
java
{ "resource": "" }
q153506
MemorySession.isSwappableData
train
protected boolean isSwappableData(Object obj) { if (obj != null && (obj instanceof Serializable || obj instanceof Externalizable)) { return true; } return false; }
java
{ "resource": "" }
q153507
PersistentMessageStoreImpl.initialize
train
public void initialize(MessageStoreImpl ms, XidManager xidManager, Configuration configuration) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "initialize", new Object[]{"MS="+ms, "XidManager="+xidManager, "Config="+configuration}); _ms = ms; ...
java
{ "resource": "" }
q153508
PersistentMessageStoreImpl.stop
train
public void stop(int mode) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "stop", "Mode="+mode); // Defect 363755 // Stop any new work coming in as soon as we start stopping. // This way we make sure nothing is attempted during the /...
java
{ "resource": "" }
q153509
PersistentMessageStoreImpl.notification
train
public void notification(int event, Object[] args) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notification", new Object[]{event, args}); switch (event) { // This event will be notified by the ObjectManager when it shuts down. // Do any cle...
java
{ "resource": "" }
q153510
PersistentMessageStoreImpl.objectManagerStopped
train
private void objectManagerStopped() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "objectManagerStopped"); // Stop any new work coming in as we do not have a working // ObjectManager to service any requests. _available = false; // ...
java
{ "resource": "" }
q153511
PersistentMessageStoreImpl.createDirectoryPath
train
private String createDirectoryPath(String path) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "createDirectoryPath", "Path="+path); StringBuilder directoryPath = new StringBuilder(""); if ((path != null) && (path.length() > 0)) { ...
java
{ "resource": "" }
q153512
SelectorImpl.mayBeNumeric
train
public boolean mayBeNumeric() { if (type == UNKNOWN) type = NUMERIC; return type == NUMERIC || (type >= INT && type <= DOUBLE); }
java
{ "resource": "" }
q153513
SelectorImpl.unintern
train
public void unintern(InternTable table) { // This implementation is inherited by Identifier and Literal which have no children, // but is overridden in Operator, which does. refCount--; if (refCount < 0) throw new IllegalStateException(); if (refCount == 0) { Object res = table.rem...
java
{ "resource": "" }
q153514
SelectorImpl.decode
train
public static Selector decode(ObjectInput buf) throws IOException { if (buf.readByte() != VERSION) throw new IOException(); try { return decodeSubtree(buf); } catch (Exception e) { // No FFDC Code Needed. // FFDC driven by wrapper class. FFDC.processExceptio...
java
{ "resource": "" }
q153515
DirUtils.createDirectoryPath
train
public static String createDirectoryPath(String source) { if (tc.isEntryEnabled()) Tr.entry(tc, "createDirectoryPath",source); String directoryPath = null; if (source != null) { directoryPath = ""; final StringTokenizer tokenizer = new StringTokenizer(source,"\\/...
java
{ "resource": "" }
q153516
ObjectManagerState.performColdStart
train
protected void performColdStart() throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "performColdStart"); // This is presumably the first startup of th...
java
{ "resource": "" }
q153517
ObjectManagerState.performRecovery
train
private final void performRecovery(LogInput logInput) throws ObjectManagerException { final String methodName = "performRecovery"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, method...
java
{ "resource": "" }
q153518
ObjectManagerState.saveClonedState
train
protected void saveClonedState(Transaction transaction) throws ObjectManagerException { final String methodName = "saveClonedState"; if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, methodName, transaction); // Loop over all ...
java
{ "resource": "" }
q153519
ObjectManagerState.waitForCheckpoint
train
protected final void waitForCheckpoint(boolean persistent) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "waitForCheckpoint"); checkpointHelper.wa...
java
{ "resource": "" }
q153520
ObjectManagerState.requestCheckpoint
train
protected final void requestCheckpoint(boolean persistent) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass, "requestCheckpoint", new O...
java
{ "resource": "" }
q153521
ELContext.notifyBeforeEvaluation
train
public void notifyBeforeEvaluation(String expression) { for (EvaluationListener listener : listeners) { try { listener.beforeEvaluation(this, expression); } catch (Throwable t) { Util.handleThrowable(t); // Ignore - no option to log ...
java
{ "resource": "" }
q153522
ELContext.notifyAfterEvaluation
train
public void notifyAfterEvaluation(String expression) { for (EvaluationListener listener : listeners) { try { listener.afterEvaluation(this, expression); } catch (Throwable t) { Util.handleThrowable(t); // Ignore - no option to log ...
java
{ "resource": "" }
q153523
ELContext.notifyPropertyResolved
train
public void notifyPropertyResolved(Object base, Object property) { for (EvaluationListener listener : listeners) { try { listener.propertyResolved(this, base, property); } catch (Throwable t) { Util.handleThrowable(t); // Ignore - no option...
java
{ "resource": "" }
q153524
ELContext.isLambdaArgument
train
public boolean isLambdaArgument(String name) { for (Map<String,Object> arguments : lambdaArguments) { if (arguments.containsKey(name)) { return true; } } return false; }
java
{ "resource": "" }
q153525
ELContext.getLambdaArgument
train
public Object getLambdaArgument(String name) { for (Map<String,Object> arguments : lambdaArguments) { Object result = arguments.get(name); if (result != null) { return result; } } return null; }
java
{ "resource": "" }
q153526
ELContext.convertToType
train
public Object convertToType(Object obj, Class<?> type) { boolean originalResolved = isPropertyResolved(); setPropertyResolved(false); try { ELResolver resolver = getELResolver(); if (resolver != null) { Object result = resolver.convertToType(this, obj, ty...
java
{ "resource": "" }
q153527
JSFContainer.tryLoad
train
public static Class<?> tryLoad(String className) { try { return Class.forName(className, false, JSFContainer.class.getClassLoader()); } catch (ClassNotFoundException notFound) { return null; } }
java
{ "resource": "" }
q153528
BundleInstallOriginBundleListener.processUninstalledInstallerBundle
train
private boolean processUninstalledInstallerBundle(String installerBundleLocation) { //find out if the uninstalled bundle location was an installer bundle and remove its installees as well Set<String> bundleLocationsToUninstall = bundleOrigins.remove(installerBundleLocation); if (bundleLocationsT...
java
{ "resource": "" }
q153529
BundleInstallOriginBundleListener.uninstallInstalleeBundles
train
private Set<String> uninstallInstalleeBundles(Set<String> installeeBundleLocationsToUninstall) { Set<String> unsuccessfulUninstallLocations = new HashSet<String>(); for (String installeeBundleLocation : installeeBundleLocationsToUninstall) { Bundle installeeBundleToUninstall = ctx.getBundle(...
java
{ "resource": "" }
q153530
RangeStatisticImpl.updateWaterMark
train
final private void updateWaterMark() { if (initWaterMark) { if (current < lowWaterMark) lowWaterMark = current; if (current > highWaterMark) highWaterMark = current; } else { lowWaterMark = highWaterMark = current; initWate...
java
{ "resource": "" }
q153531
RangeStatisticImpl.incrementWithoutSync
train
final public void incrementWithoutSync(long curTime, long val) { if (enabled) { lastSampleTime = updateIntegral(curTime); current += val; updateWaterMark(); } else { current += val; } }
java
{ "resource": "" }
q153532
RangeStatisticImpl.decrementWithSyncFlag
train
final public void decrementWithSyncFlag(long curTime, long val) { if (enabled) { lastSampleTime = updateIntegral(curTime); if (sync) { synchronized (this) { current -= val; } } else { current -= val; ...
java
{ "resource": "" }
q153533
DataDescriptor.getType
train
public int getType(int pathLength) { if (type == TYPE_INVALID || dataPath == null || pathLength >= dataPath.length) return TYPE_INVALID; if (pathLength == 1) return TYPE_MODULE; else return TYPE_COLLECTION; }
java
{ "resource": "" }
q153534
DataDescriptor.isSamePath
train
public boolean isSamePath(DataDescriptor other) { if (other == null) return false; if (type == TYPE_INVALID || other.getType() == TYPE_INVALID) return false; if (type != other.getType()) return false; if (dataPath == null || other.getPath() == null) ...
java
{ "resource": "" }
q153535
DataDescriptor.isDescendant
train
public boolean isDescendant(DataDescriptor other) { if (other == null) return false; if (type == TYPE_INVALID || other.getType() == TYPE_INVALID) return false; String[] otherPath = other.getPath(); if (otherPath.length >= dataPath.length) return fals...
java
{ "resource": "" }
q153536
DataDescriptor.parentDescriptor
train
public DataDescriptor parentDescriptor() { if (type == TYPE_INVALID) { return null; } else if (dataIds != null) { return new DataDescriptor(dataPath); } else { if (dataPath.length == 1) return null; String[] myPath = new String[data...
java
{ "resource": "" }
q153537
SibRaManagedConnectionFactory.createConnectionFactory
train
public Object createConnectionFactory( final ConnectionManager connectionManager) { if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, "createConnectionFactory", connectionManager); } final Object connectionFactory = new SibRaConnectionFactory(th...
java
{ "resource": "" }
q153538
WriteableLogRecord.put
train
protected void put(byte[] bytes) { if (tc.isEntryEnabled()) Tr.entry(tc, "put", new Object[] {RLSUtils.toHexString(bytes, RLSUtils.MAX_DISPLAY_BYTES), this}); if (tc.isDebugEnabled()) Tr.debug(tc, "Writing at position " + _buffer.position()); _buffer.put(bytes); if (tc.isE...
java
{ "resource": "" }
q153539
WriteableLogRecord.putInt
train
protected void putInt(int data) { if (tc.isEntryEnabled()) Tr.entry(tc, "putInt", new Object[] { this, new Integer(data)}); if (tc.isDebugEnabled()) Tr.debug(tc, "Writing at position " + _buffer.position()); _buffer.putInt(data); if (tc.isEntryEnabled()) Tr.exit(tc, "putIn...
java
{ "resource": "" }
q153540
WriteableLogRecord.putLong
train
protected void putLong(long data) { if (tc.isEntryEnabled()) Tr.entry(tc, "putLong", new Object[] { this, new Long(data)}); if (tc.isDebugEnabled()) Tr.debug(tc, "Writing at position " + _buffer.position()); _buffer.putLong(data); if (tc.isEntryEnabled()) Tr.exit(tc, "putLong"); ...
java
{ "resource": "" }
q153541
WriteableLogRecord.putShort
train
protected void putShort(short data) { if (tc.isEntryEnabled()) Tr.entry(tc, "putShort", new Object[] { this, new Short(data)}); if (tc.isDebugEnabled()) Tr.debug(tc, "Writing at position " + _buffer.position()); _buffer.putShort(data); if (tc.isEntryEnabled()) Tr.exit(tc, "putShort...
java
{ "resource": "" }
q153542
WriteableLogRecord.putBoolean
train
protected void putBoolean(boolean data) { if (tc.isEntryEnabled()) Tr.entry(tc, "putBoolean", new Object[] { this, new Boolean(data)}); if (tc.isDebugEnabled()) Tr.debug(tc, "Writing at position " + _buffer.position()); _buffer.put(data ? TRUE : FALSE); if (tc.isEntryEnabled()) Tr....
java
{ "resource": "" }
q153543
WriteableLogRecord.close
train
protected void close() { if (tc.isEntryEnabled()) Tr.entry(tc, "close", this); _buffer.putLong(_sequenceNumber); if (tc.isEntryEnabled()) Tr.exit(tc, "close"); }
java
{ "resource": "" }
q153544
LogQueryBean.setTime
train
public void setTime(Date minTime, Date maxTime) throws IllegalArgumentException { if (minTime != null && maxTime != null && minTime.after(maxTime)) { throw new IllegalArgumentException("Value of the minTime parameter should specify time before the time specified by the value of the maxTime parameter...
java
{ "resource": "" }
q153545
LogQueryBean.setLevels
train
public void setLevels(Level minLevel, Level maxLevel) throws IllegalArgumentException { if (minLevel != null && maxLevel != null && minLevel.intValue() > maxLevel.intValue()) { throw new IllegalArgumentException("Value of the minLevel parameter should specify level not larger than the value of the m...
java
{ "resource": "" }
q153546
LogQueryBean.compile
train
public static Pattern compile(String pattern) throws IllegalArgumentException { if (pattern == null) { throw new IllegalArgumentException("Pattern can not be null"); } if (pattern.startsWith("/") && pattern.endsWith("/") && pattern.length() > 1) { // This is a regular ex...
java
{ "resource": "" }
q153547
LogQueryBean.setThreadIDs
train
public void setThreadIDs(String[] threadIDs) throws IllegalArgumentException { int[] threads = null; if (threadIDs != null) { threads = new int[threadIDs.length]; try { for (int i = 0; i < threads.length; i++) { threads[i] = Integer.parseInt(th...
java
{ "resource": "" }
q153548
ServletPmiModule.decRequests
train
final public void decRequests(long execTime, String url) { long lst = 0; if(responseTime != null && execTime >= 0) { lst = System.currentTimeMillis(); responseTime.add(lst, execTime); } if(currentReques...
java
{ "resource": "" }
q153549
JMSResourceDefinitionHelper.getBundle
train
public static Bundle getBundle(BundleContext bundleContext, String resourceAdapter) throws ConfigEvaluatorException { Bundle bundle = null; if (JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WASJMS.equals(resourceAdapter) || JMSResourceDefinitionConstants.RESOURCE_ADAPTER_WMQJMS.equals(re...
java
{ "resource": "" }
q153550
ConnectionListenerImpl.commsFailure
train
public void commsFailure(SICoreConnection conn, SIConnectionLostException exception) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "commsFailure", new Object[]{conn, exception}); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, ...
java
{ "resource": "" }
q153551
ConnectionListenerImpl.meTerminated
train
public void meTerminated(SICoreConnection conn) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "meTerminated", conn); JMSException jmse = (JMSException)JmsErrorUtils.newThrowable(JMSException.class, "ME_T...
java
{ "resource": "" }
q153552
SSLUtils.shutDownSSLEngine
train
public static void shutDownSSLEngine(SSLConnectionLink connLink, boolean isServer, boolean isConnected) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "shutDownSSLEngine: isServer: " + isServer + " isConnected: " + isConnected + " " + connL...
java
{ "resource": "" }
q153553
SSLUtils.getWrappedByteBuffers
train
public static ByteBuffer[] getWrappedByteBuffers(WsByteBuffer wsbuffers[]) { // Create the buffer array to return. ByteBuffer buffers[] = new ByteBuffer[wsbuffers.length]; boolean foundNullBuffer = false; int i = 0; // Loop through each buffer of the input array. for (i =...
java
{ "resource": "" }
q153554
SSLUtils.flipBuffers
train
public static void flipBuffers(WsByteBuffer[] buffers, int totalSize) { int size = 0; boolean overLimit = false; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { if (overLimit) { buffers[i].limit(buffers[i].position()); } else { ...
java
{ "resource": "" }
q153555
SSLUtils.copyBuffer
train
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst) { copyBuffer(src, dst, src.remaining()); }
java
{ "resource": "" }
q153556
SSLUtils.copyBuffer
train
public static void copyBuffer(WsByteBuffer src, WsByteBuffer dst, int length) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "copyBuffer: length=" + length + "\r\n\tsrc: " + getBufferTraceInfo(src) + "\r\n\tdst: " +...
java
{ "resource": "" }
q153557
SSLUtils.allocateByteBuffer
train
public static WsByteBuffer allocateByteBuffer(int size, boolean allocateDirect) { WsByteBuffer newBuffer = null; // Allocate based on the input parameter. if (allocateDirect) { newBuffer = ChannelFrameworkFactory.getBufferManager().allocateDirect(size); } else { n...
java
{ "resource": "" }
q153558
SSLUtils.getBufferTraceInfo
train
public static String getBufferTraceInfo(WsByteBuffer buffers[]) { if (null == buffers) { return "Null buffer array"; } StringBuilder sb = new StringBuilder(32 + (64 * buffers.length)); for (int i = 0; i < buffers.length; i++) { sb.append("\r\n\t Buffer ["); ...
java
{ "resource": "" }
q153559
SSLUtils.showBufferContents
train
public static String showBufferContents(WsByteBuffer buffers[]) { if (null == buffers || 0 == buffers.length) { return "null"; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < buffers.length; i++) { sb.append("Buffer ["); sb.append(i); ...
java
{ "resource": "" }
q153560
SSLUtils.allocateByteBuffers
train
public static WsByteBuffer[] allocateByteBuffers(int requestedBufferSize, long totalDataSize, boolean allocateDirect, boolean enforceRequestedSize) { if ...
java
{ "resource": "" }
q153561
SSLUtils.anyPositionsNonZero
train
public static boolean anyPositionsNonZero(WsByteBuffer buffers[]) { if (buffers != null) { // Loop through all buffers in the array. for (int i = 0; i < buffers.length; i++) { // Verify buffer is non null and check for nonzero position if ((buffers[i] != n...
java
{ "resource": "" }
q153562
SSLUtils.getOutboundSSLEngine
train
public static SSLEngine getOutboundSSLEngine(SSLContext context, SSLLinkConfig config, String host, int port, SSLConnectionLink connLink) { // PK46069 - use engine that allows session id re-use if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
java
{ "resource": "" }
q153563
SSLUtils.getSSLEngine
train
public static SSLEngine getSSLEngine(SSLContext context, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "getSSLEngine"); } // Create a new SSL engine for this connection. SSLEn...
java
{ "resource": "" }
q153564
SSLUtils.configureEngine
train
private static void configureEngine(SSLEngine engine, FlowType type, SSLLinkConfig config, SSLConnectionLink connLink) { // Update the engine with the latest config parameters. engine.setEnabledCipherSuites(config.getEnabledCipherSuites(engine)); //Set the configured protocol on the SSLEngine ...
java
{ "resource": "" }
q153565
SSLUtils.adjustBuffersForJSSE
train
public static int[] adjustBuffersForJSSE(WsByteBuffer[] buffers, int maxBufferSize) { int[] limitInfo = null; int dataAmount = 0; for (int i = 0; i < buffers.length && null != buffers[i]; i++) { // Valid buffer. Tally up how much data is in the buffer array so far. dataAm...
java
{ "resource": "" }
q153566
SSLUtils.adjustBufferForJSSE
train
public static int adjustBufferForJSSE(WsByteBuffer buffer, int maxBufferSize) { int limit = -1; if (null != buffer) { int size = buffer.remaining(); if (maxBufferSize < size) { limit = buffer.limit(); // Adjust the limit to the max allowed. ...
java
{ "resource": "" }
q153567
SSLUtils.resetBuffersAfterJSSE
train
public static void resetBuffersAfterJSSE(WsByteBuffer[] buffers, int[] limitInfo) { // Handle case where not changes were made in recent call to adjustBuffersForJSSE if (limitInfo == null) { return; } int bufferIndex = limitInfo[0]; int bufferLimit = limitInfo[1]; ...
java
{ "resource": "" }
q153568
SSLUtils.getBufferLimits
train
public static void getBufferLimits(WsByteBuffer[] buffers, int[] limits) { // Double check that the parameters are non null. if ((buffers != null) && (limits != null)) { // Loop through the buffers. // In case of errant parameters, protect from array out of bounds. fo...
java
{ "resource": "" }
q153569
SSLUtils.setBufferLimits
train
public static void setBufferLimits(WsByteBuffer[] buffers, int[] limits) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setBufferLimits"); } // Double check that parameters are not null. if ((buffers != null) && (limits != null)) { ...
java
{ "resource": "" }
q153570
SSLUtils.lengthOf
train
public static int lengthOf(WsByteBuffer[] src, int startIndex) { int length = 0; if (null != src) { for (int i = startIndex; i < src.length && null != src[i]; i++) { length += src[i].remaining(); } } return length; }
java
{ "resource": "" }
q153571
SSLUtils.compressBuffers
train
public static WsByteBuffer[] compressBuffers(WsByteBuffer[] src, boolean releaseEmpty) { List<WsByteBuffer> output = new LinkedList<WsByteBuffer>(); boolean first = true; int size = 0; for (int i = 0; i < src.length; i++) { if (null == src[i]) { continue; ...
java
{ "resource": "" }
q153572
AbstractRasMethodAdapter.visitCode
train
@Override public void visitCode() { if (injectedTraceAnnotationVisitor == null && classAdapter.isInjectedTraceAnnotationRequired()) { AnnotationVisitor av = visitAnnotation(INJECTED_TRACE_TYPE.getDescriptor(), true); av.visitEnd(); } super.visitCode(); // La...
java
{ "resource": "" }
q153573
AbstractRasMethodAdapter.visitFrameAfterOnMethodEntry
train
private void visitFrameAfterOnMethodEntry() { if (!visitFramesAfterCallbacks) return; // The frame that is required after the trace guard must be // fully specified as 'this' is no longer an 'uninitialized this' if (isConstructor()) { List<Object> stackLocals = n...
java
{ "resource": "" }
q153574
AbstractRasMethodAdapter.visitFrameAfterMethodReturnCallback
train
private void visitFrameAfterMethodReturnCallback() { if (!visitFramesAfterCallbacks) return; Type returnType = getReturnTypeForTrace(); if (!Type.VOID_TYPE.equals(getReturnTypeForTrace()) && !isConstructor()) { Object typeDescriptor = null; switch (returnType...
java
{ "resource": "" }
q153575
AbstractRasMethodAdapter.visitTryCatchBlock
train
@Override public void visitTryCatchBlock(Label start, Label end, Label handler, String type) { if (type != null) { handlers.put(handler, type); } super.visitTryCatchBlock(start, end, handler, type); }
java
{ "resource": "" }
q153576
AbstractRasMethodAdapter.visitLabel
train
@Override public void visitLabel(Label label) { super.visitLabel(label); if (waitingForSuper) { // Get what should be the shape of the stack in the handler. // Not all labels are branch targets so only deal with targets if (branchTargets.containsKey(label)) { ...
java
{ "resource": "" }
q153577
AbstractRasMethodAdapter.visitFrame
train
@Override public void visitFrame(int type, int numLocals, Object[] locals, int stackSize, Object[] stack) { if (!isVisitFrameRequired()) return; super.visitFrame(type, numLocals, locals, stackSize, stack); }
java
{ "resource": "" }
q153578
AbstractRasMethodAdapter.visitLocalVariable
train
@Override public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) { if (index < firstNonParameterSlot) { start = methodEntryLabel; } super.visitLocalVariable(name, desc, signature, start, end, index); }
java
{ "resource": "" }
q153579
AbstractRasMethodAdapter.createTraceArrayForParameters
train
protected void createTraceArrayForParameters() { // Static methods don't have an implicit "this" argment so start // working with local var 0 instead of 1 for the parm list. int localVarOffset = isStatic ? 0 : 1; int syntheticArgs = 0; // Use an heuristic to guess when we're in ...
java
{ "resource": "" }
q153580
AbstractRasMethodAdapter.boxLocalVar
train
protected void boxLocalVar(final Type type, final int slot, final boolean isSensitive) { visitVarInsn(type.getOpcode(ILOAD), slot); box(type, isSensitive); }
java
{ "resource": "" }
q153581
AbstractRasMethodAdapter.visitGetTraceObjectField
train
protected void visitGetTraceObjectField() { visitFieldInsn( GETSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
java
{ "resource": "" }
q153582
AbstractRasMethodAdapter.visitSetTraceObjectField
train
protected void visitSetTraceObjectField() { visitFieldInsn( PUTSTATIC, classAdapter.getClassInternalName(), classAdapter.getTraceObjectFieldName(), classAdapter.getTraceObjectFieldType().getDescriptor()); }
java
{ "resource": "" }
q153583
AbstractRasMethodAdapter.isArgumentSensitive
train
protected boolean isArgumentSensitive(int index) { if (methodInfo != null) { return methodInfo.isArgSensitive(index); } Set<Type> parameterAnnotations = observedParameterAnnotations.get(index); if (parameterAnnotations != null) { return parameterAnnotations.contai...
java
{ "resource": "" }
q153584
AbstractRasMethodAdapter.isMethodInstrumentedByThisAdapter
train
protected boolean isMethodInstrumentedByThisAdapter() { if (injectedTraceAnnotationVisitor == null) { return false; } List<String> visitedMethodAdapters = injectedTraceAnnotationVisitor.getMethodAdapters(); return visitedMethodAdapters.contains(getClass().getName()); }
java
{ "resource": "" }
q153585
ThreadContextManager.setThreadContextProvider
train
@Reference(name = THREAD_CONTEXT_PROVIDER, service = ThreadContextProvider.class, cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC, policyOption = ReferencePolicyOption.GREEDY) protected void setThreadContextProvider(ServiceRef...
java
{ "resource": "" }
q153586
ThreadContextManager.unsetThreadContextProvider
train
protected void unsetThreadContextProvider(ServiceReference<ThreadContextProvider> ref) { String threadContextProviderName = (String) ref.getProperty(COMPONENT_NAME); if (threadContextProviders.removeReference(threadContextProviderName, ref) && Boolean.TRUE.equals(ref.getProperty(ThreadContex...
java
{ "resource": "" }
q153587
ContentTypeUtils.containsContentType
train
public static boolean containsContentType(String contentType, String[] allowedContentTypes) { if (allowedContentTypes == null) { return false; } for (int i = 0; i < allowedContentTypes.length; i++) { if (allowedContentTypes[i].indexOf(contentType) != -...
java
{ "resource": "" }
q153588
LTPAConfigurationImpl.createFileMonitor
train
private void createFileMonitor() { try { ltpaFileMonitor = new SecurityFileMonitor(this); setFileMonitorRegistration(ltpaFileMonitor.monitorFiles(Arrays.asList(keyImportFile), monitorInterval)); } catch (Exception e) { if (TraceComponent.isAnyTracingEnabled() && tc.is...
java
{ "resource": "" }
q153589
LTPAConfigurationImpl.performFileBasedAction
train
@Override public void performFileBasedAction(Collection<File> files) { Tr.audit(tc, "LTPA_KEYS_TO_LOAD", keyImportFile); submitTaskToCreateLTPAKeys(); }
java
{ "resource": "" }
q153590
LTPAConfigurationImpl.isKeysConfigChanged
train
private boolean isKeysConfigChanged(String oldKeyImportFile, Long oldKeyTokenExpiration) { return ((oldKeyImportFile.equals(keyImportFile) == false) || (oldKeyTokenExpiration != keyTokenExpiration)); }
java
{ "resource": "" }
q153591
DeliveryDelayIndex.put
train
public boolean put(DeliveryDelayableReference deliveryDelayableReference) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", "ObjId=" + deliveryDelayableReference.getID() + " ET=" + deliveryDelayableReference.getDeliveryDelayTime()); boolean ...
java
{ "resource": "" }
q153592
SuspendableXAResource.isSameRM
train
public boolean isSameRM(XAResource xares) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "isSameRM", xares); XAResource actualXARes = xares; if (xares instanceof SuspendableXAResource) { actualXARes = ((SuspendableXAResourc...
java
{ "resource": "" }
q153593
WrapperProxyState.getWrapperProxyState
train
public static WrapperProxyState getWrapperProxyState(Object proxy) { // A business interface proxy. if (proxy instanceof BusinessLocalWrapperProxy) { return ((BusinessLocalWrapperProxy) proxy).ivState; } // An EJBLocalHome or EJBLocalObject proxy. if (pro...
java
{ "resource": "" }
q153594
AuditServiceImpl.map2GenericData
train
private GenericData map2GenericData(GenericData gdo, Map<String, Object> map) { for (Entry<String, Object> entry : map.entrySet()) { if (entry.getValue() == null) { if (entry.getKey().equals(AuditEvent.TARGET_APPNAME)) { gdo.addPair(entry.getKey(), AuditUtils.getJ...
java
{ "resource": "" }
q153595
HpelHelper.setCustomHeaderFormat
train
public static void setCustomHeaderFormat(String[] headerFormat) { customFormat = new String[headerFormat.length]; System.arraycopy(headerFormat, 0, customFormat, 0, headerFormat.length); }
java
{ "resource": "" }
q153596
HpelHelper.getHeaderAsProperties
train
public static Properties getHeaderAsProperties() { Properties result = new Properties(); if (customProps != null) { result.putAll(customProps); } result.put(ServerInstanceLogRecordList.HEADER_PROCESSID, processId); result.put(ServerInstanceLogRecordList.HEADER_SERVE...
java
{ "resource": "" }
q153597
HpelHelper.printStackTrace
train
private final static void printStackTrace(Throwable t, PrintWriter p) { if (t == null) { p.println("none"); return; } // Capture any exceptions while printing stack so we return what we have // so far try { // Print the stack trace of the Thro...
java
{ "resource": "" }
q153598
HpelHelper.threadIdToString
train
public static String threadIdToString(int threadId) { StringBuffer buffer = new StringBuffer(8); // pad the HexString ThreadId so that it is always 8 characters long. for (int shift = 7; shift >= 0; shift--) { buffer.append(hexChars[(threadId >> (shift << 2)) & 0xF]); } ...
java
{ "resource": "" }
q153599
HpelHelper.escape
train
private final static String escape(String src) { if (src == null) { return ""; } StringBuffer result = null; for (int i = 0, max = src.length(), delta = 0; i < max; i++) { char c = src.charAt(i); if (!Character.isWhitespace(c) && Character.isISOControl...
java
{ "resource": "" }