id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
110,600 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java | ChannelSelector.getKey | final public SelectionKey getKey(SocketChannel channel) {
if (null == channel) {
return null;
}
return channel.keyFor(this.selector);
} | java | final public SelectionKey getKey(SocketChannel channel) {
if (null == channel) {
return null;
}
return channel.keyFor(this.selector);
} | [
"final",
"public",
"SelectionKey",
"getKey",
"(",
"SocketChannel",
"channel",
")",
"{",
"if",
"(",
"null",
"==",
"channel",
")",
"{",
"return",
"null",
";",
"}",
"return",
"channel",
".",
"keyFor",
"(",
"this",
".",
"selector",
")",
";",
"}"
] | Access the possible SelectionKey on this selector for the provided
channel.
@param channel
@return SelectionKey, null if not registered | [
"Access",
"the",
"possible",
"SelectionKey",
"on",
"this",
"selector",
"for",
"the",
"provided",
"channel",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java#L326-L331 |
110,601 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java | ChannelSelector.getWorkQueue | protected Queue<Object> getWorkQueue() {
synchronized (this.queueLock) {
// swap the primary and secondary queues
Queue<Object> tmp = this.workQueue1;
this.workQueue1 = this.workQueue2;
this.workQueue2 = tmp;
return tmp;
} // end-sync
} | java | protected Queue<Object> getWorkQueue() {
synchronized (this.queueLock) {
// swap the primary and secondary queues
Queue<Object> tmp = this.workQueue1;
this.workQueue1 = this.workQueue2;
this.workQueue2 = tmp;
return tmp;
} // end-sync
} | [
"protected",
"Queue",
"<",
"Object",
">",
"getWorkQueue",
"(",
")",
"{",
"synchronized",
"(",
"this",
".",
"queueLock",
")",
"{",
"// swap the primary and secondary queues",
"Queue",
"<",
"Object",
">",
"tmp",
"=",
"this",
".",
"workQueue1",
";",
"this",
".",
... | Access the current work queue of pending updates for the selector. This
will cause further updates to go onto another queue until this method
is called again.
@return Queue<Object> | [
"Access",
"the",
"current",
"work",
"queue",
"of",
"pending",
"updates",
"for",
"the",
"selector",
".",
"This",
"will",
"cause",
"further",
"updates",
"to",
"go",
"onto",
"another",
"queue",
"until",
"this",
"method",
"is",
"called",
"again",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java#L340-L348 |
110,602 | OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java | ChannelSelector.resetTimeout | protected void resetTimeout(long newTimeoutTime) {
// See if anything may have timed out
if (newTimeoutTime < this.nextTimeoutTime) {
this.nextTimeoutTime = newTimeoutTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "rese... | java | protected void resetTimeout(long newTimeoutTime) {
// See if anything may have timed out
if (newTimeoutTime < this.nextTimeoutTime) {
this.nextTimeoutTime = newTimeoutTime;
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(this, tc, "rese... | [
"protected",
"void",
"resetTimeout",
"(",
"long",
"newTimeoutTime",
")",
"{",
"// See if anything may have timed out",
"if",
"(",
"newTimeoutTime",
"<",
"this",
".",
"nextTimeoutTime",
")",
"{",
"this",
".",
"nextTimeoutTime",
"=",
"newTimeoutTime",
";",
"if",
"(",
... | Set the next timeout marker to the provided value if appropriate.
@param newTimeoutTime | [
"Set",
"the",
"next",
"timeout",
"marker",
"to",
"the",
"provided",
"value",
"if",
"appropriate",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/ChannelSelector.java#L495-L504 |
110,603 | OpenLiberty/open-liberty | dev/com.ibm.ws.beanvalidation.v11/src/com/ibm/ws/beanvalidation/v11/config/ValidationConfiguratorV11.java | ValidationConfiguratorV11.instantiateClass | @Override
protected <T> T instantiateClass(Class<T> clazz) throws Throwable {
// Get the current BeanManager for this module. If one doesn't exist it is because
// the module isn't CDI enabled and we fall back to the original behavior.
ManagedObject<T> mo = null;
if (releasableFact... | java | @Override
protected <T> T instantiateClass(Class<T> clazz) throws Throwable {
// Get the current BeanManager for this module. If one doesn't exist it is because
// the module isn't CDI enabled and we fall back to the original behavior.
ManagedObject<T> mo = null;
if (releasableFact... | [
"@",
"Override",
"protected",
"<",
"T",
">",
"T",
"instantiateClass",
"(",
"Class",
"<",
"T",
">",
"clazz",
")",
"throws",
"Throwable",
"{",
"// Get the current BeanManager for this module. If one doesn't exist it is because ",
"// the module isn't CDI enabled and we fall back ... | Override the base implementation so that when a class is instantiated
it is done so as a CDI managed bean. | [
"Override",
"the",
"base",
"implementation",
"so",
"that",
"when",
"a",
"class",
"is",
"instantiated",
"it",
"is",
"done",
"so",
"as",
"a",
"CDI",
"managed",
"bean",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.v11/src/com/ibm/ws/beanvalidation/v11/config/ValidationConfiguratorV11.java#L147-L170 |
110,604 | OpenLiberty/open-liberty | dev/com.ibm.ws.beanvalidation.v11/src/com/ibm/ws/beanvalidation/v11/config/ValidationConfiguratorV11.java | ValidationConfiguratorV11.getConstraintValidatorFactoryOverride | public ConstraintValidatorFactory getConstraintValidatorFactoryOverride(Configuration<?> config) {
ValidationReleasable<ConstraintValidatorFactory> releasable = null;
String cvfClassName = config.getBootstrapConfiguration().getConstraintValidatorFactoryClassName();
// If the validation.xml Cons... | java | public ConstraintValidatorFactory getConstraintValidatorFactoryOverride(Configuration<?> config) {
ValidationReleasable<ConstraintValidatorFactory> releasable = null;
String cvfClassName = config.getBootstrapConfiguration().getConstraintValidatorFactoryClassName();
// If the validation.xml Cons... | [
"public",
"ConstraintValidatorFactory",
"getConstraintValidatorFactoryOverride",
"(",
"Configuration",
"<",
"?",
">",
"config",
")",
"{",
"ValidationReleasable",
"<",
"ConstraintValidatorFactory",
">",
"releasable",
"=",
"null",
";",
"String",
"cvfClassName",
"=",
"config... | Get the default WebSphere ConstraintValidatorFactory as a managed object.
@return a managed object instance of ReleasableConstraintValidatorFactory {@link ConstraintValidatorFactory }
@throws ValidationException | [
"Get",
"the",
"default",
"WebSphere",
"ConstraintValidatorFactory",
"as",
"a",
"managed",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.beanvalidation.v11/src/com/ibm/ws/beanvalidation/v11/config/ValidationConfiguratorV11.java#L188-L207 |
110,605 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Factory.java | Factory.createMatcher | static ContentMatcher createMatcher(
OrdinalPosition lastOrdinalPosition,
Conjunction selector,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"lastOrdinalPosition: "
+ lastOrdinalPosition
+ ",selector: "
... | java | static ContentMatcher createMatcher(
OrdinalPosition lastOrdinalPosition,
Conjunction selector,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"lastOrdinalPosition: "
+ lastOrdinalPosition
+ ",selector: "
... | [
"static",
"ContentMatcher",
"createMatcher",
"(",
"OrdinalPosition",
"lastOrdinalPosition",
",",
"Conjunction",
"selector",
",",
"ContentMatcher",
"oldMatcher",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"cclass",
"... | "Create" a new ContentMatcher given the ordinal position of the parent and the child
Matcher that currently occupies the place in which the new ContentMatcher will be
placed. Sometimes no new ContentMatcher is created because the old child Matcher is
either usable as is or needs to have the new ContentMatcher created ... | [
"Create",
"a",
"new",
"ContentMatcher",
"given",
"the",
"ordinal",
"position",
"of",
"the",
"parent",
"and",
"the",
"child",
"Matcher",
"that",
"currently",
"occupies",
"the",
"place",
"in",
"which",
"the",
"new",
"ContentMatcher",
"will",
"be",
"placed",
".",... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Factory.java#L59-L175 |
110,606 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Factory.java | Factory.createMatcher | private static ContentMatcher createMatcher(
SimpleTest test,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"test: " + test + ", oldmatcher: " + oldMatcher);
Identifier id = test.getIdentifier();
boolean isExtended = (test in... | java | private static ContentMatcher createMatcher(
SimpleTest test,
ContentMatcher oldMatcher)
{
if (tc.isEntryEnabled())
tc.entry(
cclass,
"createMatcher",
"test: " + test + ", oldmatcher: " + oldMatcher);
Identifier id = test.getIdentifier();
boolean isExtended = (test in... | [
"private",
"static",
"ContentMatcher",
"createMatcher",
"(",
"SimpleTest",
"test",
",",
"ContentMatcher",
"oldMatcher",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"cclass",
",",
"\"createMatcher\"",
",",
"\"test: ... | Subroutine to determine the kind of Matcher to create and create it. | [
"Subroutine",
"to",
"determine",
"the",
"kind",
"of",
"Matcher",
"to",
"create",
"and",
"create",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/impl/Factory.java#L179-L277 |
110,607 | OpenLiberty/open-liberty | dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/ClientModuleInjection.java | ClientModuleInjection.inject | @Trivial
private void inject(Object obj, final Object instance, HashMap<Class<?>, InjectionTarget[]> cookies) throws InjectionException {
if (tc.isDebugEnabled())
Tr.debug(tc, "inject", "obj --> [" + obj + "]");
if (cookies.size() == 0) {
if (tc.isDebugEnabled())
... | java | @Trivial
private void inject(Object obj, final Object instance, HashMap<Class<?>, InjectionTarget[]> cookies) throws InjectionException {
if (tc.isDebugEnabled())
Tr.debug(tc, "inject", "obj --> [" + obj + "]");
if (cookies.size() == 0) {
if (tc.isDebugEnabled())
... | [
"@",
"Trivial",
"private",
"void",
"inject",
"(",
"Object",
"obj",
",",
"final",
"Object",
"instance",
",",
"HashMap",
"<",
"Class",
"<",
"?",
">",
",",
"InjectionTarget",
"[",
"]",
">",
"cookies",
")",
"throws",
"InjectionException",
"{",
"if",
"(",
"tc... | 'instance' is considered as the first injection target but may be null in which case injection is done on 'obj'. | [
"instance",
"is",
"considered",
"as",
"the",
"first",
"injection",
"target",
"but",
"may",
"be",
"null",
"in",
"which",
"case",
"injection",
"is",
"done",
"on",
"obj",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.clientcontainer/src/com/ibm/ws/clientcontainer/internal/ClientModuleInjection.java#L143-L188 |
110,608 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java | URLMap.setRoleMap | public void setRoleMap(String roleName, List<String> mList, boolean omission) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Setting rolemap with omission");
setMethodsAttribute(mList, omission, ROLE, roleName);
if (omission) {
unchkResourceForOmissionList = updateList(unchkRes... | java | public void setRoleMap(String roleName, List<String> mList, boolean omission) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Setting rolemap with omission");
setMethodsAttribute(mList, omission, ROLE, roleName);
if (omission) {
unchkResourceForOmissionList = updateList(unchkRes... | [
"public",
"void",
"setRoleMap",
"(",
"String",
"roleName",
",",
"List",
"<",
"String",
">",
"mList",
",",
"boolean",
"omission",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Setting rolemap with ... | if omission is true, put the item to omission list. | [
"if",
"omission",
"is",
"true",
"put",
"the",
"item",
"to",
"omission",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java#L121-L129 |
110,609 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java | URLMap.getRoleMap | public Map<String, String> getRoleMap() {
if (mapAllMethods != null) {
return getRoleMapFromAllMap();
}
Map<String, List<String>> outputRTMNormal = null;
Map<String, List<String>> outputRTMOmission = null;
if (mapMethod != null) {
outputRTMNormal = getRol... | java | public Map<String, String> getRoleMap() {
if (mapAllMethods != null) {
return getRoleMapFromAllMap();
}
Map<String, List<String>> outputRTMNormal = null;
Map<String, List<String>> outputRTMOmission = null;
if (mapMethod != null) {
outputRTMNormal = getRol... | [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"getRoleMap",
"(",
")",
"{",
"if",
"(",
"mapAllMethods",
"!=",
"null",
")",
"{",
"return",
"getRoleMapFromAllMap",
"(",
")",
";",
"}",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"ou... | In here, null is used to represent all methods. | [
"In",
"here",
"null",
"is",
"used",
"to",
"represent",
"all",
"methods",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java#L318-L352 |
110,610 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java | URLMap.convertMethod | private String convertMethod(List<String> methodList, boolean negative) {
boolean first = true;
StringBuffer methodSB = new StringBuffer();
for (String method : methodList) {
if (first) {
first = false;
if (negative) {
methodSB.appe... | java | private String convertMethod(List<String> methodList, boolean negative) {
boolean first = true;
StringBuffer methodSB = new StringBuffer();
for (String method : methodList) {
if (first) {
first = false;
if (negative) {
methodSB.appe... | [
"private",
"String",
"convertMethod",
"(",
"List",
"<",
"String",
">",
"methodList",
",",
"boolean",
"negative",
")",
"{",
"boolean",
"first",
"=",
"true",
";",
"StringBuffer",
"methodSB",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"for",
"(",
"String",
"m... | convert array of method to string | [
"convert",
"array",
"of",
"method",
"to",
"string"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java#L959-L976 |
110,611 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java | URLMap.getRoleMap | public Map<String, MethodConstraint> getRoleMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting role methods map");
return getMethodSet(table, ROLE_NO_CHECK);
} | java | public Map<String, MethodConstraint> getRoleMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting role methods map");
return getMethodSet(table, ROLE_NO_CHECK);
} | [
"public",
"Map",
"<",
"String",
",",
"MethodConstraint",
">",
"getRoleMap",
"(",
"int",
"table",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Getting role methods map\"",
")",
";",
"return",
"get... | returns entries which has a role | [
"returns",
"entries",
"which",
"has",
"a",
"role"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java#L1095-L1099 |
110,612 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java | URLMap.getUserDataMap | public Map<String, MethodConstraint> getUserDataMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting user data map of which attribute is either confidential or integral");
return getMethodSet(table, UD_CONFIDENTIAL_OR_INTEGRAL_NO_EX_CHECK);
} | java | public Map<String, MethodConstraint> getUserDataMap(int table) {
if (tc.isDebugEnabled())
Tr.debug(tc, "Getting user data map of which attribute is either confidential or integral");
return getMethodSet(table, UD_CONFIDENTIAL_OR_INTEGRAL_NO_EX_CHECK);
} | [
"public",
"Map",
"<",
"String",
",",
"MethodConstraint",
">",
"getUserDataMap",
"(",
"int",
"table",
")",
"{",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Getting user data map of which attribute is either confid... | to get entries with user data constraint is set as NONE, use getUserDataMapNone method | [
"to",
"get",
"entries",
"with",
"user",
"data",
"constraint",
"is",
"set",
"as",
"NONE",
"use",
"getUserDataMapNone",
"method"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authorization.jacc.web/src/com/ibm/ws/security/authorization/jacc/web/impl/URLMap.java#L1103-L1107 |
110,613 | OpenLiberty/open-liberty | dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/ResourceFactory.java | ResourceFactory.createResourceFromAsset | public RepositoryResourceImpl createResourceFromAsset(Asset ass, RepositoryConnection connection) throws RepositoryBackendException {
// No wlp information means no type set, so can't create a resource from this....
RepositoryResourceImpl result;
if (null == ass.getWlpInformation() ||
... | java | public RepositoryResourceImpl createResourceFromAsset(Asset ass, RepositoryConnection connection) throws RepositoryBackendException {
// No wlp information means no type set, so can't create a resource from this....
RepositoryResourceImpl result;
if (null == ass.getWlpInformation() ||
... | [
"public",
"RepositoryResourceImpl",
"createResourceFromAsset",
"(",
"Asset",
"ass",
",",
"RepositoryConnection",
"connection",
")",
"throws",
"RepositoryBackendException",
"{",
"// No wlp information means no type set, so can't create a resource from this....",
"RepositoryResourceImpl",
... | Creates a resources from the supplied asset
@param ass The asset to create the resource from.
@param userId user id to log on to massive with
@param password password to log on to massive with
@param apiKey the apikey for the marketplace
@return
@throws RepositoryBackendException | [
"Creates",
"a",
"resources",
"from",
"the",
"supplied",
"asset"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/resources/internal/ResourceFactory.java#L49-L61 |
110,614 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/interceptor/CachedTime.java | CachedTime.updateTime | private void updateTime(long tolerance) {
long now = System.currentTimeMillis();
// check for exact match
if (now == this.lastTimeCheck) {
return;
}
// check for a "range" match
if (0L != tolerance) {
long range = (-1 == tolerance) ? DEFAULT_TOLERA... | java | private void updateTime(long tolerance) {
long now = System.currentTimeMillis();
// check for exact match
if (now == this.lastTimeCheck) {
return;
}
// check for a "range" match
if (0L != tolerance) {
long range = (-1 == tolerance) ? DEFAULT_TOLERA... | [
"private",
"void",
"updateTime",
"(",
"long",
"tolerance",
")",
"{",
"long",
"now",
"=",
"System",
".",
"currentTimeMillis",
"(",
")",
";",
"// check for exact match",
"if",
"(",
"now",
"==",
"this",
".",
"lastTimeCheck",
")",
"{",
"return",
";",
"}",
"// ... | Utility method to determine whether to use the cached time value or
update to a newly formatted timestamp.
@param tolerance | [
"Utility",
"method",
"to",
"determine",
"whether",
"to",
"use",
"the",
"cached",
"time",
"value",
"or",
"update",
"to",
"a",
"newly",
"formatted",
"timestamp",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/interceptor/CachedTime.java#L71-L104 |
110,615 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java | Messages.getFormattedMessageFromLocalizedMessage | public static String getFormattedMessageFromLocalizedMessage(String traceString, Object[] newParms, boolean b) {
String retVal = "";
try {
retVal = MessageFormat.format(traceString, newParms);
if (null == retVal && b) {
retVal = traceString;
// System.out.println("Using default key");
}
} catch (... | java | public static String getFormattedMessageFromLocalizedMessage(String traceString, Object[] newParms, boolean b) {
String retVal = "";
try {
retVal = MessageFormat.format(traceString, newParms);
if (null == retVal && b) {
retVal = traceString;
// System.out.println("Using default key");
}
} catch (... | [
"public",
"static",
"String",
"getFormattedMessageFromLocalizedMessage",
"(",
"String",
"traceString",
",",
"Object",
"[",
"]",
"newParms",
",",
"boolean",
"b",
")",
"{",
"String",
"retVal",
"=",
"\"\"",
";",
"try",
"{",
"retVal",
"=",
"MessageFormat",
".",
"f... | Retrieve a string from the bundle and format it using the parameters
@param traceString
localized string to be formatted
@param newParms
parameters to populate positional parameters in localized
message
@param b
whether to return the initial string if formatting fails
@return formatted and localized message | [
"Retrieve",
"a",
"string",
"from",
"the",
"bundle",
"and",
"format",
"it",
"using",
"the",
"parameters"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java#L96-L114 |
110,616 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java | Messages.getFormattedMessage | public String getFormattedMessage(String messageKey, Object[] param, String defaultKey) {
String key = getString(messageKey);
String retVal = MessageFormat.format(key, param);
return retVal;
} | java | public String getFormattedMessage(String messageKey, Object[] param, String defaultKey) {
String key = getString(messageKey);
String retVal = MessageFormat.format(key, param);
return retVal;
} | [
"public",
"String",
"getFormattedMessage",
"(",
"String",
"messageKey",
",",
"Object",
"[",
"]",
"param",
",",
"String",
"defaultKey",
")",
"{",
"String",
"key",
"=",
"getString",
"(",
"messageKey",
")",
";",
"String",
"retVal",
"=",
"MessageFormat",
".",
"f... | Retrieve a message and format it with the parameters
@param messageKey
Message key to use
@param param
Object to use for formatting
@param defaultKey
The default key to use in case message key is not found
@return message formatted with the parameters | [
"Retrieve",
"a",
"message",
"and",
"format",
"it",
"with",
"the",
"parameters"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java#L191-L195 |
110,617 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java | Messages.getString | public String getString(String messageKey) {
String retVal = messageKey;
ResourceBundle rb = getResourceBundle();
if (null != rb) {
try {
String tmpRetVal = rb.getString(messageKey);
if (null != tmpRetVal) {
retVal = tmpRetVal;
// } else {
// if (quiet) {
//
// logger.log(Le... | java | public String getString(String messageKey) {
String retVal = messageKey;
ResourceBundle rb = getResourceBundle();
if (null != rb) {
try {
String tmpRetVal = rb.getString(messageKey);
if (null != tmpRetVal) {
retVal = tmpRetVal;
// } else {
// if (quiet) {
//
// logger.log(Le... | [
"public",
"String",
"getString",
"(",
"String",
"messageKey",
")",
"{",
"String",
"retVal",
"=",
"messageKey",
";",
"ResourceBundle",
"rb",
"=",
"getResourceBundle",
"(",
")",
";",
"if",
"(",
"null",
"!=",
"rb",
")",
"{",
"try",
"{",
"String",
"tmpRetVal",... | Retrieve a message key from the resource bundle
@param messageKey
Message Key to locate
@return localized message in resource bundle associated with this message
key | [
"Retrieve",
"a",
"message",
"key",
"from",
"the",
"resource",
"bundle"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java#L205-L253 |
110,618 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java | Messages.getResourceBundle | private ResourceBundle getResourceBundle() {
ResourceBundle rb = null;
/*
* make sure we have a valid bundle name
*/
if (null != ivBundleName && !"".equals(ivBundleName.trim())) {
ClassLoader classLoader = null;
/*
* get the context classloader to lookup bundle
*/
try {
cl... | java | private ResourceBundle getResourceBundle() {
ResourceBundle rb = null;
/*
* make sure we have a valid bundle name
*/
if (null != ivBundleName && !"".equals(ivBundleName.trim())) {
ClassLoader classLoader = null;
/*
* get the context classloader to lookup bundle
*/
try {
cl... | [
"private",
"ResourceBundle",
"getResourceBundle",
"(",
")",
"{",
"ResourceBundle",
"rb",
"=",
"null",
";",
"/*\n\t\t * make sure we have a valid bundle name\n\t\t */",
"if",
"(",
"null",
"!=",
"ivBundleName",
"&&",
"!",
"\"\"",
".",
"equals",
"(",
"ivBundleName",
".",... | Private message to locate resource bundle
@return | [
"Private",
"message",
"to",
"locate",
"resource",
"bundle"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java#L260-L335 |
110,619 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java | Messages.locateBundleFromCallee | private ResourceBundle locateBundleFromCallee() {
ResourceBundle rb = null;
if (finder == null) {
finder = StackFinder.getInstance();
}
final Class<?> aClass = finder.getCaller();
if (aClass != null) {
// If aClass is NOT null (it was passed in, or we found it),
// use its classloader first to try... | java | private ResourceBundle locateBundleFromCallee() {
ResourceBundle rb = null;
if (finder == null) {
finder = StackFinder.getInstance();
}
final Class<?> aClass = finder.getCaller();
if (aClass != null) {
// If aClass is NOT null (it was passed in, or we found it),
// use its classloader first to try... | [
"private",
"ResourceBundle",
"locateBundleFromCallee",
"(",
")",
"{",
"ResourceBundle",
"rb",
"=",
"null",
";",
"if",
"(",
"finder",
"==",
"null",
")",
"{",
"finder",
"=",
"StackFinder",
".",
"getInstance",
"(",
")",
";",
"}",
"final",
"Class",
"<",
"?",
... | Call the stack finder to get the callee of the logging api, then use the
classloader from class to retrieve resource bundle
@return The resoruce bundle from callees classpath or null | [
"Call",
"the",
"stack",
"finder",
"to",
"get",
"the",
"callee",
"of",
"the",
"logging",
"api",
"then",
"use",
"the",
"classloader",
"from",
"class",
"to",
"retrieve",
"resource",
"bundle"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging.hpel/src/com/ibm/ejs/ras/hpel/Messages.java#L343-L389 |
110,620 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java | CircuitBreakerStateImpl.synchronizedRequestPermissionToExecute | private boolean synchronizedRequestPermissionToExecute() {
boolean result = false;
synchronized (this) {
switch (state.get()) {
case CLOSED:
result = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | private boolean synchronizedRequestPermissionToExecute() {
boolean result = false;
synchronized (this) {
switch (state.get()) {
case CLOSED:
result = true;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"private",
"boolean",
"synchronizedRequestPermissionToExecute",
"(",
")",
"{",
"boolean",
"result",
"=",
"false",
";",
"synchronized",
"(",
"this",
")",
"{",
"switch",
"(",
"state",
".",
"get",
"(",
")",
")",
"{",
"case",
"CLOSED",
":",
"result",
"=",
"tru... | Implements the logic for requestPermissionToExecute for the cases where synchronization is required
@return whether execution is permitted | [
"Implements",
"the",
"logic",
"for",
"requestPermissionToExecute",
"for",
"the",
"cases",
"where",
"synchronization",
"is",
"required"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java#L132-L189 |
110,621 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java | CircuitBreakerStateImpl.synchronizedRecordResult | private void synchronizedRecordResult(CircuitBreakerResult result) {
synchronized (this) {
switch (state.get()) {
case CLOSED:
rollingWindow.record(result);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | java | private void synchronizedRecordResult(CircuitBreakerResult result) {
synchronized (this) {
switch (state.get()) {
case CLOSED:
rollingWindow.record(result);
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
... | [
"private",
"void",
"synchronizedRecordResult",
"(",
"CircuitBreakerResult",
"result",
")",
"{",
"synchronized",
"(",
"this",
")",
"{",
"switch",
"(",
"state",
".",
"get",
"(",
")",
")",
"{",
"case",
"CLOSED",
":",
"rollingWindow",
".",
"record",
"(",
"result... | Implements the logic for recordResult for the cases where synchronization is required | [
"Implements",
"the",
"logic",
"for",
"recordResult",
"for",
"the",
"cases",
"where",
"synchronization",
"is",
"required"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java#L194-L229 |
110,622 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java | CircuitBreakerStateImpl.stateClosed | @Trivial
private void stateClosed() {
rollingWindow.clear();
state.set(State.CLOSED);
metricRecorder.reportCircuitClosed();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Closed state");
}
} | java | @Trivial
private void stateClosed() {
rollingWindow.clear();
state.set(State.CLOSED);
metricRecorder.reportCircuitClosed();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Closed state");
}
} | [
"@",
"Trivial",
"private",
"void",
"stateClosed",
"(",
")",
"{",
"rollingWindow",
".",
"clear",
"(",
")",
";",
"state",
".",
"set",
"(",
"State",
".",
"CLOSED",
")",
";",
"metricRecorder",
".",
"reportCircuitClosed",
"(",
")",
";",
"if",
"(",
"TraceCompo... | Transition to closed state | [
"Transition",
"to",
"closed",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java#L234-L242 |
110,623 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java | CircuitBreakerStateImpl.stateHalfOpen | @Trivial
private void stateHalfOpen() {
halfOpenRunningExecutions = 0;
halfOpenSuccessfulExecutions = 0;
state.set(State.HALF_OPEN);
metricRecorder.reportCircuitHalfOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transition... | java | @Trivial
private void stateHalfOpen() {
halfOpenRunningExecutions = 0;
halfOpenSuccessfulExecutions = 0;
state.set(State.HALF_OPEN);
metricRecorder.reportCircuitHalfOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transition... | [
"@",
"Trivial",
"private",
"void",
"stateHalfOpen",
"(",
")",
"{",
"halfOpenRunningExecutions",
"=",
"0",
";",
"halfOpenSuccessfulExecutions",
"=",
"0",
";",
"state",
".",
"set",
"(",
"State",
".",
"HALF_OPEN",
")",
";",
"metricRecorder",
".",
"reportCircuitHalf... | Transition to half open state | [
"Transition",
"to",
"half",
"open",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java#L247-L256 |
110,624 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java | CircuitBreakerStateImpl.stateOpen | @Trivial
private void stateOpen() {
openStateStartTime = System.nanoTime();
state.set(State.OPEN);
metricRecorder.reportCircuitOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Open state");
}
} | java | @Trivial
private void stateOpen() {
openStateStartTime = System.nanoTime();
state.set(State.OPEN);
metricRecorder.reportCircuitOpen();
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Transitioned to Open state");
}
} | [
"@",
"Trivial",
"private",
"void",
"stateOpen",
"(",
")",
"{",
"openStateStartTime",
"=",
"System",
".",
"nanoTime",
"(",
")",
";",
"state",
".",
"set",
"(",
"State",
".",
"OPEN",
")",
";",
"metricRecorder",
".",
"reportCircuitOpen",
"(",
")",
";",
"if",... | Transition to open state | [
"Transition",
"to",
"open",
"state"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.2.0/src/com/ibm/ws/microprofile/faulttolerance20/state/impl/CircuitBreakerStateImpl.java#L261-L269 |
110,625 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/cache/DynamicCacheAccessor.java | DynamicCacheAccessor.getCache | public static com.ibm.websphere.cache.Cache getCache() {
if (isServletCachingEnabled())
return (com.ibm.websphere.cache.Cache)ServerCache.cache;
else
return null;
} | java | public static com.ibm.websphere.cache.Cache getCache() {
if (isServletCachingEnabled())
return (com.ibm.websphere.cache.Cache)ServerCache.cache;
else
return null;
} | [
"public",
"static",
"com",
".",
"ibm",
".",
"websphere",
".",
"cache",
".",
"Cache",
"getCache",
"(",
")",
"{",
"if",
"(",
"isServletCachingEnabled",
"(",
")",
")",
"return",
"(",
"com",
".",
"ibm",
".",
"websphere",
".",
"cache",
".",
"Cache",
")",
... | This obtains a reference to the dynamic cache.
@ibm-api
@return Reference to the cache or null if caching is disabled
@see #getDistributedMap()
@see DistributedMap
@deprecated Use DistributedMap to store and manage objects
in cache. DynamicCacheAccessor#getDistributedMap
will return a DistributedMap for accessing
base... | [
"This",
"obtains",
"a",
"reference",
"to",
"the",
"dynamic",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/cache/DynamicCacheAccessor.java#L45-L50 |
110,626 | OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/websphere/cache/DynamicCacheAccessor.java | DynamicCacheAccessor.getDistributedMap | public static DistributedMap getDistributedMap() {
final String methodName="getDistributedMap()";
if (tc.isEntryEnabled()) {
Tr.entry(tc, methodName);
}
DistributedMap distributedMap = null;
Context context = null;
if (isObjectCachingEnabled()) {
t... | java | public static DistributedMap getDistributedMap() {
final String methodName="getDistributedMap()";
if (tc.isEntryEnabled()) {
Tr.entry(tc, methodName);
}
DistributedMap distributedMap = null;
Context context = null;
if (isObjectCachingEnabled()) {
t... | [
"public",
"static",
"DistributedMap",
"getDistributedMap",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getDistributedMap()\"",
";",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"methodName",
")",... | This method will return a DistributedMap reference to the dynamic cache.
@return Reference to the DistributedMap or null
if caching is disabled.
@since v6.0
@ibm-api
@deprecated baseCache is used for servlet caching. It should not be used
as a DistributedMap. | [
"This",
"method",
"will",
"return",
"a",
"DistributedMap",
"reference",
"to",
"the",
"dynamic",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/websphere/cache/DynamicCacheAccessor.java#L89-L121 |
110,627 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.eval | public Object eval(
Selector sel,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
boolean permissive)
throws BadMessageFormatMatchingException
{
// This method should never be applied to a selector that has marked itself invalid
// during parsing.
if (sel.getType() == Sel... | java | public Object eval(
Selector sel,
MatchSpaceKey msg,
EvalCache cache,
Object contextValue,
boolean permissive)
throws BadMessageFormatMatchingException
{
// This method should never be applied to a selector that has marked itself invalid
// during parsing.
if (sel.getType() == Sel... | [
"public",
"Object",
"eval",
"(",
"Selector",
"sel",
",",
"MatchSpaceKey",
"msg",
",",
"EvalCache",
"cache",
",",
"Object",
"contextValue",
",",
"boolean",
"permissive",
")",
"throws",
"BadMessageFormatMatchingException",
"{",
"// This method should never be applied to a s... | Evaluates a selector tree
@param sel the selector tree to evaluate
@param bind the MatchSpaceKey to use in evaluating identifiers and caching partial
results
@param permissive if true, evaluation should observe "permissive" mode in which there
are implicit casts between strings and numbers and between strings and bo... | [
"Evaluates",
"a",
"selector",
"tree"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L64-L91 |
110,628 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.castToNumber | public static Number castToNumber(Object val) // was NumericValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToNumber", val);
if (!(val instanceof String))
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "castToNumber", null... | java | public static Number castToNumber(Object val) // was NumericValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToNumber", val);
if (!(val instanceof String))
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "castToNumber", null... | [
"public",
"static",
"Number",
"castToNumber",
"(",
"Object",
"val",
")",
"// was NumericValue",
"{",
"if",
"(",
"tc",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"cclass",
",",
"\"castToN... | be so cast. | [
"be",
"so",
"cast",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L449-L519 |
110,629 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.castToBoolean | private static Boolean castToBoolean(Object val) //was BooleanValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToBoolean", val);
Boolean theReturn = null;
if (val instanceof String)
{
String stringVal = (String) val;
if (stringVal.equalsIgnoreCase("t... | java | private static Boolean castToBoolean(Object val) //was BooleanValue
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "castToBoolean", val);
Boolean theReturn = null;
if (val instanceof String)
{
String stringVal = (String) val;
if (stringVal.equalsIgnoreCase("t... | [
"private",
"static",
"Boolean",
"castToBoolean",
"(",
"Object",
"val",
")",
"//was BooleanValue",
"{",
"if",
"(",
"tc",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"cclass",
",",
"\"castT... | Cast an Object which is not null and not an instance of BooleanValue to BooleanValue,
if possible under the permissive rules, BooleanValue.NULL otherwise. In fact, only a
String can be so cast.
@param val
@return | [
"Cast",
"an",
"Object",
"which",
"is",
"not",
"null",
"and",
"not",
"an",
"instance",
"of",
"BooleanValue",
"to",
"BooleanValue",
"if",
"possible",
"under",
"the",
"permissive",
"rules",
"BooleanValue",
".",
"NULL",
"otherwise",
".",
"In",
"fact",
"only",
"a... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L528-L545 |
110,630 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.getStringFromNode | protected String getStringFromNode(Object inNode)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getStringFromNode", inNode);
String strValue = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "getStringFromNode", strValue);
ret... | java | protected String getStringFromNode(Object inNode)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getStringFromNode", inNode);
String strValue = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "getStringFromNode", strValue);
ret... | [
"protected",
"String",
"getStringFromNode",
"(",
"Object",
"inNode",
")",
"{",
"if",
"(",
"tc",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"cclass",
",",
"\"getStringFromNode\"",
",",
"i... | Get the String value of a node.
@param inNode
@return | [
"Get",
"the",
"String",
"value",
"of",
"a",
"node",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L613-L623 |
110,631 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.getDocumentRoot | public Object getDocumentRoot(MatchSpaceKey msg)
throws BadMessageFormatMatchingException
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getDocumentRoot", msg);
Object docRoot = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "get... | java | public Object getDocumentRoot(MatchSpaceKey msg)
throws BadMessageFormatMatchingException
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass, "getDocumentRoot", msg);
Object docRoot = null;
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.exit(cclass, "get... | [
"public",
"Object",
"getDocumentRoot",
"(",
"MatchSpaceKey",
"msg",
")",
"throws",
"BadMessageFormatMatchingException",
"{",
"if",
"(",
"tc",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"tc",
".",
"entry",
"(",
"ccla... | Get a DOM document root from a message.
@param childNodeList
@return
@throws BadMessageFormatMatchingException | [
"Get",
"a",
"DOM",
"document",
"root",
"from",
"a",
"message",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L637-L648 |
110,632 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.compareList | protected Boolean compareList( // was BooleanValue
ArrayList firstList,
Object val1,
boolean lessThan,
boolean permissive,
boolean overallTrue) // If true we are searching for at least one TRUE result, else at least one FALSE.
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled()... | java | protected Boolean compareList( // was BooleanValue
ArrayList firstList,
Object val1,
boolean lessThan,
boolean permissive,
boolean overallTrue) // If true we are searching for at least one TRUE result, else at least one FALSE.
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled()... | [
"protected",
"Boolean",
"compareList",
"(",
"// was BooleanValue",
"ArrayList",
"firstList",
",",
"Object",
"val1",
",",
"boolean",
"lessThan",
",",
"boolean",
"permissive",
",",
"boolean",
"overallTrue",
")",
"// If true we are searching for at least one TRUE result, else at... | An implementation of this method is provided in the derived XPath class. In the
parent class it merely returns null.
@param firstList
@param val1
@param lessThan
@param permissive
@param overallTrue
@return | [
"An",
"implementation",
"of",
"this",
"method",
"is",
"provided",
"in",
"the",
"derived",
"XPath",
"class",
".",
"In",
"the",
"parent",
"class",
"it",
"merely",
"returns",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L661-L682 |
110,633 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.promoteAndEvaluate | private static Object promoteAndEvaluate(
int op,
Object val0,
Object val1,
boolean permissive)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"promoteAndEvaluate",
new Object[] { new Integer(op), val0, val1, new Boolean(permissive) })... | java | private static Object promoteAndEvaluate(
int op,
Object val0,
Object val1,
boolean permissive)
{
if (tc.isAnyTracingEnabled() && tc.isEntryEnabled())
tc.entry(cclass,
"promoteAndEvaluate",
new Object[] { new Integer(op), val0, val1, new Boolean(permissive) })... | [
"private",
"static",
"Object",
"promoteAndEvaluate",
"(",
"int",
"op",
",",
"Object",
"val0",
",",
"Object",
"val1",
",",
"boolean",
"permissive",
")",
"{",
"if",
"(",
"tc",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",... | Evaluate a binary numeric operator with numeric result | [
"Evaluate",
"a",
"binary",
"numeric",
"operator",
"with",
"numeric",
"result"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L867-L885 |
110,634 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.ttIndex | public static int ttIndex(Boolean bVal)
{
int idx = 2;
if(bVal != null)
{
if (bVal.booleanValue())
{
idx = 0;
}
else if (!bVal.booleanValue())
{
idx = 1;
}
}
return idx;
} | java | public static int ttIndex(Boolean bVal)
{
int idx = 2;
if(bVal != null)
{
if (bVal.booleanValue())
{
idx = 0;
}
else if (!bVal.booleanValue())
{
idx = 1;
}
}
return idx;
} | [
"public",
"static",
"int",
"ttIndex",
"(",
"Boolean",
"bVal",
")",
"{",
"int",
"idx",
"=",
"2",
";",
"if",
"(",
"bVal",
"!=",
"null",
")",
"{",
"if",
"(",
"bVal",
".",
"booleanValue",
"(",
")",
")",
"{",
"idx",
"=",
"0",
";",
"}",
"else",
"if",... | Get Truth Table index | [
"Get",
"Truth",
"Table",
"index"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L991-L1007 |
110,635 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.and | public static Boolean and(Boolean a, Boolean b)
{
return andTable[ttIndex(a)][ttIndex(b)];
} | java | public static Boolean and(Boolean a, Boolean b)
{
return andTable[ttIndex(a)][ttIndex(b)];
} | [
"public",
"static",
"Boolean",
"and",
"(",
"Boolean",
"a",
",",
"Boolean",
"b",
")",
"{",
"return",
"andTable",
"[",
"ttIndex",
"(",
"a",
")",
"]",
"[",
"ttIndex",
"(",
"b",
")",
"]",
";",
"}"
] | Perform logical 'and' between BooleanValue instances | [
"Perform",
"logical",
"and",
"between",
"BooleanValue",
"instances"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1012-L1015 |
110,636 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.or | public static Boolean or(Boolean a,Boolean b)
{
return orTable[ttIndex(a)][ttIndex(b)];
} | java | public static Boolean or(Boolean a,Boolean b)
{
return orTable[ttIndex(a)][ttIndex(b)];
} | [
"public",
"static",
"Boolean",
"or",
"(",
"Boolean",
"a",
",",
"Boolean",
"b",
")",
"{",
"return",
"orTable",
"[",
"ttIndex",
"(",
"a",
")",
"]",
"[",
"ttIndex",
"(",
"b",
")",
"]",
";",
"}"
] | Perform logical 'or' between BooleanValue instances | [
"Perform",
"logical",
"or",
"between",
"BooleanValue",
"instances"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1020-L1023 |
110,637 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.not | public static Boolean not(Boolean bVal)
{
// return notTable[lookupValue];
if(bVal == null)
return null;
else if (bVal.equals(Boolean.TRUE))
return Boolean.FALSE;
else if (bVal.equals(Boolean.FALSE))
return Boolean.TRUE;
else return null;
} | java | public static Boolean not(Boolean bVal)
{
// return notTable[lookupValue];
if(bVal == null)
return null;
else if (bVal.equals(Boolean.TRUE))
return Boolean.FALSE;
else if (bVal.equals(Boolean.FALSE))
return Boolean.TRUE;
else return null;
} | [
"public",
"static",
"Boolean",
"not",
"(",
"Boolean",
"bVal",
")",
"{",
"// return notTable[lookupValue];",
"if",
"(",
"bVal",
"==",
"null",
")",
"return",
"null",
";",
"else",
"if",
"(",
"bVal",
".",
"equals",
"(",
"Boolean",
".",
"TRUE",
")",
")",
"... | Perform logical 'not' on a Boolean instance | [
"Perform",
"logical",
"not",
"on",
"a",
"Boolean",
"instance"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1028-L1039 |
110,638 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.compare | public static int compare(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
int li = a.intValue();
int ri = b.intValue();
return (li < ri) ? -1 : (li == ri) ? 0 ... | java | public static int compare(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
int li = a.intValue();
int ri = b.intValue();
return (li < ri) ? -1 : (li == ri) ? 0 ... | [
"public",
"static",
"int",
"compare",
"(",
"Number",
"a",
",",
"Number",
"b",
")",
"{",
"int",
"aType",
"=",
"getType",
"(",
"a",
")",
";",
"int",
"bType",
"=",
"getType",
"(",
"b",
")",
";",
"int",
"compType",
"=",
"(",
"aType",
">=",
"bType",
"... | Implement Number compare | [
"Implement",
"Number",
"compare"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1047-L1074 |
110,639 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.getType | public static int getType(Number val)
{
if (val instanceof Integer)
{
return INT;
}
else if (val instanceof Long)
{
return LONG;
}
else if (val instanceof Short)
{
return SHORT;
}
else if (val instanceof Byte)
{
return BYTE;
}
else i... | java | public static int getType(Number val)
{
if (val instanceof Integer)
{
return INT;
}
else if (val instanceof Long)
{
return LONG;
}
else if (val instanceof Short)
{
return SHORT;
}
else if (val instanceof Byte)
{
return BYTE;
}
else i... | [
"public",
"static",
"int",
"getType",
"(",
"Number",
"val",
")",
"{",
"if",
"(",
"val",
"instanceof",
"Integer",
")",
"{",
"return",
"INT",
";",
"}",
"else",
"if",
"(",
"val",
"instanceof",
"Long",
")",
"{",
"return",
"LONG",
";",
"}",
"else",
"if",
... | Make a NumericValue from a standard wrapper subclass of Number | [
"Make",
"a",
"NumericValue",
"from",
"a",
"standard",
"wrapper",
"subclass",
"of",
"Number"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1079-L1106 |
110,640 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.neg | private static Number neg(Number n)
{
switch (getType(n))
{
case INT :
return new Integer(-n.intValue());
case LONG :
return new Long(-n.longValue());
case FLOAT :
return new Float(-n.floatValue());
case DOUBLE :
return new Double(-n.doubleValue());
... | java | private static Number neg(Number n)
{
switch (getType(n))
{
case INT :
return new Integer(-n.intValue());
case LONG :
return new Long(-n.longValue());
case FLOAT :
return new Float(-n.floatValue());
case DOUBLE :
return new Double(-n.doubleValue());
... | [
"private",
"static",
"Number",
"neg",
"(",
"Number",
"n",
")",
"{",
"switch",
"(",
"getType",
"(",
"n",
")",
")",
"{",
"case",
"INT",
":",
"return",
"new",
"Integer",
"(",
"-",
"n",
".",
"intValue",
"(",
")",
")",
";",
"case",
"LONG",
":",
"retur... | Negate the value | [
"Negate",
"the",
"value"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1111-L1126 |
110,641 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java | EvaluatorImpl.times | private static Number times(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
return new Integer(a.intValue() * b.intValue());
case LONG :
return new Long(a.long... | java | private static Number times(Number a, Number b)
{
int aType = getType(a);
int bType = getType(b);
int compType = (aType >= bType) ? aType : bType;
switch (compType)
{
case INT :
return new Integer(a.intValue() * b.intValue());
case LONG :
return new Long(a.long... | [
"private",
"static",
"Number",
"times",
"(",
"Number",
"a",
",",
"Number",
"b",
")",
"{",
"int",
"aType",
"=",
"getType",
"(",
"a",
")",
";",
"int",
"bType",
"=",
"getType",
"(",
"b",
")",
";",
"int",
"compType",
"=",
"(",
"aType",
">=",
"bType",
... | Multiply two values | [
"Multiply",
"two",
"values"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/EvaluatorImpl.java#L1155-L1174 |
110,642 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.getResourceNameFromDescription | protected static String getResourceNameFromDescription(String desc) {
Type type = Type.getType(desc);
String className = type.getClassName();
String resourceName = className.replace(".", "/");
return resourceName;
} | java | protected static String getResourceNameFromDescription(String desc) {
Type type = Type.getType(desc);
String className = type.getClassName();
String resourceName = className.replace(".", "/");
return resourceName;
} | [
"protected",
"static",
"String",
"getResourceNameFromDescription",
"(",
"String",
"desc",
")",
"{",
"Type",
"type",
"=",
"Type",
".",
"getType",
"(",
"desc",
")",
";",
"String",
"className",
"=",
"type",
".",
"getClassName",
"(",
")",
";",
"String",
"resourc... | That call should be inlined. | [
"That",
"call",
"should",
"be",
"inlined",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L100-L107 |
110,643 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.i_recordScannedClassName | protected boolean i_recordScannedClassName(String i_className) {
boolean didPlaceClass = annotationTargets.i_placeClass(i_getClassSourceName(), i_className);
if (!didPlaceClass) {
return false;
}
boolean didAddClass = annotationTargets.i_addScannedClassName(i_className, getS... | java | protected boolean i_recordScannedClassName(String i_className) {
boolean didPlaceClass = annotationTargets.i_placeClass(i_getClassSourceName(), i_className);
if (!didPlaceClass) {
return false;
}
boolean didAddClass = annotationTargets.i_addScannedClassName(i_className, getS... | [
"protected",
"boolean",
"i_recordScannedClassName",
"(",
"String",
"i_className",
")",
"{",
"boolean",
"didPlaceClass",
"=",
"annotationTargets",
".",
"i_placeClass",
"(",
"i_getClassSourceName",
"(",
")",
",",
"i_className",
")",
";",
"if",
"(",
"!",
"didPlaceClass... | Main record methods ... | [
"Main",
"record",
"methods",
"..."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L283-L291 |
110,644 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.visit | @Override
public void visit(int version,
int access,
String classResourceName,
String signature,
String superClassResourceName,
String interfaceResourceNames[]) {
Object[] logParms;
if (tc.... | java | @Override
public void visit(int version,
int access,
String classResourceName,
String signature,
String superClassResourceName,
String interfaceResourceNames[]) {
Object[] logParms;
if (tc.... | [
"@",
"Override",
"public",
"void",
"visit",
"(",
"int",
"version",
",",
"int",
"access",
",",
"String",
"classResourceName",
",",
"String",
"signature",
",",
"String",
"superClassResourceName",
",",
"String",
"interfaceResourceNames",
"[",
"]",
")",
"{",
"Object... | Note that the names are resource names. | [
"Note",
"that",
"the",
"names",
"are",
"resource",
"names",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L330-L445 |
110,645 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.visitAnnotation | @Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
AnnotationCategory category = (isClass ? AnnotationCategory.CLASS : AnnotationCategory.PACKAGE);
recordAnnotation(category, desc);
return null;
} | java | @Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
AnnotationCategory category = (isClass ? AnnotationCategory.CLASS : AnnotationCategory.PACKAGE);
recordAnnotation(category, desc);
return null;
} | [
"@",
"Override",
"public",
"AnnotationVisitor",
"visitAnnotation",
"(",
"String",
"desc",
",",
"boolean",
"visible",
")",
"{",
"AnnotationCategory",
"category",
"=",
"(",
"isClass",
"?",
"AnnotationCategory",
".",
"CLASS",
":",
"AnnotationCategory",
".",
"PACKAGE",
... | is recorded. | [
"is",
"recorded",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L499-L506 |
110,646 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.visitField | @Override
public FieldVisitor visitField(int access, String name, String desc, String signature, Object defaultValue) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return fieldVisitor;
} | java | @Override
public FieldVisitor visitField(int access, String name, String desc, String signature, Object defaultValue) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return fieldVisitor;
} | [
"@",
"Override",
"public",
"FieldVisitor",
"visitField",
"(",
"int",
"access",
",",
"String",
"name",
",",
"String",
"desc",
",",
"String",
"signature",
",",
"Object",
"defaultValue",
")",
"{",
"if",
"(",
"scanPolicyIsExternal",
"(",
")",
"||",
"!",
"isDetai... | visiting the field. | [
"visiting",
"the",
"field",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L541-L549 |
110,647 | OpenLiberty/open-liberty | dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java | AnnotationTargetsVisitor.visitMethod | @Override
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String exceptions[]) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return methodVisitor;
} | java | @Override
public MethodVisitor visitMethod(int access, String name, String desc, String signature, String exceptions[]) {
if (scanPolicyIsExternal() || !isDetailEnabled()) {
visitEnd();
throw VISIT_ENDED_DETAIL;
}
return methodVisitor;
} | [
"@",
"Override",
"public",
"MethodVisitor",
"visitMethod",
"(",
"int",
"access",
",",
"String",
"name",
",",
"String",
"desc",
",",
"String",
"signature",
",",
"String",
"exceptions",
"[",
"]",
")",
"{",
"if",
"(",
"scanPolicyIsExternal",
"(",
")",
"||",
"... | visiting the method. | [
"visiting",
"the",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.anno/src/com/ibm/ws/anno/targets/internal/AnnotationTargetsVisitor.java#L598-L606 |
110,648 | OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java | ServiceRefObjectFactory.mergeWebServicesBndInfo | private void mergeWebServicesBndInfo(WebServiceRefInfo wsrInfo, JaxWsClientMetaData jaxwsClientMetaData) {
WebservicesBnd webServicesBnd = null;
try {
webServicesBnd = jaxwsClientMetaData.getModuleMetaData().getModuleContainer().adapt(WebservicesBnd.class);
} catch (UnableToAdaptExc... | java | private void mergeWebServicesBndInfo(WebServiceRefInfo wsrInfo, JaxWsClientMetaData jaxwsClientMetaData) {
WebservicesBnd webServicesBnd = null;
try {
webServicesBnd = jaxwsClientMetaData.getModuleMetaData().getModuleContainer().adapt(WebservicesBnd.class);
} catch (UnableToAdaptExc... | [
"private",
"void",
"mergeWebServicesBndInfo",
"(",
"WebServiceRefInfo",
"wsrInfo",
",",
"JaxWsClientMetaData",
"jaxwsClientMetaData",
")",
"{",
"WebservicesBnd",
"webServicesBnd",
"=",
"null",
";",
"try",
"{",
"webServicesBnd",
"=",
"jaxwsClientMetaData",
".",
"getModuleM... | merge the configurations from the ibm-ws-bnd.xml
@param wsrInfo | [
"merge",
"the",
"configurations",
"from",
"the",
"ibm",
"-",
"ws",
"-",
"bnd",
".",
"xml"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.common/src/com/ibm/ws/jaxws/client/injection/ServiceRefObjectFactory.java#L674-L722 |
110,649 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/ExceptionClassFilter.java | ExceptionClassFilter.getIncludeList | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Include> getIncludeList() {
if (includeList == null) {
includeList = new ArrayList<ExceptionClassFilter.Include>(... | java | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Include> getIncludeList() {
if (includeList == null) {
includeList = new ArrayList<ExceptionClassFilter.Include>(... | [
"@",
"Generated",
"(",
"value",
"=",
"\"com.ibm.jtc.jax.tools.xjc.Driver\"",
",",
"date",
"=",
"\"2014-06-11T05:49:00-04:00\"",
",",
"comments",
"=",
"\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"",
")",
"public",
"List",
"<",
"ExceptionClassFilter",
".",
"Include",
">",... | Gets the value of the includeList property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the includeList property.
<p>
For example, ... | [
"Gets",
"the",
"value",
"of",
"the",
"includeList",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/ExceptionClassFilter.java#L108-L114 |
110,650 | OpenLiberty/open-liberty | dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/ExceptionClassFilter.java | ExceptionClassFilter.getExcludeList | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Exclude> getExcludeList() {
if (excludeList == null) {
excludeList = new ArrayList<ExceptionClassFilter.Exclude>(... | java | @Generated(value = "com.ibm.jtc.jax.tools.xjc.Driver", date = "2014-06-11T05:49:00-04:00", comments = "JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-")
public List<ExceptionClassFilter.Exclude> getExcludeList() {
if (excludeList == null) {
excludeList = new ArrayList<ExceptionClassFilter.Exclude>(... | [
"@",
"Generated",
"(",
"value",
"=",
"\"com.ibm.jtc.jax.tools.xjc.Driver\"",
",",
"date",
"=",
"\"2014-06-11T05:49:00-04:00\"",
",",
"comments",
"=",
"\"JAXB RI v2.2.3-11/28/2011 06:21 AM(foreman)-\"",
")",
"public",
"List",
"<",
"ExceptionClassFilter",
".",
"Exclude",
">",... | Gets the value of the excludeList property.
<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the excludeList property.
<p>
For example, ... | [
"Gets",
"the",
"value",
"of",
"the",
"excludeList",
"property",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.jsl.model/src/com/ibm/jbatch/jsl/model/ExceptionClassFilter.java#L138-L144 |
110,651 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java | Vertex.addDependency | public void addDependency(Vertex<T> v)
{
if (!m_dependencies.contains(v))
{
m_dependencies.add(v);
}
} | java | public void addDependency(Vertex<T> v)
{
if (!m_dependencies.contains(v))
{
m_dependencies.add(v);
}
} | [
"public",
"void",
"addDependency",
"(",
"Vertex",
"<",
"T",
">",
"v",
")",
"{",
"if",
"(",
"!",
"m_dependencies",
".",
"contains",
"(",
"v",
")",
")",
"{",
"m_dependencies",
".",
"add",
"(",
"v",
")",
";",
"}",
"}"
] | Add a dependecy to this Vertex. The Vertex that this one depends on will
be marked as referenced and then added to the list of dependencies. The
list is checked before the dependency is added.
@param v The vertex we depend on. | [
"Add",
"a",
"dependecy",
"to",
"this",
"Vertex",
".",
"The",
"Vertex",
"that",
"this",
"one",
"depends",
"on",
"will",
"be",
"marked",
"as",
"referenced",
"and",
"then",
"added",
"to",
"the",
"list",
"of",
"dependencies",
".",
"The",
"list",
"is",
"check... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java#L107-L113 |
110,652 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java | Vertex.resolveOrder | private int resolveOrder(String path) throws CyclicDependencyException
{
m_seen = true;
try
{
int highOrder = -1;
for (Vertex<T> dv : m_dependencies)
{
if (dv.m_seen)
{
throw new CyclicDependencyException... | java | private int resolveOrder(String path) throws CyclicDependencyException
{
m_seen = true;
try
{
int highOrder = -1;
for (Vertex<T> dv : m_dependencies)
{
if (dv.m_seen)
{
throw new CyclicDependencyException... | [
"private",
"int",
"resolveOrder",
"(",
"String",
"path",
")",
"throws",
"CyclicDependencyException",
"{",
"m_seen",
"=",
"true",
";",
"try",
"{",
"int",
"highOrder",
"=",
"-",
"1",
";",
"for",
"(",
"Vertex",
"<",
"T",
">",
"dv",
":",
"m_dependencies",
")... | Recursively searches for cycles by travelling down the dependency lists
of this vertex, looking for the start vertex.
@param path The path to the Vertex. It is worth the load as it makes a
descriptive error message possible.
@return The highest order of any of the dependent vertices.
@throws CyclicDependencyExcepti... | [
"Recursively",
"searches",
"for",
"cycles",
"by",
"travelling",
"down",
"the",
"dependency",
"lists",
"of",
"this",
"vertex",
"looking",
"for",
"the",
"start",
"vertex",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java#L137-L165 |
110,653 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java | Vertex.compareTo | public int compareTo(final Vertex<T> o)
{
int orderInd;
if (m_order < o.m_order)
{
orderInd = -1;
}
else if (m_order > o.m_order)
{
orderInd = 1;
}
else
{
orderInd = 0;
}
return orderInd;
... | java | public int compareTo(final Vertex<T> o)
{
int orderInd;
if (m_order < o.m_order)
{
orderInd = -1;
}
else if (m_order > o.m_order)
{
orderInd = 1;
}
else
{
orderInd = 0;
}
return orderInd;
... | [
"public",
"int",
"compareTo",
"(",
"final",
"Vertex",
"<",
"T",
">",
"o",
")",
"{",
"int",
"orderInd",
";",
"if",
"(",
"m_order",
"<",
"o",
".",
"m_order",
")",
"{",
"orderInd",
"=",
"-",
"1",
";",
"}",
"else",
"if",
"(",
"m_order",
">",
"o",
"... | Used in the sort algorithm to sort all the Vertices so that they respect
the ordinal they were given during the topological sort.
@param o The other Vertex to compare with
@return -1 if this < o, 0 if this == o, or 1 if this > o | [
"Used",
"in",
"the",
"sort",
"algorithm",
"to",
"sort",
"all",
"the",
"Vertices",
"so",
"that",
"they",
"respect",
"the",
"ordinal",
"they",
"were",
"given",
"during",
"the",
"topological",
"sort",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/config/util/Vertex.java#L184-L202 |
110,654 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ws/ejb/portable/LoggerHelper.java | LoggerHelper.getLogger | public static Logger getLogger(String className, String groupName)
{
Logger logger = Logger.getLogger(className);
if (!svCheckedForWAS)
{
try
{
Class loggerHelperClass = Class.forName("com.ibm.ws.logging.LoggerHelper");
svAddLoggerToGr... | java | public static Logger getLogger(String className, String groupName)
{
Logger logger = Logger.getLogger(className);
if (!svCheckedForWAS)
{
try
{
Class loggerHelperClass = Class.forName("com.ibm.ws.logging.LoggerHelper");
svAddLoggerToGr... | [
"public",
"static",
"Logger",
"getLogger",
"(",
"String",
"className",
",",
"String",
"groupName",
")",
"{",
"Logger",
"logger",
"=",
"Logger",
".",
"getLogger",
"(",
"className",
")",
";",
"if",
"(",
"!",
"svCheckedForWAS",
")",
"{",
"try",
"{",
"Class",
... | Gets a new logger and registers it with the specified Tr logging group.
@param className the requesting class name
@param groupName the Tr logging group name
@return the logger | [
"Gets",
"a",
"new",
"logger",
"and",
"registers",
"it",
"with",
"the",
"specified",
"Tr",
"logging",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.remote.portable.core/src/com/ibm/ws/ejb/portable/LoggerHelper.java#L46-L80 |
110,655 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/sources/DefaultSources.java | DefaultSources.getDiscoveredSources | public static ArrayList<ConfigSource> getDiscoveredSources(ClassLoader classloader) {
ArrayList<ConfigSource> sources = new ArrayList<>();
//load config sources using the service loader
try {
ServiceLoader<ConfigSource> sl = ServiceLoader.load(ConfigSource.class, classloader);
... | java | public static ArrayList<ConfigSource> getDiscoveredSources(ClassLoader classloader) {
ArrayList<ConfigSource> sources = new ArrayList<>();
//load config sources using the service loader
try {
ServiceLoader<ConfigSource> sl = ServiceLoader.load(ConfigSource.class, classloader);
... | [
"public",
"static",
"ArrayList",
"<",
"ConfigSource",
">",
"getDiscoveredSources",
"(",
"ClassLoader",
"classloader",
")",
"{",
"ArrayList",
"<",
"ConfigSource",
">",
"sources",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"//load config sources using the service loa... | Get ConfigSources found using the ServiceLoader pattern - both directly
as found ConfigSources and those found via found ConfigSourceProviders'
getConfigSources method.
@param classloader
@return | [
"Get",
"ConfigSources",
"found",
"using",
"the",
"ServiceLoader",
"pattern",
"-",
"both",
"directly",
"as",
"found",
"ConfigSources",
"and",
"those",
"found",
"via",
"found",
"ConfigSourceProviders",
"getConfigSources",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/sources/DefaultSources.java#L86-L112 |
110,656 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.getBeanType | private static byte getBeanType(BeanMetaData bmd, boolean isHome) // d621921
{
// 621921 - Always use BeanMetaData to decide which bean type id to use.
if (isHome) // d621921
{
// Note: EJBFactory (EJBLink) does not support module versioning.
if (bmd != null && bmd._... | java | private static byte getBeanType(BeanMetaData bmd, boolean isHome) // d621921
{
// 621921 - Always use BeanMetaData to decide which bean type id to use.
if (isHome) // d621921
{
// Note: EJBFactory (EJBLink) does not support module versioning.
if (bmd != null && bmd._... | [
"private",
"static",
"byte",
"getBeanType",
"(",
"BeanMetaData",
"bmd",
",",
"boolean",
"isHome",
")",
"// d621921",
"{",
"// 621921 - Always use BeanMetaData to decide which bean type id to use.",
"if",
"(",
"isHome",
")",
"// d621921",
"{",
"// Note: EJBFactory (EJBLink) do... | Returns the bean type id for serialization.
@param bmd the non-null bean metadata
@param isHome true if for the home instance
@return the type id | [
"Returns",
"the",
"bean",
"type",
"id",
"for",
"serialization",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L730-L754 |
110,657 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.getJ2EENameBytes | protected static byte[] getJ2EENameBytes(byte[] bytes)
throws CSIException
{
// ****Important Note******: Much of this code was copied to com.ibm.ejs.oa.EJBOAKeyImpl.java
// in ecutils and modified slightly. Changes to this code may also
// ... | java | protected static byte[] getJ2EENameBytes(byte[] bytes)
throws CSIException
{
// ****Important Note******: Much of this code was copied to com.ibm.ejs.oa.EJBOAKeyImpl.java
// in ecutils and modified slightly. Changes to this code may also
// ... | [
"protected",
"static",
"byte",
"[",
"]",
"getJ2EENameBytes",
"(",
"byte",
"[",
"]",
"bytes",
")",
"throws",
"CSIException",
"{",
"// ****Important Note******: Much of this code was copied to com.ibm.ejs.oa.EJBOAKeyImpl.java",
"// in ecutils and modified sl... | d145400.1 | [
"d145400",
".",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L1076-L1146 |
110,658 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.getPrimaryKey | protected static Serializable getPrimaryKey(byte[] bytes)
throws CSIException
{
int pkeyIndex;
boolean isStateful = false;
Serializable pkey = null;
byte[] j2eeNameBytes = null;
J2EEName j2eeName = null;
// Match up the header with the new format.... | java | protected static Serializable getPrimaryKey(byte[] bytes)
throws CSIException
{
int pkeyIndex;
boolean isStateful = false;
Serializable pkey = null;
byte[] j2eeNameBytes = null;
J2EEName j2eeName = null;
// Match up the header with the new format.... | [
"protected",
"static",
"Serializable",
"getPrimaryKey",
"(",
"byte",
"[",
"]",
"bytes",
")",
"throws",
"CSIException",
"{",
"int",
"pkeyIndex",
";",
"boolean",
"isStateful",
"=",
"false",
";",
"Serializable",
"pkey",
"=",
"null",
";",
"byte",
"[",
"]",
"j2ee... | LI2281-3 | [
"LI2281",
"-",
"3"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L1160-L1235 |
110,659 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.useLSD | public final boolean useLSD() //LIDB859-4
{
if (_isHome)
{
return true;
}
else
{
BeanMetaData bmd = home.getBeanMetaData(j2eeName);
if (bmd.type == InternalConstants.TYPE_CONTAINER_MANAGED_ENTITY || // 126512
bmd.type == Int... | java | public final boolean useLSD() //LIDB859-4
{
if (_isHome)
{
return true;
}
else
{
BeanMetaData bmd = home.getBeanMetaData(j2eeName);
if (bmd.type == InternalConstants.TYPE_CONTAINER_MANAGED_ENTITY || // 126512
bmd.type == Int... | [
"public",
"final",
"boolean",
"useLSD",
"(",
")",
"//LIDB859-4",
"{",
"if",
"(",
"_isHome",
")",
"{",
"return",
"true",
";",
"}",
"else",
"{",
"BeanMetaData",
"bmd",
"=",
"home",
".",
"getBeanMetaData",
"(",
"j2eeName",
")",
";",
"if",
"(",
"bmd",
".",... | d121510 - added entire method. | [
"d121510",
"-",
"added",
"entire",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L1281-L1303 |
110,660 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.getByteArrayStream | private final ByteArrayOutputStream getByteArrayStream()
{
ByteArrayOutputStream rtnBaos = null;
// Get a ByteArrayOutputStream from the pool. Note that this must be
// synchronized as multiple threads may be accessing this pool, and the
// pool may return null if empty. ... | java | private final ByteArrayOutputStream getByteArrayStream()
{
ByteArrayOutputStream rtnBaos = null;
// Get a ByteArrayOutputStream from the pool. Note that this must be
// synchronized as multiple threads may be accessing this pool, and the
// pool may return null if empty. ... | [
"private",
"final",
"ByteArrayOutputStream",
"getByteArrayStream",
"(",
")",
"{",
"ByteArrayOutputStream",
"rtnBaos",
"=",
"null",
";",
"// Get a ByteArrayOutputStream from the pool. Note that this must be",
"// synchronized as multiple threads may be accessing this pool, and the",
"// ... | Return the next available ByteArrayOutputStream object from the pool. | [
"Return",
"the",
"next",
"available",
"ByteArrayOutputStream",
"object",
"from",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L1309-L1339 |
110,661 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java | BeanId.freeByteArrayStream | private final void freeByteArrayStream(ByteArrayOutputStream baos)
{
// If the pool is not full, then add to the pool. Note that this must
// be synchronized, as multiple threads may access the pool. d175235
synchronized (svBAOSs)
{
if (svBAOSsSize < svBAOSs.length)... | java | private final void freeByteArrayStream(ByteArrayOutputStream baos)
{
// If the pool is not full, then add to the pool. Note that this must
// be synchronized, as multiple threads may access the pool. d175235
synchronized (svBAOSs)
{
if (svBAOSsSize < svBAOSs.length)... | [
"private",
"final",
"void",
"freeByteArrayStream",
"(",
"ByteArrayOutputStream",
"baos",
")",
"{",
"// If the pool is not full, then add to the pool. Note that this must",
"// be synchronized, as multiple threads may access the pool. d175235",
"synchronized",
"(",
"svBAOSs",
")",
... | Return the input ByteArrayOutputStream back to the pool. | [
"Return",
"the",
"input",
"ByteArrayOutputStream",
"back",
"to",
"the",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/BeanId.java#L1344-L1356 |
110,662 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.isCertPathBuilderException | public static boolean isCertPathBuilderException(Throwable cause) {
if (cause == null)
return false;
if (cause instanceof java.security.cert.CertPathBuilderException)
return true;
return isCertPathBuilderException(cause.getCause());
} | java | public static boolean isCertPathBuilderException(Throwable cause) {
if (cause == null)
return false;
if (cause instanceof java.security.cert.CertPathBuilderException)
return true;
return isCertPathBuilderException(cause.getCause());
} | [
"public",
"static",
"boolean",
"isCertPathBuilderException",
"(",
"Throwable",
"cause",
")",
"{",
"if",
"(",
"cause",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"cause",
"instanceof",
"java",
".",
"security",
".",
"cert",
".",
"CertPathBuilderExcept... | Checks if cause is an instance of CertPathBuilderException
@param cause The throwable cause of the exception
@return True if cause is an instance of CertPathBuilderException | [
"Checks",
"if",
"cause",
"is",
"an",
"instance",
"of",
"CertPathBuilderException"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L61-L67 |
110,663 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.createByKey | static InstallException createByKey(int rc, String msgKey, Object... args) {
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage(msgKey, args), rc);
} | java | static InstallException createByKey(int rc, String msgKey, Object... args) {
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage(msgKey, args), rc);
} | [
"static",
"InstallException",
"createByKey",
"(",
"int",
"rc",
",",
"String",
"msgKey",
",",
"Object",
"...",
"args",
")",
"{",
"return",
"create",
"(",
"Messages",
".",
"INSTALL_KERNEL_MESSAGES",
".",
"getLogMessage",
"(",
"msgKey",
",",
"args",
")",
",",
"... | Create an install exception from a return code and message key
@param rc
@param msgKey
@param args
@return | [
"Create",
"an",
"install",
"exception",
"from",
"a",
"return",
"code",
"and",
"message",
"key"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L110-L112 |
110,664 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.create | static InstallException create(String msg, Exception e) {
return create(msg, e, InstallException.RUNTIME_EXCEPTION);
} | java | static InstallException create(String msg, Exception e) {
return create(msg, e, InstallException.RUNTIME_EXCEPTION);
} | [
"static",
"InstallException",
"create",
"(",
"String",
"msg",
",",
"Exception",
"e",
")",
"{",
"return",
"create",
"(",
"msg",
",",
"e",
",",
"InstallException",
".",
"RUNTIME_EXCEPTION",
")",
";",
"}"
] | Create an install exception from an existing exception and a message
@param msg
@param e
@return | [
"Create",
"an",
"install",
"exception",
"from",
"an",
"existing",
"exception",
"and",
"a",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L132-L134 |
110,665 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.createFailedToDownload | public static InstallException createFailedToDownload(RepositoryResource installResource, Exception e, File toDir) {
String target = toDir == null ? System.getProperty("java.io.tmpdir") : toDir.getAbsolutePath();
if (e instanceof IOException)
return ExceptionUtils.createByKey(InstallExceptio... | java | public static InstallException createFailedToDownload(RepositoryResource installResource, Exception e, File toDir) {
String target = toDir == null ? System.getProperty("java.io.tmpdir") : toDir.getAbsolutePath();
if (e instanceof IOException)
return ExceptionUtils.createByKey(InstallExceptio... | [
"public",
"static",
"InstallException",
"createFailedToDownload",
"(",
"RepositoryResource",
"installResource",
",",
"Exception",
"e",
",",
"File",
"toDir",
")",
"{",
"String",
"target",
"=",
"toDir",
"==",
"null",
"?",
"System",
".",
"getProperty",
"(",
"\"java.i... | Create an install exception as a result of a fail to download exception
@param installResource
@param e
@param toDir
@return | [
"Create",
"an",
"install",
"exception",
"as",
"a",
"result",
"of",
"a",
"fail",
"to",
"download",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L157-L183 |
110,666 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.create | static InstallException create(Exception e) {
if (e instanceof ProductInfoParseException) {
ProductInfoParseException pipe = (ProductInfoParseException) e;
String missingKey = pipe.getMissingKey();
if (missingKey != null) {
return create(Messages.UTILITY_MESSA... | java | static InstallException create(Exception e) {
if (e instanceof ProductInfoParseException) {
ProductInfoParseException pipe = (ProductInfoParseException) e;
String missingKey = pipe.getMissingKey();
if (missingKey != null) {
return create(Messages.UTILITY_MESSA... | [
"static",
"InstallException",
"create",
"(",
"Exception",
"e",
")",
"{",
"if",
"(",
"e",
"instanceof",
"ProductInfoParseException",
")",
"{",
"ProductInfoParseException",
"pipe",
"=",
"(",
"ProductInfoParseException",
")",
"e",
";",
"String",
"missingKey",
"=",
"p... | Create an install exception from an existing exception
@param e
@return | [
"Create",
"an",
"install",
"exception",
"from",
"an",
"existing",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L191-L221 |
110,667 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.create | static InstallException create(RepositoryException e, Throwable cause, RestRepositoryConnectionProxy proxy, boolean defaultRepo) {
if (proxy != null && cause instanceof UnknownHostException)
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("ERROR_TOOL_UNKNOWN_PROXY_HOST", proxy.getProxy... | java | static InstallException create(RepositoryException e, Throwable cause, RestRepositoryConnectionProxy proxy, boolean defaultRepo) {
if (proxy != null && cause instanceof UnknownHostException)
return create(Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("ERROR_TOOL_UNKNOWN_PROXY_HOST", proxy.getProxy... | [
"static",
"InstallException",
"create",
"(",
"RepositoryException",
"e",
",",
"Throwable",
"cause",
",",
"RestRepositoryConnectionProxy",
"proxy",
",",
"boolean",
"defaultRepo",
")",
"{",
"if",
"(",
"proxy",
"!=",
"null",
"&&",
"cause",
"instanceof",
"UnknownHostExc... | Create an install exception from a repository exception
@param e
@param cause
@param proxy
@param defaultRepo
@return | [
"Create",
"an",
"install",
"exception",
"from",
"a",
"repository",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L232-L245 |
110,668 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.create | static InstallException create(RepositoryException e, Collection<String> featureNames, boolean installingAsset, RestRepositoryConnectionProxy proxy,
boolean defaultRepo, boolean isOpenLiberty) {
Throwable cause = e;
Throwable rootCause = e;
// Check the list o... | java | static InstallException create(RepositoryException e, Collection<String> featureNames, boolean installingAsset, RestRepositoryConnectionProxy proxy,
boolean defaultRepo, boolean isOpenLiberty) {
Throwable cause = e;
Throwable rootCause = e;
// Check the list o... | [
"static",
"InstallException",
"create",
"(",
"RepositoryException",
"e",
",",
"Collection",
"<",
"String",
">",
"featureNames",
",",
"boolean",
"installingAsset",
",",
"RestRepositoryConnectionProxy",
"proxy",
",",
"boolean",
"defaultRepo",
",",
"boolean",
"isOpenLibert... | Create an install exception from a repository exception and feature names
@param e
@param featureNames
@param installingAsset
@param proxy
@param defaultRepo
@return | [
"Create",
"an",
"install",
"exception",
"from",
"a",
"repository",
"exception",
"and",
"feature",
"names"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L257-L291 |
110,669 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.isNewerVersion | static boolean isNewerVersion(String version, String newestVersion, boolean isEarlyAccess) {
if (version == null)
return false;
String[] versionAry = version.split("\\.");
if (!!!isEarlyAccess && versionAry[0].length() == 4)
return false;
if (isEarlyAccess && v... | java | static boolean isNewerVersion(String version, String newestVersion, boolean isEarlyAccess) {
if (version == null)
return false;
String[] versionAry = version.split("\\.");
if (!!!isEarlyAccess && versionAry[0].length() == 4)
return false;
if (isEarlyAccess && v... | [
"static",
"boolean",
"isNewerVersion",
"(",
"String",
"version",
",",
"String",
"newestVersion",
",",
"boolean",
"isEarlyAccess",
")",
"{",
"if",
"(",
"version",
"==",
"null",
")",
"return",
"false",
";",
"String",
"[",
"]",
"versionAry",
"=",
"version",
"."... | Checks if the inputed version is newer than the newest version
@param version
@param newestVersion
@param isEarlyAccess
@return | [
"Checks",
"if",
"the",
"inputed",
"version",
"is",
"newer",
"than",
"the",
"newest",
"version"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L438-L462 |
110,670 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.validateProductMatches | @SuppressWarnings("rawtypes")
static String validateProductMatches(String feature, List productMatchers, File installDir, boolean installingAsset) {
return validateProductMatches(feature, null, productMatchers, installDir, installingAsset);
} | java | @SuppressWarnings("rawtypes")
static String validateProductMatches(String feature, List productMatchers, File installDir, boolean installingAsset) {
return validateProductMatches(feature, null, productMatchers, installDir, installingAsset);
} | [
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"static",
"String",
"validateProductMatches",
"(",
"String",
"feature",
",",
"List",
"productMatchers",
",",
"File",
"installDir",
",",
"boolean",
"installingAsset",
")",
"{",
"return",
"validateProductMatches",
"(",
... | Calls validate product matches with null dependency
@param feature
@param productMatchers
@param installDir
@param installingAsset
@return | [
"Calls",
"validate",
"product",
"matches",
"with",
"null",
"dependency"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L473-L476 |
110,671 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.create | private static InstallException create(String msg, Exception e, int rc) {
InstallException ie = new InstallException(msg, e, rc);
return ie;
} | java | private static InstallException create(String msg, Exception e, int rc) {
InstallException ie = new InstallException(msg, e, rc);
return ie;
} | [
"private",
"static",
"InstallException",
"create",
"(",
"String",
"msg",
",",
"Exception",
"e",
",",
"int",
"rc",
")",
"{",
"InstallException",
"ie",
"=",
"new",
"InstallException",
"(",
"msg",
",",
"e",
",",
"rc",
")",
";",
"return",
"ie",
";",
"}"
] | Creates an install exception from a message, an existing exception, and a return code
@param msg
@param e
@param rc
@return | [
"Creates",
"an",
"install",
"exception",
"from",
"a",
"message",
"an",
"existing",
"exception",
"and",
"a",
"return",
"code"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L587-L590 |
110,672 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java | ExceptionUtils.stacktraceToString | static String stacktraceToString(Exception e) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String stackTrace = sw.toString();
return stackTrace;
} | java | static String stacktraceToString(Exception e) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
String stackTrace = sw.toString();
return stackTrace;
} | [
"static",
"String",
"stacktraceToString",
"(",
"Exception",
"e",
")",
"{",
"StringWriter",
"sw",
"=",
"new",
"StringWriter",
"(",
")",
";",
"e",
".",
"printStackTrace",
"(",
"new",
"PrintWriter",
"(",
"sw",
")",
")",
";",
"String",
"stackTrace",
"=",
"sw",... | Extracts StackTrace from exception and translates it to a string
@param e
@return stackTrace | [
"Extracts",
"StackTrace",
"from",
"exception",
"and",
"translates",
"it",
"to",
"a",
"string"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/ExceptionUtils.java#L598-L603 |
110,673 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java | CookieCacheData.getCookie | public HttpCookie getCookie(String name) {
if (null == name || 0 == this.parsedList.size()) {
return null;
}
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
return cookie;
}
}
return null;
} | java | public HttpCookie getCookie(String name) {
if (null == name || 0 == this.parsedList.size()) {
return null;
}
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
return cookie;
}
}
return null;
} | [
"public",
"HttpCookie",
"getCookie",
"(",
"String",
"name",
")",
"{",
"if",
"(",
"null",
"==",
"name",
"||",
"0",
"==",
"this",
".",
"parsedList",
".",
"size",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"for",
"(",
"HttpCookie",
"cookie",
":",
... | Search the cache for an existing Cookie that matches the input name.
@param name
@return HttpCookie -- null if this cookie is not in the cache | [
"Search",
"the",
"cache",
"for",
"an",
"existing",
"Cookie",
"that",
"matches",
"the",
"input",
"name",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java#L106-L116 |
110,674 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java | CookieCacheData.getAllCookies | public int getAllCookies(String name, List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
list.add(cookie.clone());
a... | java | public int getAllCookies(String name, List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (cookie.getName().equals(name)) {
list.add(cookie.clone());
a... | [
"public",
"int",
"getAllCookies",
"(",
"String",
"name",
",",
"List",
"<",
"HttpCookie",
">",
"list",
")",
"{",
"int",
"added",
"=",
"0",
";",
"if",
"(",
"0",
"<",
"this",
".",
"parsedList",
".",
"size",
"(",
")",
"&&",
"null",
"!=",
"name",
")",
... | Find all instances of cookies in the cache with the given name and add
clones of those objects to the input list.
@param name
@param list
@return int - number of cookies added to the list | [
"Find",
"all",
"instances",
"of",
"cookies",
"in",
"the",
"cache",
"with",
"the",
"given",
"name",
"and",
"add",
"clones",
"of",
"those",
"objects",
"to",
"the",
"input",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java#L126-L137 |
110,675 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java | CookieCacheData.getAllCookies | public int getAllCookies(List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size()) {
for (HttpCookie cookie : this.parsedList) {
list.add(cookie.clone());
added++;
}
}
return added;
} | java | public int getAllCookies(List<HttpCookie> list) {
int added = 0;
if (0 < this.parsedList.size()) {
for (HttpCookie cookie : this.parsedList) {
list.add(cookie.clone());
added++;
}
}
return added;
} | [
"public",
"int",
"getAllCookies",
"(",
"List",
"<",
"HttpCookie",
">",
"list",
")",
"{",
"int",
"added",
"=",
"0",
";",
"if",
"(",
"0",
"<",
"this",
".",
"parsedList",
".",
"size",
"(",
")",
")",
"{",
"for",
"(",
"HttpCookie",
"cookie",
":",
"this"... | Clones all of the cookies in the cache onto the input list.
@param list
@return int - number of cookies added to the list | [
"Clones",
"all",
"of",
"the",
"cookies",
"in",
"the",
"cache",
"onto",
"the",
"input",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java#L145-L154 |
110,676 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java | CookieCacheData.getAllCookieValues | public int getAllCookieValues(String name, List<String> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (name.equals(cookie.getName())) {
list.add(cookie.getValue());
}... | java | public int getAllCookieValues(String name, List<String> list) {
int added = 0;
if (0 < this.parsedList.size() && null != name) {
for (HttpCookie cookie : this.parsedList) {
if (name.equals(cookie.getName())) {
list.add(cookie.getValue());
}... | [
"public",
"int",
"getAllCookieValues",
"(",
"String",
"name",
",",
"List",
"<",
"String",
">",
"list",
")",
"{",
"int",
"added",
"=",
"0",
";",
"if",
"(",
"0",
"<",
"this",
".",
"parsedList",
".",
"size",
"(",
")",
"&&",
"null",
"!=",
"name",
")",
... | Find all instances of the input cookie name in the cache and append their
values into the input list.
@param name
@param list
@return int - number of items added | [
"Find",
"all",
"instances",
"of",
"the",
"input",
"cookie",
"name",
"in",
"the",
"cache",
"and",
"append",
"their",
"values",
"into",
"the",
"input",
"list",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java#L164-L174 |
110,677 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java | CookieCacheData.duplicate | public CookieCacheData duplicate() {
// Create second instance and copy members
CookieCacheData cData = new CookieCacheData();
cData.parsedList = copyList(this.parsedList);
cData.isDirty = this.isDirty;
cData.hdrIndex = this.hdrIndex;
cData.headerType = this.headerType;
... | java | public CookieCacheData duplicate() {
// Create second instance and copy members
CookieCacheData cData = new CookieCacheData();
cData.parsedList = copyList(this.parsedList);
cData.isDirty = this.isDirty;
cData.hdrIndex = this.hdrIndex;
cData.headerType = this.headerType;
... | [
"public",
"CookieCacheData",
"duplicate",
"(",
")",
"{",
"// Create second instance and copy members",
"CookieCacheData",
"cData",
"=",
"new",
"CookieCacheData",
"(",
")",
";",
"cData",
".",
"parsedList",
"=",
"copyList",
"(",
"this",
".",
"parsedList",
")",
";",
... | Create a 'cloned', independent, representation of this object.
@return a duplicate of this object where the members are independent of
originator's members (i.e. separate references, duplicated
primatives, etc.). | [
"Create",
"a",
"cloned",
"independent",
"representation",
"of",
"this",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/cookies/CookieCacheData.java#L241-L249 |
110,678 | OpenLiberty/open-liberty | dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingFileUtils.java | LoggingFileUtils.showErrorMsg | private static void showErrorMsg(boolean showError, String msgKey, Object[] objs) {
if (showError) {
String msg = Tr.formatMessage(TraceSpecification.getTc(), msgKey, objs);
BaseTraceService.rawSystemErr.println(msg);
}
} | java | private static void showErrorMsg(boolean showError, String msgKey, Object[] objs) {
if (showError) {
String msg = Tr.formatMessage(TraceSpecification.getTc(), msgKey, objs);
BaseTraceService.rawSystemErr.println(msg);
}
} | [
"private",
"static",
"void",
"showErrorMsg",
"(",
"boolean",
"showError",
",",
"String",
"msgKey",
",",
"Object",
"[",
"]",
"objs",
")",
"{",
"if",
"(",
"showError",
")",
"{",
"String",
"msg",
"=",
"Tr",
".",
"formatMessage",
"(",
"TraceSpecification",
"."... | Show the error message if showError is true
@param showError
@param msgKey
@param objs | [
"Show",
"the",
"error",
"message",
"if",
"showError",
"is",
"true"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/LoggingFileUtils.java#L127-L132 |
110,679 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.getClassFiles | protected List<File> getClassFiles(File root, File parent) {
if (root == null || !root.isDirectory()) {
return null;
}
List<File> fileList = new ArrayList<File>();
File[] files = root.listFiles();
for (int i = 0; files != null && i < files.length; i++) {
... | java | protected List<File> getClassFiles(File root, File parent) {
if (root == null || !root.isDirectory()) {
return null;
}
List<File> fileList = new ArrayList<File>();
File[] files = root.listFiles();
for (int i = 0; files != null && i < files.length; i++) {
... | [
"protected",
"List",
"<",
"File",
">",
"getClassFiles",
"(",
"File",
"root",
",",
"File",
"parent",
")",
"{",
"if",
"(",
"root",
"==",
"null",
"||",
"!",
"root",
".",
"isDirectory",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"List",
"<",
"File... | Recursively search the specified directory for class files.
@param root the directory to search.
@param parent the parent directory in the recursion or null if
processing the top level directory.
@return the list of files found that are likely to be class files. | [
"Recursively",
"search",
"the",
"specified",
"directory",
"for",
"class",
"files",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L122-L143 |
110,680 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.addPackageInfo | protected void addPackageInfo(PackageInfo packageInfo) {
if (packageInfo != null) {
packageInfoMap.put(packageInfo.getInternalPackageName(), packageInfo);
}
} | java | protected void addPackageInfo(PackageInfo packageInfo) {
if (packageInfo != null) {
packageInfoMap.put(packageInfo.getInternalPackageName(), packageInfo);
}
} | [
"protected",
"void",
"addPackageInfo",
"(",
"PackageInfo",
"packageInfo",
")",
"{",
"if",
"(",
"packageInfo",
"!=",
"null",
")",
"{",
"packageInfoMap",
".",
"put",
"(",
"packageInfo",
".",
"getInternalPackageName",
"(",
")",
",",
"packageInfo",
")",
";",
"}",
... | Add package configuration information. | [
"Add",
"package",
"configuration",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L189-L193 |
110,681 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.executeInstrumentation | public void executeInstrumentation() throws IOException {
errors.clear();
// Iterate over all entries in the classes list
for (File f : this.classFiles) {
try {
if (!f.canRead() || !f.canWrite()) {
throw new IOException(f + " can not be replaced")... | java | public void executeInstrumentation() throws IOException {
errors.clear();
// Iterate over all entries in the classes list
for (File f : this.classFiles) {
try {
if (!f.canRead() || !f.canWrite()) {
throw new IOException(f + " can not be replaced")... | [
"public",
"void",
"executeInstrumentation",
"(",
")",
"throws",
"IOException",
"{",
"errors",
".",
"clear",
"(",
")",
";",
"// Iterate over all entries in the classes list",
"for",
"(",
"File",
"f",
":",
"this",
".",
"classFiles",
")",
"{",
"try",
"{",
"if",
"... | Instrument the classes and jar files. | [
"Instrument",
"the",
"classes",
"and",
"jar",
"files",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L213-L246 |
110,682 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.getClassInputStream | protected InputStream getClassInputStream(String classInternalName) {
if (classInternalName == null || "".equals(classInternalName)) {
return null;
}
InputStream inputStream = null;
try {
for (File jarFile : jarFiles) {
ZipFile zipFile = new ZipFi... | java | protected InputStream getClassInputStream(String classInternalName) {
if (classInternalName == null || "".equals(classInternalName)) {
return null;
}
InputStream inputStream = null;
try {
for (File jarFile : jarFiles) {
ZipFile zipFile = new ZipFi... | [
"protected",
"InputStream",
"getClassInputStream",
"(",
"String",
"classInternalName",
")",
"{",
"if",
"(",
"classInternalName",
"==",
"null",
"||",
"\"\"",
".",
"equals",
"(",
"classInternalName",
")",
")",
"{",
"return",
"null",
";",
"}",
"InputStream",
"input... | Get an InputStream containing the byte code for the specified class.
@param classInternalName the internal name of the class to find
@return the input stream containing the class or null if the class is
not part of the file set | [
"Get",
"an",
"InputStream",
"containing",
"the",
"byte",
"code",
"for",
"the",
"specified",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L256-L300 |
110,683 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.instrumentClassFile | public void instrumentClassFile(File classfile) throws IOException {
FileInputStream fis = new FileInputStream(classfile);
byte[] bytes = transform(fis);
fis.close();
fis = null;
// If the class was successfully transformed, rewrite it
if (bytes != null) {
Fi... | java | public void instrumentClassFile(File classfile) throws IOException {
FileInputStream fis = new FileInputStream(classfile);
byte[] bytes = transform(fis);
fis.close();
fis = null;
// If the class was successfully transformed, rewrite it
if (bytes != null) {
Fi... | [
"public",
"void",
"instrumentClassFile",
"(",
"File",
"classfile",
")",
"throws",
"IOException",
"{",
"FileInputStream",
"fis",
"=",
"new",
"FileInputStream",
"(",
"classfile",
")",
";",
"byte",
"[",
"]",
"bytes",
"=",
"transform",
"(",
"fis",
")",
";",
"fis... | Instrument the specified class file. | [
"Instrument",
"the",
"specified",
"class",
"file",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L326-L338 |
110,684 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.processPackageInfo | public void processPackageInfo() throws IOException {
for (File classFile : classFiles) {
if (classFile.getName().equals("package-info.class")) {
FileInputStream fis = new FileInputStream(classFile);
addPackageInfo(processPackageInfo(fis));
fis.close()... | java | public void processPackageInfo() throws IOException {
for (File classFile : classFiles) {
if (classFile.getName().equals("package-info.class")) {
FileInputStream fis = new FileInputStream(classFile);
addPackageInfo(processPackageInfo(fis));
fis.close()... | [
"public",
"void",
"processPackageInfo",
"(",
")",
"throws",
"IOException",
"{",
"for",
"(",
"File",
"classFile",
":",
"classFiles",
")",
"{",
"if",
"(",
"classFile",
".",
"getName",
"(",
")",
".",
"equals",
"(",
"\"package-info.class\"",
")",
")",
"{",
"Fi... | Process the package level annotations that exist in the filesets.
@throws IOException | [
"Process",
"the",
"package",
"level",
"annotations",
"that",
"exist",
"in",
"the",
"filesets",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L432-L452 |
110,685 | OpenLiberty/open-liberty | dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java | AbstractInstrumentation.processPackageInfo | protected PackageInfo processPackageInfo(InputStream packageInfoResource) {
if (packageInfoResource == null)
return null;
PackageInfo packageInfo = null;
try {
ClassReader cr = new ClassReader(packageInfoResource);
TraceConfigPackageVisitor packageVisitor = n... | java | protected PackageInfo processPackageInfo(InputStream packageInfoResource) {
if (packageInfoResource == null)
return null;
PackageInfo packageInfo = null;
try {
ClassReader cr = new ClassReader(packageInfoResource);
TraceConfigPackageVisitor packageVisitor = n... | [
"protected",
"PackageInfo",
"processPackageInfo",
"(",
"InputStream",
"packageInfoResource",
")",
"{",
"if",
"(",
"packageInfoResource",
"==",
"null",
")",
"return",
"null",
";",
"PackageInfo",
"packageInfo",
"=",
"null",
";",
"try",
"{",
"ClassReader",
"cr",
"=",... | Process the package level annotation data for trace instrumentation.
@param packageInfoResource an <code>InputStream</code> that contains the
byte code for the package annotation interface. This is generally
the package-info byte code. | [
"Process",
"the",
"package",
"level",
"annotation",
"data",
"for",
"trace",
"instrumentation",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ras.instrument/src/com/ibm/ws/ras/instrument/internal/main/AbstractInstrumentation.java#L461-L476 |
110,686 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/JITUtils.java | JITUtils.unbox | static void unbox(GeneratorAdapter mg, Type type)
{
switch (type.getSort())
{
case Type.VOID:
return;
case Type.BOOLEAN:
mg.visitTypeInsn(CHECKCAST, "java/lang/Boolean");
mg.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean",
... | java | static void unbox(GeneratorAdapter mg, Type type)
{
switch (type.getSort())
{
case Type.VOID:
return;
case Type.BOOLEAN:
mg.visitTypeInsn(CHECKCAST, "java/lang/Boolean");
mg.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Boolean",
... | [
"static",
"void",
"unbox",
"(",
"GeneratorAdapter",
"mg",
",",
"Type",
"type",
")",
"{",
"switch",
"(",
"type",
".",
"getSort",
"(",
")",
")",
"{",
"case",
"Type",
".",
"VOID",
":",
"return",
";",
"case",
"Type",
".",
"BOOLEAN",
":",
"mg",
".",
"vi... | d369262.7 | [
"d369262",
".",
"7"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/JITUtils.java#L436-L486 |
110,687 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/JITUtils.java | JITUtils.getClassConstantFieldName | public static String getClassConstantFieldName(Class<?> klass) // d676434
{
String dollarName = klass.getName().replace('.', '$');
if (dollarName.startsWith("["))
{
if (dollarName.endsWith(";"))
{
// Remove trailing ";" from "[Ljava$lang$String;".
... | java | public static String getClassConstantFieldName(Class<?> klass) // d676434
{
String dollarName = klass.getName().replace('.', '$');
if (dollarName.startsWith("["))
{
if (dollarName.endsWith(";"))
{
// Remove trailing ";" from "[Ljava$lang$String;".
... | [
"public",
"static",
"String",
"getClassConstantFieldName",
"(",
"Class",
"<",
"?",
">",
"klass",
")",
"// d676434",
"{",
"String",
"dollarName",
"=",
"klass",
".",
"getName",
"(",
")",
".",
"replace",
"(",
"'",
"'",
",",
"'",
"'",
")",
";",
"if",
"(",
... | Returns the synthetic field name for a Class constant.
@param klass the class constant
@return the synthetic field name | [
"Returns",
"the",
"synthetic",
"field",
"name",
"for",
"a",
"Class",
"constant",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/ejbcontainer/jitdeploy/JITUtils.java#L494-L510 |
110,688 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/config/CircuitBreakerConfig.java | CircuitBreakerConfig.validate | @Override
public void validate() {
String target = getTargetName();
//validate the parameters
if (delay() < 0) {
throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "circuitBreaker.parameter.delay.invalid.value.CWMFT5012E", "delay", delay(), target));
}
... | java | @Override
public void validate() {
String target = getTargetName();
//validate the parameters
if (delay() < 0) {
throw new FaultToleranceDefinitionException(Tr.formatMessage(tc, "circuitBreaker.parameter.delay.invalid.value.CWMFT5012E", "delay", delay(), target));
}
... | [
"@",
"Override",
"public",
"void",
"validate",
"(",
")",
"{",
"String",
"target",
"=",
"getTargetName",
"(",
")",
";",
"//validate the parameters",
"if",
"(",
"delay",
"(",
")",
"<",
"0",
")",
"{",
"throw",
"new",
"FaultToleranceDefinitionException",
"(",
"T... | Validate the CircuitBreaker policy | [
"Validate",
"the",
"CircuitBreaker",
"policy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.faulttolerance.cdi/src/com/ibm/ws/microprofile/faulttolerance/cdi/config/CircuitBreakerConfig.java#L72-L96 |
110,689 | OpenLiberty/open-liberty | dev/com.ibm.ws.security/src/com/ibm/ws/security/collaborator/CollaboratorUtils.java | CollaboratorUtils.getCallerPrincipal | public Principal getCallerPrincipal(boolean useRealm, String realm, boolean web, boolean isJaspiEnabled) {
Subject subject = subjectManager.getCallerSubject();
if (subject == null) {
return null;
}
SubjectHelper subjectHelper = new SubjectHelper();
if (subjectHelper.... | java | public Principal getCallerPrincipal(boolean useRealm, String realm, boolean web, boolean isJaspiEnabled) {
Subject subject = subjectManager.getCallerSubject();
if (subject == null) {
return null;
}
SubjectHelper subjectHelper = new SubjectHelper();
if (subjectHelper.... | [
"public",
"Principal",
"getCallerPrincipal",
"(",
"boolean",
"useRealm",
",",
"String",
"realm",
",",
"boolean",
"web",
",",
"boolean",
"isJaspiEnabled",
")",
"{",
"Subject",
"subject",
"=",
"subjectManager",
".",
"getCallerSubject",
"(",
")",
";",
"if",
"(",
... | Returns a java.security.Principal object containing the name of the current authenticated user.
If the user has not been authenticated, the method returns null.
Look at the Subject on the thread only.
We will extract, security name from WSCredential and the set of Principals, our WSPrincipal type. If a property has bee... | [
"Returns",
"a",
"java",
".",
"security",
".",
"Principal",
"object",
"containing",
"the",
"name",
"of",
"the",
"current",
"authenticated",
"user",
".",
"If",
"the",
"user",
"has",
"not",
"been",
"authenticated",
"the",
"method",
"returns",
"null",
".",
"Look... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security/src/com/ibm/ws/security/collaborator/CollaboratorUtils.java#L61-L101 |
110,690 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsDestinationAddressFactoryImpl.java | JsDestinationAddressFactoryImpl.createSIDestinationAddress | public final SIDestinationAddress createSIDestinationAddress(String destinationName
,boolean localOnly
)
throws NullPointerException ... | java | public final SIDestinationAddress createSIDestinationAddress(String destinationName
,boolean localOnly
)
throws NullPointerException ... | [
"public",
"final",
"SIDestinationAddress",
"createSIDestinationAddress",
"(",
"String",
"destinationName",
",",
"boolean",
"localOnly",
")",
"throws",
"NullPointerException",
"{",
"if",
"(",
"destinationName",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerExceptio... | Create a new SIDestinationAddress to represent an SIBus Destination.
@param destinationName The name of the SIBus Destination
@param localOnly Indicates that the Destination should be limited
to only the queue or mediation point on the Messaging
Engine that the application is connected to, if one
exists. If no... | [
"Create",
"a",
"new",
"SIDestinationAddress",
"to",
"represent",
"an",
"SIBus",
"Destination",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsDestinationAddressFactoryImpl.java#L58-L66 |
110,691 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsDestinationAddressFactoryImpl.java | JsDestinationAddressFactoryImpl.createJsDestinationAddress | public final JsDestinationAddress createJsDestinationAddress(String destinationName
,boolean localOnly
,SIBUuid8 meId
)
... | java | public final JsDestinationAddress createJsDestinationAddress(String destinationName
,boolean localOnly
,SIBUuid8 meId
)
... | [
"public",
"final",
"JsDestinationAddress",
"createJsDestinationAddress",
"(",
"String",
"destinationName",
",",
"boolean",
"localOnly",
",",
"SIBUuid8",
"meId",
")",
"throws",
"NullPointerException",
"{",
"if",
"(",
"destinationName",
"==",
"null",
")",
"{",
"throw",
... | Create a JsDestinationAddress from the given parameters
@param destinationName The name of the SIBus Destination
@param localOnly Indicates that the Destination should be limited
to only the queue or mediation point on the Messaging
Engine that the application is connected to, if one
exists. If no such message... | [
"Create",
"a",
"JsDestinationAddress",
"from",
"the",
"given",
"parameters"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/impl/JsDestinationAddressFactoryImpl.java#L135-L144 |
110,692 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/SchemaMetaTypeParser.java | SchemaMetaTypeParser.getMetatypeInformation | public List<MetaTypeInformationSpecification> getMetatypeInformation() {
try {
for (Map.Entry<String, List<File>> prodEntry : prodJars.entrySet()) {
List<File> jars = prodEntry.getValue();
String productName = prodEntry.getKey();
for (File jar : jars)... | java | public List<MetaTypeInformationSpecification> getMetatypeInformation() {
try {
for (Map.Entry<String, List<File>> prodEntry : prodJars.entrySet()) {
List<File> jars = prodEntry.getValue();
String productName = prodEntry.getKey();
for (File jar : jars)... | [
"public",
"List",
"<",
"MetaTypeInformationSpecification",
">",
"getMetatypeInformation",
"(",
")",
"{",
"try",
"{",
"for",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"List",
"<",
"File",
">",
">",
"prodEntry",
":",
"prodJars",
".",
"entrySet",
"(",
")"... | Since we don't have have the luxury of OSGi framework getting the OCDs for us,
we need to look up all the metatype.xml files from each jar manually and
construct a metatypeinformation which will be passed to SchemaWriter
@param jars
@return StreamSource containing all the metatype XMLs | [
"Since",
"we",
"don",
"t",
"have",
"have",
"the",
"luxury",
"of",
"OSGi",
"framework",
"getting",
"the",
"OCDs",
"for",
"us",
"we",
"need",
"to",
"look",
"up",
"all",
"the",
"metatype",
".",
"xml",
"files",
"from",
"each",
"jar",
"manually",
"and",
"co... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/SchemaMetaTypeParser.java#L119-L164 |
110,693 | OpenLiberty/open-liberty | dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/SchemaMetaTypeParser.java | SchemaMetaTypeParser.generateMetatypePropertiesName | private URL generateMetatypePropertiesName(String metatypeName, String locale) {
String lookupName;
if (locale != null && locale.length() > 0) {
lookupName = metatypeName + LOCALE_SEPARATOR + locale + PROP_EXT;
} else {
lookupName = metatypeName + PROP_EXT;
}
... | java | private URL generateMetatypePropertiesName(String metatypeName, String locale) {
String lookupName;
if (locale != null && locale.length() > 0) {
lookupName = metatypeName + LOCALE_SEPARATOR + locale + PROP_EXT;
} else {
lookupName = metatypeName + PROP_EXT;
}
... | [
"private",
"URL",
"generateMetatypePropertiesName",
"(",
"String",
"metatypeName",
",",
"String",
"locale",
")",
"{",
"String",
"lookupName",
";",
"if",
"(",
"locale",
"!=",
"null",
"&&",
"locale",
".",
"length",
"(",
")",
">",
"0",
")",
"{",
"lookupName",
... | Tries to generate the correct metatype properties location according to locale
@param metatypeName
@return a String with the correct metatype properties location | [
"Tries",
"to",
"generate",
"the",
"correct",
"metatype",
"properties",
"location",
"according",
"to",
"locale"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/schema/SchemaMetaTypeParser.java#L250-L267 |
110,694 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupFactoryImpl.java | ProxyQueueConversationGroupFactoryImpl.create | public synchronized ProxyQueueConversationGroup create(Conversation conversation)
throws IllegalArgumentException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "create", conversation);
if (convToGroupMap.containsKey(conversation))
{
// A pr... | java | public synchronized ProxyQueueConversationGroup create(Conversation conversation)
throws IllegalArgumentException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "create", conversation);
if (convToGroupMap.containsKey(conversation))
{
// A pr... | [
"public",
"synchronized",
"ProxyQueueConversationGroup",
"create",
"(",
"Conversation",
"conversation",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",... | Creates a proxy queue conversation group.
@see com.ibm.ws.sib.comms.client.proxyqueue.ProxyQueueConversationGroupFactory#create(com.ibm.ws.sib.jfapchannel.Conversation) | [
"Creates",
"a",
"proxy",
"queue",
"conversation",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupFactoryImpl.java#L63-L89 |
110,695 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupFactoryImpl.java | ProxyQueueConversationGroupFactoryImpl.groupCloseNotification | protected synchronized void groupCloseNotification(Conversation conversation,
ProxyQueueConversationGroup group)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "groupCloseNotification", new Object[] {conversation, group}... | java | protected synchronized void groupCloseNotification(Conversation conversation,
ProxyQueueConversationGroup group)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "groupCloseNotification", new Object[] {conversation, group}... | [
"protected",
"synchronized",
"void",
"groupCloseNotification",
"(",
"Conversation",
"conversation",
",",
"ProxyQueueConversationGroup",
"group",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
... | Called by a proxy queue conversation group to notify this
factory of its closure.
@param conversation
@param group | [
"Called",
"by",
"a",
"proxy",
"queue",
"conversation",
"group",
"to",
"notify",
"this",
"factory",
"of",
"its",
"closure",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupFactoryImpl.java#L97-L106 |
110,696 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java | CommonFunction.exceptionList | public static String exceptionList(Throwable ex) {
StringBuilder sb = new StringBuilder();
sb.append("<=================================>");
sb.append("Exception Message -> ");
sb.append(ex.getMessage());
sb.append(nl);
if (ex instanceof ResourceException) {
... | java | public static String exceptionList(Throwable ex) {
StringBuilder sb = new StringBuilder();
sb.append("<=================================>");
sb.append("Exception Message -> ");
sb.append(ex.getMessage());
sb.append(nl);
if (ex instanceof ResourceException) {
... | [
"public",
"static",
"String",
"exceptionList",
"(",
"Throwable",
"ex",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"<=================================>\"",
")",
";",
"sb",
".",
"append",
"(",
"\"Exce... | Method which prints the stack trace of exception and any linked exceptions.
@param ex the exception
@return the stack trace of the exception and any linked exceptions. | [
"Method",
"which",
"prints",
"the",
"stack",
"trace",
"of",
"exception",
"and",
"any",
"linked",
"exceptions",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java#L81-L120 |
110,697 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java | CommonFunction.getNLSMessage | public static final String getNLSMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | java | public static final String getNLSMessage(String key, Object... args) {
return NLS.getFormattedMessage(key, args, key);
} | [
"public",
"static",
"final",
"String",
"getNLSMessage",
"(",
"String",
"key",
",",
"Object",
"...",
"args",
")",
"{",
"return",
"NLS",
".",
"getFormattedMessage",
"(",
"key",
",",
"args",
",",
"key",
")",
";",
"}"
] | Retrieve a translated message from the J2C messages file.
If the message cannot be found, the key is returned.
@param key a valid message key from the J2C messages file.
@param args a list of parameters to include in the translatable message.
@return a translated message. | [
"Retrieve",
"a",
"translated",
"message",
"from",
"the",
"J2C",
"messages",
"file",
".",
"If",
"the",
"message",
"cannot",
"be",
"found",
"the",
"key",
"is",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java#L131-L133 |
110,698 | OpenLiberty/open-liberty | dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java | CommonFunction.stackTraceToString | static String stackTraceToString(Throwable th) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
for (int depth = 0; depth < 10 && th != null; depth++) {
th.printStackTrace(pw);
Throwable cause = th.getCause();
if (cause != th) {
... | java | static String stackTraceToString(Throwable th) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
for (int depth = 0; depth < 10 && th != null; depth++) {
th.printStackTrace(pw);
Throwable cause = th.getCause();
if (cause != th) {
... | [
"static",
"String",
"stackTraceToString",
"(",
"Throwable",
"th",
")",
"{",
"StringWriter",
"sw",
"=",
"new",
"StringWriter",
"(",
")",
";",
"PrintWriter",
"pw",
"=",
"new",
"PrintWriter",
"(",
"sw",
")",
";",
"for",
"(",
"int",
"depth",
"=",
"0",
";",
... | Formats an exception's stack trace as a String.
@param th a throwable object (Exception or Error)
@return String containing the exception's stack trace. | [
"Formats",
"an",
"exception",
"s",
"stack",
"trace",
"as",
"a",
"String",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jca.cm/src/com/ibm/ejs/j2c/CommonFunction.java#L176-L188 |
110,699 | OpenLiberty/open-liberty | dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XidImpl.java | XidImpl.toBytes | public byte[] toBytes() {
if (tc.isEntryEnabled())
Tr.entry(tc, "toBytes");
final int gtridLength = (_gtrid == null ? 0 : _gtrid.length);
final int bqualLength = (_bqual == null ? 0 : _bqual.length);
final int nbytes = 12 + gtridLength + bqualLength;
final byte[] res... | java | public byte[] toBytes() {
if (tc.isEntryEnabled())
Tr.entry(tc, "toBytes");
final int gtridLength = (_gtrid == null ? 0 : _gtrid.length);
final int bqualLength = (_bqual == null ? 0 : _bqual.length);
final int nbytes = 12 + gtridLength + bqualLength;
final byte[] res... | [
"public",
"byte",
"[",
"]",
"toBytes",
"(",
")",
"{",
"if",
"(",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"toBytes\"",
")",
";",
"final",
"int",
"gtridLength",
"=",
"(",
"_gtrid",
"==",
"null",
"?",
"0",
"... | Build a native Xid form suitable for recreating with the mainline
constructor as in the XA specification.
<pre>
struct xid_t {
long formatID; // format identifier
long gtrid_length; // value 1-64
long bqual_length; // value 1-64
char data[XIDDATASIZE];
};
</pre> | [
"Build",
"a",
"native",
"Xid",
"form",
"suitable",
"for",
"recreating",
"with",
"the",
"mainline",
"constructor",
"as",
"in",
"the",
"XA",
"specification",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.tx.core/src/com/ibm/tx/jta/impl/XidImpl.java#L412-L432 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.