Fixed: removed a redundant null check and parenthesis.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1773405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2016-12-09 14:21:56 +00:00
parent 2dc10024e4
commit 635657bbc5
2 changed files with 2 additions and 3 deletions
@@ -159,11 +159,10 @@ public class OrderByItem implements Comparator<GenericEntity> {
if (value1 == null) {
result = value2 == null ? 0 : 1;
} else if (value2 == null) {
result = value1 == null ? 0 : -1;
result = -1;
} else {
result = value1.compareTo(value2);
}
// if (Debug.infoOn()) Debug.logInfo("[OrderByComparator.compareAsc] Result is " + result + " for [" + value + "] and [" + value2 + "]", module);
return descending ? -result : result;
}