Ignore:
Timestamp:
2016-05-10T14:54:38+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1186 - Methods should not be empty

Location:
trunk/src/org/openstreetmap/josm/gui/widgets
Files:
3 edited

Legend:

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

    r9970 r10173  
    384384
    385385        @Override
    386         public void keyReleased(KeyEvent e) { }
    387 
    388         @Override
    389         public void keyTyped(KeyEvent e) { }
     386        public void keyReleased(KeyEvent e) {
     387            // Do nothing
     388        }
     389
     390        @Override
     391        public void keyTyped(KeyEvent e) {
     392            // Do nothing
     393        }
    390394    }
    391395
  • trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java

    r8513 r10173  
    44import java.awt.Component;
    55import java.awt.Point;
     6import java.awt.event.FocusAdapter;
    67import java.awt.event.FocusEvent;
    7 import java.awt.event.FocusListener;
    88import java.awt.event.MouseAdapter;
    99import java.awt.event.MouseEvent;
     
    9595    protected void checkFocusAndShowMenu(final Component component, final MouseEvent evt) {
    9696        if (component != null && component.isFocusable() && !component.hasFocus() && component.requestFocusInWindow()) {
    97             component.addFocusListener(new FocusListener() {
    98                 @Override
    99                 public void focusLost(FocusEvent e) {}
    100 
     97            component.addFocusListener(new FocusAdapter() {
    10198                @Override
    10299                public void focusGained(FocusEvent e) {
  • trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java

    r9978 r10173  
    9292    /** Do not let anyone add mouse listeners */
    9393    @Override
    94     public void addMouseListener(MouseListener l) { }
     94    public void addMouseListener(MouseListener l) {
     95        // Do nothing
     96    }
    9597
    9698    /**
     
    211213
    212214        @Override
    213         public void setArmed(boolean b) { }
    214 
    215         @Override
    216         public void setSelected(boolean b) { }
    217 
    218         @Override
    219         public void setPressed(boolean b) { }
     215        public void setArmed(boolean b) {
     216            // Do nothing
     217        }
     218
     219        @Override
     220        public void setSelected(boolean b) {
     221            // Do nothing
     222        }
     223
     224        @Override
     225        public void setPressed(boolean b) {
     226            // Do nothing
     227        }
    220228
    221229        /** We disable focusing on the component when it is not enabled. */
Note: See TracChangeset for help on using the changeset viewer.