No functional change, puts back this comment after r1818495, it may helps

sometimes, but better be verbose and tested, else it's too much

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-12-18 14:11:26 +00:00
parent a8d6883644
commit 1c1d7dca60
@@ -177,7 +177,10 @@ public final class UtilMisc {
Object entryValue = mapEntry.getValue();
if (entryValue != null && !(entryValue instanceof Serializable)) {
keysToRemove.add(mapEntry.getKey());
Debug.logInfo("Found Map value that is not Serializable: " + mapEntry.getKey() + "=" + mapEntry.getValue(), module);
if (Debug.verboseOn()) {
Debug.logVerbose("Found Map value that is not Serializable: " + mapEntry.getKey() + "=" + mapEntry.getValue(), module);
}
}
}
for (String keyToRemove: keysToRemove) { map.remove(keyToRemove); }