JDK-8215014 : replace "".equals(s) with s != null and s.isEmpty()
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2018-12-07
  • Updated: 2021-12-03
  • Resolved: 2021-12-03
Related Reports
Relates :  
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.


Comments
Not much value.
03-12-2021

Similar request JI-9059063.
02-05-2019