Simplify StringLatin1.regionMatches

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: