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

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

XMLWordPrintable

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

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

      isEmpty() should be preferred.

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

              Created:
              Updated:
              Resolved: