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/mappaint/ElemStyle.java

    r6663 r6889  
    1414import org.openstreetmap.josm.gui.mappaint.mapcss.Instruction.RelativeFloat;
    1515
    16 abstract public class ElemStyle implements StyleKeys {
     16public abstract class ElemStyle implements StyleKeys {
    1717
    1818    protected static final String[] ICON_KEYS = {"icon-image", "icon-width", "icon-height", "icon-opacity"};
     
    9191     * a JOSM session. Should have a listener listening to preference changes.
    9292     */
    93     static private String DEFAULT_FONT_NAME = null;
    94     static private Float DEFAULT_FONT_SIZE = null;
    95     static private void initDefaultFontParameters() {
     93    private static String DEFAULT_FONT_NAME = null;
     94    private static Float DEFAULT_FONT_SIZE = null;
     95    private static void initDefaultFontParameters() {
    9696        if (DEFAULT_FONT_NAME != null) return; // already initialized - skip initialization
    9797        DEFAULT_FONT_NAME = Main.pref.get("mappaint.font", "Helvetica");
     
    9999    }
    100100
    101     static private class FontDescriptor {
     101    private static class FontDescriptor {
    102102        public String name;
    103103        public int style;
     
    141141    }
    142142
    143     static private final Map<FontDescriptor, Font> FONT_MAP = new HashMap<FontDescriptor, Font>();
    144     static private Font getCachedFont(FontDescriptor fd) {
     143    private static final Map<FontDescriptor, Font> FONT_MAP = new HashMap<FontDescriptor, Font>();
     144    private static Font getCachedFont(FontDescriptor fd) {
    145145        Font f = FONT_MAP.get(fd);
    146146        if (f != null) return f;
     
    150150    }
    151151
    152     static private Font getCachedFont(String name, int style, int size){
     152    private static Font getCachedFont(String name, int style, int size){
    153153        return getCachedFont(new FontDescriptor(name, style, size));
    154154    }
Note: See TracChangeset for help on using the changeset viewer.