Why doesn't the Java String source method regionMatches () call its overloaded implementation?

The two methods in

String source code are as follows:

    public boolean regionMatches(int toffset, String other, int ooffset,int len) {
        return regionMatches(false,toffset, other, ooffset, len);
    }

but it is still implemented separately in jdk8. Is there any other consideration?
(there are many similar repetitive implementations in string)

Dec.23,2021

Test program:

regionMatches(): 633992574
regionMatches(false): 805662114

the first one is slightly faster than the second one.

Menu