Improved: Replace .size() == 0 with isEmpty() in Java files(OFBIZ-11944)

Thanks, priya for the report and patch and jacques for the review.
This commit is contained in:
Pawan Verma
2020-08-22 19:18:38 +05:30
parent 964a0790a9
commit 5545b13b13
15 changed files with 55 additions and 55 deletions
@@ -94,7 +94,7 @@ public class Various {
if (timesheetId != null) {
try {
List<GenericValue> actuals = EntityQuery.use(delegator).from("TimeEntry").where("timesheetId", timesheetId).queryList();
if (actuals.size() > 0) {
if (!actuals.isEmpty()) {
for (GenericValue actual : actuals) {
Double hour = (Double) actual.get("hours");
double hours = hour;