Removed last isEmpty for < 1.6 compatibility

This commit is contained in:
Pablo Fernandez committed 2010-09-15 10:58:52 -03:00
1 parent 129d368d92
commit b2147de2e5
2 files changed
+2 -2

No files matched your search

@@ -38,7 +38,7 @@ public class Preconditions
private static void check(boolean requirements, String error)
{
String message = (error == null || error.trim().isEmpty()) ? DEFAULT_MESSAGE : error;
String message = (error == null || error.trim().length() <= 0) ? DEFAULT_MESSAGE : error;
if (!requirements)
{
throw new IllegalArgumentException(message);