Changeset 10153 in josm


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

sonar - squid:S3038 - Abstract methods should not be redundant

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/PrimitiveData.java

    r9994 r10153  
    7474    }
    7575
    76     @Override
    77     public abstract OsmPrimitiveType getType();
    78 
    7976    private void writeObject(ObjectOutputStream oos) throws IOException {
    8077        // since super class is not Serializable
  • trunk/src/org/openstreetmap/josm/gui/correction/CorrectionTableModel.java

    r10125 r10153  
    3131        applyColumn = getColumnCount() - 1;
    3232    }
    33 
    34     @Override
    35     public abstract int getColumnCount();
    3633
    3734    protected abstract boolean isBoldCell(int row, int column);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTableCellRenderer.java

    r9983 r10153  
    33
    44import java.awt.Color;
    5 import java.awt.Component;
    65
    76import javax.swing.JLabel;
     
    5453    }
    5554
    56     @Override
    57     public abstract Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,
    58             boolean hasFocus, int row, int column);
    59 
    6055    /**
    6156     * replies the model
  • trunk/src/org/openstreetmap/josm/gui/io/AbstractIOTask.java

    r9543 r10153  
    8989
    9090    /**
    91      * Runs the task
    92      */
    93     @Override
    94     public abstract void run();
    95 
    96     /**
    9791     * Cancel the task
    9892     */
  • trunk/src/org/openstreetmap/josm/gui/layer/Layer.java

    r10031 r10153  
    66import java.awt.Color;
    77import java.awt.Component;
    8 import java.awt.Graphics2D;
    98import java.awt.event.ActionEvent;
    109import java.beans.PropertyChangeListener;
     
    2423import org.openstreetmap.josm.actions.SaveActionBase;
    2524import org.openstreetmap.josm.actions.SaveAsAction;
    26 import org.openstreetmap.josm.data.Bounds;
    2725import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    2826import org.openstreetmap.josm.data.projection.Projection;
    2927import org.openstreetmap.josm.data.projection.ProjectionChangeListener;
    30 import org.openstreetmap.josm.gui.MapView;
    3128import org.openstreetmap.josm.tools.Destroyable;
    3229import org.openstreetmap.josm.tools.ImageProvider;
     
    188185
    189186    /**
    190      * Paint the dataset using the engine set.
    191      * @param mv The object that can translate GeoPoints to screen coordinates.
    192      */
    193     @Override
    194     public abstract void paint(Graphics2D g, MapView mv, Bounds box);
    195 
    196     /**
    197187     * Return a representative small image for this layer. The image must not
    198188     * be larger than 64 pixel in any dimension.
Note: See TracChangeset for help on using the changeset viewer.