Ignore:
Timestamp:
2014-04-19T00:36:43+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - place Strings literals on the left side when checking for equality (can avoid NPEs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/IconToggleButton.java

    r6380 r6990  
    6262    @Override
    6363    public void propertyChange(PropertyChangeEvent evt) {
    64         if (evt.getPropertyName().equals("active")) {
     64        if ("active".equals(evt.getPropertyName())) {
    6565            setSelected((Boolean)evt.getNewValue());
    6666            requestFocusInWindow();
    67         } else if (evt.getPropertyName().equals("selected")) {
     67        } else if ("selected".equals(evt.getPropertyName())) {
    6868            setSelected((Boolean)evt.getNewValue());
    6969        }
Note: See TracChangeset for help on using the changeset viewer.