Using Collection.isEmpty() to test for emptiness

This commit is contained in:
Artyom Melnikov committed 2016-06-14 15:21:23 +03:00
1 parent a64a020e36
commit 07edb2c81f
10 files changed
+14 -14

No files matched your search

@@ -522,7 +522,7 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
List<SpiExpression> exprList = whereExpressions.internalList();
if (exprList.size() > 1) {
return null;
} else if (exprList.size() == 0) {
} else if (exprList.isEmpty()) {
return namedBind;
} else {
if (namedBind != null) {
@@ -198,7 +198,7 @@ public class OrmQueryDetail implements Serializable {
}
}
if (matchingPaths.size() == 0) {
if (matchingPaths.isEmpty()) {
return null;
}