-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
None
-
Affects Version/s: 5.0u1
-
Component/s: client-libs
-
generic
-
generic
There is a comparison of String objects using the =! operator in method SwingSet2.setLookAndFeel(String):
public void setLookAndFeel(String laf) {
if(currentLookAndFeel != laf) {
currentLookAndFeel = laf;
[--snip--]
As it is not guaranteed, that all Strings passed to the setLookAndFeel() are in the String pool, the equal() method should be used for the comparison.
###@###.### 2005-1-25 14:43:23 GMT
public void setLookAndFeel(String laf) {
if(currentLookAndFeel != laf) {
currentLookAndFeel = laf;
[--snip--]
As it is not guaranteed, that all Strings passed to the setLookAndFeel() are in the String pool, the equal() method should be used for the comparison.
###@###.### 2005-1-25 14:43:23 GMT