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

Cleanup: Replace .equals("") with .isEmpty() throughout the codebase

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      String.isEmpty() is faster, easier to read, and generates less bytecode. It makes sense to replace all occurrences within JDK codebase with the isEmpty() method.

      While the change will affect a lot of components (~150 occurrences in the latest codebase). Change is very easy to review.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: