Drop Util#isEmpty/Util#nonEmpty in favor of StringUtils

This commit is contained in:
Jon Chambers
2023-10-19 19:11:53 -04:00
committed by Jon Chambers
parent 19d7b5c65d
commit 9c053e20da
7 changed files with 14 additions and 20 deletions

View File

@@ -96,14 +96,6 @@ public class Util {
return number.substring(0, 1 + countryCode.length() + prefixLength);
}
public static boolean isEmpty(String param) {
return param == null || param.length() == 0;
}
public static boolean nonEmpty(String param) {
return !isEmpty(param);
}
public static byte[] truncate(byte[] element, int length) {
byte[] result = new byte[length];
System.arraycopy(element, 0, result, 0, result.length);