Details
-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b18
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321977 | 17.0.11 | Goetz Lindenmaier | P5 | Resolved | Fixed | b01 |
Description
In several places, String.compareTo was _compared_ with 0 ( via `== 0` or `!= 0`).
Instead of this, we can use String.equals calls. String.equals is faster and shorter.
Instead of this, we can use String.equals calls. String.equals is faster and shorter.
Attachments
Issue Links
- backported by
-
JDK-8321977 Use String.equals instead of String.compareTo in java.desktop
- Resolved