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

replace "".equals(s) with s != null and s.isEmpty()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 13
    • core-libs

      The idiom "".equals(str) could be more efficient if replaced with a usage
      that can uses String.isEmpty.

      Check for null is important and there might be reason to create a utility method for the purpose.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: