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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: