isEmpty is 1.6 only
This commit is contained in:
1 parent
facc73a530
commit
ab57cf4757
1 file changed
+1
-1
@@ -13,7 +13,7 @@ public class Preconditions
|
||||
|
||||
public static void checkEmptyString(String string, String errorMsg)
|
||||
{
|
||||
check(string != null && !string.trim().isEmpty(), errorMsg);
|
||||
check(string != null && !string.trim().equals(""), errorMsg);
|
||||
}
|
||||
|
||||
public static void checkValidUrl(String url, String errorMsg)
|
||||
|
||||
Reference in new issue
Block a user