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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: