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/dialogs/validator/ValidatorTreePanel.java

    r6890 r6990  
    7878        for (KeyListener keyListener : getKeyListeners()) {
    7979            // Fix #3596 - Remove default keyListener to avoid conflicts with JOSM commands
    80             if (keyListener.getClass().getName().equals("javax.swing.plaf.basic.BasicTreeUI$Handler")) {
     80            if ("javax.swing.plaf.basic.BasicTreeUI$Handler".equals(keyListener.getClass().getName())) {
    8181                removeKeyListener(keyListener);
    8282            }
Note: See TracChangeset for help on using the changeset viewer.