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

Replace use of string.equals("") with isEmpty()

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 12
    • core-libs
    • b24

    Description

      There are more than 350 instances of equals("") in the OpenJDK non-test sources, ~60 in java.base alone.

      isEmpty() should be preferred.

      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: