Remove the unreachable checking code

Motivation:
'length2 == 0' is not reachable because length1 and length2 are same at this point.

Motification:
Removed 'length2 == 0'.

Result:
Cleaner code.
This commit is contained in:
JongYoon Lim 2015-04-30 14:02:32 +09:00 committed by Norman Maurer
parent ad9bec4d9d
commit 05f9593352

View File

@ -959,9 +959,7 @@ public final class AsciiString extends ByteString implements CharSequence, Compa
int length2 = cs.length();
if (length1 != length2) {
return false;
}
if (length1 == 0 && length2 == 0) {
} else if (length1 == 0) {
return true; // since both are empty strings
}