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

Redundant index check in String.offsetByCodePoints()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • core-libs
    • None
    • b27

      String.offsetByCodePoints() delegates to Character.offsetByCodePoints() which in turn specified the same exception under the same conditions and the implementation does exactly the same checks. This means we can remove index check from String.offsetByCodePoints() and rely on the one done in Character.offsetByCodePoints().

            stsypanov Sergey Tsypanov
            stsypanov Sergey Tsypanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: