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:
parent
ad9bec4d9d
commit
05f9593352
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user