Simplify expressions.
This commit is contained in:
@@ -458,7 +458,7 @@ public abstract class LogFactory {
|
|||||||
final String useTCCLStr = props.getProperty(TCCL_KEY);
|
final String useTCCLStr = props.getProperty(TCCL_KEY);
|
||||||
// The Boolean.valueOf(useTCCLStr).booleanValue() formulation
|
// The Boolean.valueOf(useTCCLStr).booleanValue() formulation
|
||||||
// is required for Java 1.2 compatibility.
|
// is required for Java 1.2 compatibility.
|
||||||
if ((useTCCLStr != null) && (Boolean.parseBoolean(useTCCLStr) == false)) {
|
if ((useTCCLStr != null) && !Boolean.parseBoolean(useTCCLStr)) {
|
||||||
// Don't use current context classloader when locating any
|
// Don't use current context classloader when locating any
|
||||||
// LogFactory or Log classes, just use the class that loaded
|
// LogFactory or Log classes, just use the class that loaded
|
||||||
// this abstract class. When this class is deployed in a shared
|
// this abstract class. When this class is deployed in a shared
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ public class PathableClassLoader extends URLClassLoader {
|
|||||||
*/
|
*/
|
||||||
private URL libFromClasspath(final String logicalLib) {
|
private URL libFromClasspath(final String logicalLib) {
|
||||||
final ClassLoader cl = this.getClass().getClassLoader();
|
final ClassLoader cl = this.getClass().getClassLoader();
|
||||||
if (cl instanceof URLClassLoader == false) {
|
if (!(cl instanceof URLClassLoader)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,7 +302,7 @@ public class PathableClassLoader extends URLClassLoader {
|
|||||||
for (final Object element : lookasides.entrySet()) {
|
for (final Object element : lookasides.entrySet()) {
|
||||||
final Map.Entry entry = (Map.Entry) element;
|
final Map.Entry entry = (Map.Entry) element;
|
||||||
final String prefix = (String) entry.getKey();
|
final String prefix = (String) entry.getKey();
|
||||||
if (name.startsWith(prefix) == true) {
|
if (name.startsWith(prefix)) {
|
||||||
final ClassLoader loader = (ClassLoader) entry.getValue();
|
final ClassLoader loader = (ClassLoader) entry.getValue();
|
||||||
final Class clazz = Class.forName(name, resolve, loader);
|
final Class clazz = Class.forName(name, resolve, loader);
|
||||||
return clazz;
|
return clazz;
|
||||||
|
|||||||
Reference in New Issue
Block a user