Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8285001

Simplify StringLatin1.regionMatches

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • core-libs
    • None
    • b19

      There is no pair of character values in the latin1 range (0-255) that will make the Character.toLowerCase(u1) == Character.toLowerCase(u2) condition in StringLatin1.java true, so this test can be removed. Such tests are necessary in the general case, but is covered by StringLatin1.regionMatchesCI_UTF16 and StringUTF16 code.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: