mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Use isEmpty() in StringUtils.requireNullOrNotEmpty()
This commit is contained in:
parent
6d1252755b
commit
2915101843
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ public class StringUtils {
|
||||||
if (cs == null) {
|
if (cs == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (cs.toString().isEmpty()) {
|
if (isEmpty(cs)) {
|
||||||
throw new IllegalArgumentException(message);
|
throw new IllegalArgumentException(message);
|
||||||
}
|
}
|
||||||
return cs;
|
return cs;
|
||||||
|
|
Loading…
Reference in a new issue