Use isEmpty() in StringUtils.requireNullOrNotEmpty()
This commit is contained in:
parent
6d1252755b
commit
2915101843
|
@ -535,7 +535,7 @@ public class StringUtils {
|
|||
if (cs == null) {
|
||||
return null;
|
||||
}
|
||||
if (cs.toString().isEmpty()) {
|
||||
if (isEmpty(cs)) {
|
||||
throw new IllegalArgumentException(message);
|
||||
}
|
||||
return cs;
|
||||
|
|
Loading…
Reference in New Issue