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

Add isEmpty default method to CharSequence

XMLWordPrintable

    • b25

      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.

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

              Created:
              Updated:
              Resolved: