-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
5.0u1
-
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