another formatting nit, one or the other is already null

This commit is contained in:
Rob Tompkins 2018-02-14 13:01:51 -05:00
parent 2c0429aabd
commit bb3fe2a379
1 changed files with 1 additions and 1 deletions

View File

@ -8513,7 +8513,7 @@ public static boolean startsWithIgnoreCase(final CharSequence str, final CharSeq
*/
private static boolean startsWith(final CharSequence str, final CharSequence prefix, final boolean ignoreCase) {
if (str == null || prefix == null) {
return str == null && prefix == null;
return str == prefix;
}
if (prefix.length() > str.length()) {
return false;