Removed call to Java 1.6 String.isEmpty() method, since we are supporting Java 1.5.

This commit is contained in:
rjy7 2010-03-22 19:01:53 +00:00
parent 56ef6da161
commit 966a198bcf

View file

@ -11,7 +11,8 @@ public class StringUtils {
}
public static String quote(String s) {
return s.isEmpty() ? "" : '"' + s + '"';
boolean b = s.isEmpty();
return isEmpty(s) ? "" : '"' + s + '"';
}
public static String join(List<?> list, boolean quote, String glue) {
@ -42,4 +43,8 @@ public class StringUtils {
return join(list, true, glue);
}
public static boolean isEmpty(String s) {
return s == null || s.length() <= 0;
}
}