RFR: JDK-8272192 Shortcut String equality checks by checking equality of the value array [v2]
David Holmes
dholmes at openjdk.java.net
Mon Sep 6 22:48:40 UTC 2021
On Mon, 6 Sep 2021 06:41:38 GMT, q2q-2q2 <github.com+44376158+q2q-2q2 at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/String.java line 1964:
>>
>>> 1962: public boolean equalsIgnoreCase(String anotherString) {
>>> 1963: if (anotherString != null) {
>>> 1964: return false;
>>
>> This one is definitely wrong.
>
> Thank you
So that begs the question as to what testing you did for this change?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5370
More information about the core-libs-dev
mailing list