mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 11:28:05 +01:00
Drop Util#isEmpty/Util#nonEmpty in favor of StringUtils
This commit is contained in:
committed by
Jon Chambers
parent
19d7b5c65d
commit
9c053e20da
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user