Simplify expressions.
This commit is contained in:
@@ -458,7 +458,7 @@ public abstract class LogFactory {
|
||||
final String useTCCLStr = props.getProperty(TCCL_KEY);
|
||||
// The Boolean.valueOf(useTCCLStr).booleanValue() formulation
|
||||
// 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
|
||||
// LogFactory or Log classes, just use the class that loaded
|
||||
// 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) {
|
||||
final ClassLoader cl = this.getClass().getClassLoader();
|
||||
if (cl instanceof URLClassLoader == false) {
|
||||
if (!(cl instanceof URLClassLoader)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -302,7 +302,7 @@ public class PathableClassLoader extends URLClassLoader {
|
||||
for (final Object element : lookasides.entrySet()) {
|
||||
final Map.Entry entry = (Map.Entry) element;
|
||||
final String prefix = (String) entry.getKey();
|
||||
if (name.startsWith(prefix) == true) {
|
||||
if (name.startsWith(prefix)) {
|
||||
final ClassLoader loader = (ClassLoader) entry.getValue();
|
||||
final Class clazz = Class.forName(name, resolve, loader);
|
||||
return clazz;
|
||||
|
||||
Reference in New Issue
Block a user