Improved: Remove redundant null checks (OFBIZ-10911)
Redundant null checks detected by Eclipse has been removed. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857896 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -101,8 +101,7 @@ public class SimpleMapProcessor {
|
||||
MapProcessor processor = mapProcessors.get(name);
|
||||
if (processor == null) {
|
||||
throw new MiniLangException("Could not find SimpleMapProcessor named " + name + " in XML document resource: " + xmlResource);
|
||||
}
|
||||
if (processor != null) {
|
||||
} else {
|
||||
processor.exec(inMap, results, messages, locale, loader);
|
||||
}
|
||||
}
|
||||
@@ -114,8 +113,7 @@ public class SimpleMapProcessor {
|
||||
MapProcessor processor = mapProcessors.get(name);
|
||||
if (processor == null) {
|
||||
throw new MiniLangException("Could not find SimpleMapProcessor named " + name + " in XML document: " + xmlURL.toString());
|
||||
}
|
||||
if (processor != null) {
|
||||
} else {
|
||||
processor.exec(inMap, results, messages, locale, loader);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -154,7 +154,8 @@ public final class Iterate extends MethodOperation {
|
||||
}
|
||||
} else {
|
||||
if (Debug.verboseOn()) {
|
||||
Debug.logVerbose("Cannot iterate over a " + objList == null ? "null object" : objList.getClass().getName()
|
||||
Debug.logVerbose("Cannot iterate over a "
|
||||
+ (objList == null ? "null object" : objList.getClass().getName())
|
||||
+ ", doing nothing: " + this, module);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user