Skip to content

Commit b258a16

Browse files
authored
Remove extra whitespace in string comparison logic (#1439)
1 parent 15a6578 commit b258a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/lang3/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ public static int compare(final String str1, final String str2, final boolean nu
859859
return nullIsLess ? -1 : 1;
860860
}
861861
if (str2 == null) {
862-
return nullIsLess ? 1 : - 1;
862+
return nullIsLess ? 1 : -1;
863863
}
864864
return str1.compareTo(str2);
865865
}

0 commit comments

Comments
 (0)