Skip to content

Commit 62ea851

Browse files
author
Stephane Landelle
committed
Use String.isEmpty
1 parent 4a7da53 commit 62ea851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/com/ning/http/util/MiscUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private MiscUtil() {
2121
}
2222

2323
public static boolean isNonEmpty(String string) {
24-
return string != null && string.length() != 0;
24+
return string != null && !string.isEmpty();
2525
}
2626

2727
public static boolean isNonEmpty(Object[] array) {

0 commit comments

Comments
 (0)