Changeset 10152 in josm for trunk/src


Ignore:
Timestamp:
2016-04-21T09:16:31+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:S1939 - Extensions and implementations should not be redundant

Location:
trunk/src/org/openstreetmap/josm
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java

    r10150 r10152  
    1515import java.awt.event.KeyEvent;
    1616import java.awt.event.MouseEvent;
    17 import java.awt.event.MouseListener;
    18 import java.awt.event.MouseMotionListener;
    1917import java.awt.event.WindowAdapter;
    2018import java.awt.event.WindowEvent;
     
    4038 * @since 3715
    4139 */
    42 public class ImageryAdjustAction extends MapMode implements MouseListener, MouseMotionListener, AWTEventListener {
     40public class ImageryAdjustAction extends MapMode implements AWTEventListener {
    4341    private static volatile ImageryOffsetDialog offsetDialog;
    4442    private static Cursor cursor = ImageProvider.getCursor("normal", "move");
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

    r9062 r10152  
    2222import org.openstreetmap.josm.data.Bounds;
    2323import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent;
    24 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener;
    2524import org.openstreetmap.josm.data.SystemOfMeasurement;
    2625import org.openstreetmap.josm.data.coor.EastNorth;
     
    8180 * @author Ole Jørgen Brønner (olejorgenb)
    8281 */
    83 public class ParallelWayAction extends MapMode implements ModifierListener, MapViewPaintable, PreferenceChangedListener {
     82public class ParallelWayAction extends MapMode implements ModifierListener, MapViewPaintable {
    8483
    8584    private enum Mode {
  • trunk/src/org/openstreetmap/josm/gui/MapMover.java

    r10000 r10152  
    1010import java.awt.event.MouseAdapter;
    1111import java.awt.event.MouseEvent;
    12 import java.awt.event.MouseMotionListener;
    1312import java.awt.event.MouseWheelEvent;
    14 import java.awt.event.MouseWheelListener;
    1513
    1614import javax.swing.AbstractAction;
     
    3735 * @author imi
    3836 */
    39 public class MapMover extends MouseAdapter implements MouseMotionListener, MouseWheelListener, Destroyable {
     37public class MapMover extends MouseAdapter implements Destroyable {
    4038
    4139    public static final BooleanProperty PROP_ZOOM_REVERSE_WHEEL = new BooleanProperty("zoom.reverse-wheel", false);
  • trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapControler.java

    r9243 r10152  
    88import java.awt.event.MouseAdapter;
    99import java.awt.event.MouseEvent;
    10 import java.awt.event.MouseListener;
    11 import java.awt.event.MouseMotionListener;
    1210import java.util.Timer;
    1311import java.util.TimerTask;
     
    3028 * @author Tim Haussmann
    3129 */
    32 public class SlippyMapControler extends MouseAdapter implements MouseMotionListener, MouseListener {
     30public class SlippyMapControler extends MouseAdapter {
    3331
    3432    /** A Timer for smoothly moving the map area */
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/ApplyAction.java

    r9665 r10152  
    99
    1010import javax.swing.event.TableModelEvent;
    11 import javax.swing.event.TableModelListener;
    1211
    1312import org.openstreetmap.josm.gui.dialogs.relation.IRelationEditor;
     
    2221 * @since 9496
    2322 */
    24 public class ApplyAction extends SavingAction implements PropertyChangeListener, TableModelListener {
     23public class ApplyAction extends SavingAction implements PropertyChangeListener {
    2524
    2625    /**
  • trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java

    r10134 r10152  
    4848 * @since 7522
    4949 */
    50 public class NoteLayer extends AbstractModifiableLayer implements MouseListener, UploadToServer, SaveToFile {
     50public class NoteLayer extends AbstractModifiableLayer implements MouseListener {
    5151
    5252    private final NoteData noteData;
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r10031 r10152  
    109109 * @since 17
    110110 */
    111 public class OsmDataLayer extends AbstractModifiableLayer implements Listener, SelectionChangedListener, UploadToServer, SaveToFile {
     111public class OsmDataLayer extends AbstractModifiableLayer implements Listener, SelectionChangedListener {
    112112    /** Property used to know if this layer has to be saved on disk */
    113113    public static final String REQUIRES_SAVE_TO_DISK_PROP = OsmDataLayer.class.getName() + ".requiresSaveToDisk";
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r9911 r10152  
    2626 * @since 1023
    2727 */
    28 public class PlatformHookOsx extends PlatformHookUnixoid implements PlatformHook, InvocationHandler {
     28public class PlatformHookOsx extends PlatformHookUnixoid implements InvocationHandler {
    2929
    3030    private static PlatformHookOsx ivhandler = new PlatformHookOsx();
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r9296 r10152  
    6060  * @since 1023
    6161  */
    62 public class PlatformHookWindows extends PlatformHookUnixoid implements PlatformHook {
     62public class PlatformHookWindows extends PlatformHookUnixoid {
    6363
    6464    @Override
Note: See TracChangeset for help on using the changeset viewer.