Improvement: Generic value is null or not should be checked using native checks. Utility method isEmpty or isNotEmpty is not needed to check if generic value is null or not because generic values can never be empty. They can be null or not nulls. So made changes accordingly all over the places.

(OFBIZ-8471)

Thanks: Ratnesh Upadhyay for reporting the improvement and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768192 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Divesh Dutta
2016-11-05 11:27:46 +00:00
parent b9efe841ce
commit 8e8272b4fa
58 changed files with 132 additions and 132 deletions
@@ -227,7 +227,7 @@ public final class EntityUtilProperties implements Serializable {
.from("SystemProperty")
.where("systemResourceId", resourceName, "systemPropertyId", name)
.queryOne();
if (UtilValidate.isNotEmpty(gv)) {
if (gv != null) {
prevValue = gv.getString("systemPropertyValue");
gv.set("systemPropertyValue", value);
} else {