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/MainMenu.java

    r6889 r6990  
    753753            @Override
    754754            public void preferenceChanged(PreferenceChangeEvent e) {
    755                 if (e.getKey().equals("audio.menuinvisible")) {
     755                if ("audio.menuinvisible".equals(e.getKey())) {
    756756                    showAudioMenu(!Boolean.parseBoolean(e.getNewValue().toString()));
    757757                }
Note: See TracChangeset for help on using the changeset viewer.