Skip to content
Permalink
Browse files
Use isEmpty().
  • Loading branch information
garydgregory committed Jan 17, 2021
1 parent fa18fb2 commit daf986d1558947ae1128594087e8eff34bc65515
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1453,7 +1453,7 @@ public boolean toBoolean(final Object val) {
return ((AtomicBoolean) val).get();
} else if (val instanceof String) {
final String strval = val.toString();
return strval.length() > 0 && !"false".equals(strval);
return !strval.isEmpty() && !"false".equals(strval);
} else {
// non null value is true
return true;

0 comments on commit daf986d

Please sign in to comment.