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:
Mathieu Lirzin
2019-04-21 09:37:49 +00:00
parent d7127ce9ea
commit d5e3c2d3d4
30 changed files with 163 additions and 204 deletions
@@ -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);
}
}
@@ -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;