Ignore:
Timestamp:
2014-02-27T01:41:49+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (JLS order)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/Layer.java

    r6830 r6889  
    4848 * @author imi
    4949 */
    50 abstract public class Layer implements Destroyable, MapViewPaintable, ProjectionChangeListener {
     50public abstract class Layer implements Destroyable, MapViewPaintable, ProjectionChangeListener {
    5151
    5252    public interface LayerAction {
     
    5959    }
    6060
    61 
    6261    /**
    6362     * Special class that can be returned by getMenuEntries when JSeparator needs to be created
     
    8079    }
    8180
    82     static public final String VISIBLE_PROP = Layer.class.getName() + ".visible";
    83     static public final String OPACITY_PROP = Layer.class.getName() + ".opacity";
    84     static public final String NAME_PROP = Layer.class.getName() + ".name";
    85 
    86     static public final int ICON_SIZE = 16;
     81    public static final String VISIBLE_PROP = Layer.class.getName() + ".visible";
     82    public static final String OPACITY_PROP = Layer.class.getName() + ".opacity";
     83    public static final String NAME_PROP = Layer.class.getName() + ".name";
     84
     85    public static final int ICON_SIZE = 16;
    8786
    8887    /** keeps track of property change listeners */
     
    142141     */
    143142    @Override
    144     abstract public void paint(Graphics2D g, MapView mv, Bounds box);
     143    public abstract void paint(Graphics2D g, MapView mv, Bounds box);
     144
    145145    /**
    146146     * Return a representative small image for this layer. The image must not
    147147     * be larger than 64 pixel in any dimension.
    148148     */
    149     abstract public Icon getIcon();
     149    public abstract Icon getIcon();
    150150
    151151    /**
     
    162162     * @return A small tooltip hint about some statistics for this layer.
    163163     */
    164     abstract public String getToolTipText();
     164    public abstract String getToolTipText();
    165165
    166166    /**
     
    171171     *      mergeFrom should be one of the last things to do with a layer.
    172172     */
    173     abstract public void mergeFrom(Layer from);
     173    public abstract void mergeFrom(Layer from);
    174174
    175175    /**
     
    177177     * @return Whether the other layer can be merged into this layer.
    178178     */
    179     abstract public boolean isMergable(Layer other);
    180 
    181     abstract public void visitBoundingBox(BoundingXYVisitor v);
    182 
    183     abstract public Object getInfoComponent();
     179    public abstract boolean isMergable(Layer other);
     180
     181    public abstract void visitBoundingBox(BoundingXYVisitor v);
     182
     183    public abstract Object getInfoComponent();
    184184
    185185    /**
     
    200200     *
    201201     */
    202     abstract public Action[] getMenuEntries();
     202    public abstract Action[] getMenuEntries();
    203203
    204204    /**
Note: See TracChangeset for help on using the changeset viewer.