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

Add isEmpty default method to CharSequence

    XMLWordPrintable

Details

    • 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

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: