1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 03:52:06 +01:00

Use isEmpty() in StringUtils.requireNullOrNotEmpty()

This commit is contained in:
Florian Schmaus 2019-10-30 11:56:55 +01:00
parent 6d1252755b
commit 2915101843

View file

@ -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;