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

Add isEmpty default method to CharSequence

    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:
      b25

      Description

      Adding isEmpty as a default method on CharSequence would harmonize String with other CharSequence implementations.

      isEmpty was added to String in Java 1.6, but at the time there was no means to add it to the CharSequence interface without breaking compatibility.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: