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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: