isEmpty is 1.6 only

This commit is contained in:
Pablo Fernandez committed 2010-09-09 10:46:04 -03:00
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)