Redundant index check in String.offsetByCodePoints()

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: