Improved: Always check if debug verbose is on when using Debug.logVerbose()

(OFBIZ-10052)

This completes r1818010, there were much more cases.
Also few tabs automatically replaced by spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-12-13 14:11:38 +00:00
parent 24b92d6921
commit 40e8be83df
44 changed files with 105 additions and 104 deletions
@@ -87,7 +87,7 @@ public final class SetServiceFields extends MethodOperation {
Map<String, ? extends Object> fromMap = mapFma.get(methodContext.getEnvMap());
if (fromMap == null) {
if (Debug.verboseOn()) {
if (Debug.verboseOn()) Debug.logVerbose("The from map in set-service-field was not found with name: " + mapFma, module);
Debug.logVerbose("The from map in set-service-field was not found with name: " + mapFma, module);
}
return true;
}
@@ -151,7 +151,7 @@ public final class Iterate extends MethodOperation {
}
} else {
if (Debug.verboseOn()) {
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;