-
Bug
-
Resolution: Fixed
-
P4
-
9, 11, 17
-
b09
During the course of fixing JDK-8043550, it was observed that JComponent.setUIProperty method uses string identity check (==) rather than string equality checks (.equals) when comparing against the property name. This is suspicious since string identity and equality and equivalent only for interned strings.
If equality checks are semantically correct, this method could be rewritten to use strings in switch.
If equality checks are semantically correct, this method could be rewritten to use strings in switch.
- relates to
-
JDK-8043550 Fix raw and unchecked lint warnings in javax.swing.*
- Resolved