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

Redundant index check in String.offsetByCodePoints()

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: