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

Optimize empty substring handling

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      String.substring return "" in some cases, but could be improved to do so in all cases when the substring length is zero.

      Patch contributed by Sergey Tsypanov here: https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-February/064948.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                redestad Claes Redestad
                Reporter:
                redestad Claes Redestad
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: