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

Optimize empty substring handling

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • None
    • core-libs
    • b13

      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

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

              Created:
              Updated:
              Resolved: