Ignore:
Timestamp:
2014-10-18T23:07:52+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix Java 7 / unused code warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/seamarks/SeaMark.java

    r30287 r30737  
    3030        }
    3131
    32         public static final EnumMap<Reg, String> RegSTR = new EnumMap<Reg, String>(Reg.class);
     32        public static final EnumMap<Reg, String> RegSTR = new EnumMap<>(Reg.class);
    3333        static {
    3434                RegSTR.put(Reg.A, "iala-a");
     
    6969        }
    7070
    71         public static final EnumMap<Obj, String> ObjSTR = new EnumMap<Obj, String>(Obj.class);
     71        public static final EnumMap<Obj, String> ObjSTR = new EnumMap<>(Obj.class);
    7272        static {
    7373                ObjSTR.put(Obj.BCNCAR, "beacon_cardinal");
     
    130130        }
    131131
    132         public static final EnumMap<Obj, Ent> EntMAP = new EnumMap<Obj, Ent>(Obj.class);
     132        public static final EnumMap<Obj, Ent> EntMAP = new EnumMap<>(Obj.class);
    133133        static {
    134134                EntMAP.put(Obj.BCNCAR, Ent.BEACON);
     
    170170        }
    171171
    172         public static final EnumMap<Obj, Grp> GrpMAP = new EnumMap<Obj, Grp>(Obj.class);
     172        public static final EnumMap<Obj, Grp> GrpMAP = new EnumMap<>(Obj.class);
    173173        static {
    174174                GrpMAP.put(Obj.UNKOBJ, Grp.NUL);
     
    229229        }
    230230                 
    231         public static final EnumMap<Cat, String> CatSTR = new EnumMap<Cat, String>(Cat.class);
     231        public static final EnumMap<Cat, String> CatSTR = new EnumMap<>(Cat.class);
    232232        static {
    233233                CatSTR.put(Cat.LAM_PORT, "port");
     
    435435        }
    436436
    437         public static final EnumMap<Shp, String> ShpSTR = new EnumMap<Shp, String>(Shp.class);
     437        public static final EnumMap<Shp, String> ShpSTR = new EnumMap<>(Shp.class);
    438438        static {
    439439                ShpSTR.put(Shp.PILLAR, "pillar");
     
    469469        }
    470470
    471         public static final EnumMap<Col, Color> ColMAP = new EnumMap<Col, Color>(Col.class);
     471        public static final EnumMap<Col, Color> ColMAP = new EnumMap<>(Col.class);
    472472        static {
    473473                ColMAP.put(Col.UNKCOL, new Color(0xc0c0c0));
     
    487487        }
    488488
    489         public static final EnumMap<Col, String> ColSTR = new EnumMap<Col, String>(Col.class);
     489        public static final EnumMap<Col, String> ColSTR = new EnumMap<>(Col.class);
    490490        static {
    491491                ColSTR.put(Col.WHITE, "white");
     
    539539        }
    540540
    541         private ArrayList<Col> bodyColour = new ArrayList<Col>();
     541        private ArrayList<Col> bodyColour = new ArrayList<>();
    542542
    543543        public Col getObjColour(int i) {
     
    577577        }
    578578
    579         private ArrayList<Col> topmarkColour = new ArrayList<Col>();
     579        private ArrayList<Col> topmarkColour = new ArrayList<>();
    580580
    581581        public Col getTopColour(int i) {
     
    619619        }
    620620
    621         public static final Map<EnumSet<Chr>, String> ChrMAP = new HashMap<EnumSet<Chr>, String>();
     621        public static final Map<EnumSet<Chr>, String> ChrMAP = new HashMap<>();
    622622        static {
    623623                ChrMAP.put(EnumSet.of(Chr.FIXED), "F");
     
    654654        }
    655655
    656         public static final EnumMap<Vis, String> VisSTR = new EnumMap<Vis, String>(Vis.class);
     656        public static final EnumMap<Vis, String> VisSTR = new EnumMap<>(Vis.class);
    657657        static {
    658658                VisSTR.put(Vis.HIGH, "high");
     
    670670        }
    671671
    672         public static final EnumMap<Lit, String> LitSTR = new EnumMap<Lit, String>(Lit.class);
     672        public static final EnumMap<Lit, String> LitSTR = new EnumMap<>(Lit.class);
    673673        static {
    674674                LitSTR.put(Lit.VERT, "vertical");
     
    696696        }
    697697
    698         public static final EnumMap<Exh, String> ExhSTR = new EnumMap<Exh, String>(Exh.class);
     698        public static final EnumMap<Exh, String> ExhSTR = new EnumMap<>(Exh.class);
    699699        static {
    700700                ExhSTR.put(Exh.H24, "24h");
     
    713713                        "", "", "", Vis.UNKVIS, Exh.UNKEXH, "", "", Col.UNKCOL };
    714714
    715         private ArrayList<Object[]> sectors = new ArrayList<Object[]>();
     715        private ArrayList<Object[]> sectors = new ArrayList<>();
    716716
    717717        public int getSectorCount() {
     
    801801        }
    802802
    803         public static final EnumMap<Pat, String> PatSTR = new EnumMap<Pat, String>(Pat.class);
     803        public static final EnumMap<Pat, String> PatSTR = new EnumMap<>(Pat.class);
    804804        static {
    805805                PatSTR.put(Pat.HSTRP, "horizontal");
     
    850850        }
    851851
    852         public static final EnumMap<Top, String> TopSTR = new EnumMap<Top, String>(Top.class);
     852        public static final EnumMap<Top, String> TopSTR = new EnumMap<>(Top.class);
    853853        static {
    854854                TopSTR.put(Top.CYL, "cylinder");
     
    895895        }
    896896
    897         public static final EnumMap<Rtb, String> RtbSTR = new EnumMap<Rtb, String>(Rtb.class);
     897        public static final EnumMap<Rtb, String> RtbSTR = new EnumMap<>(Rtb.class);
    898898        static {
    899899                RtbSTR.put(Rtb.RACON, "racon");
     
    991991        }
    992992
    993         public static final EnumMap<Fog, String> FogSTR = new EnumMap<Fog, String>(Fog.class);
     993        public static final EnumMap<Fog, String> FogSTR = new EnumMap<>(Fog.class);
    994994        static {
    995995                FogSTR.put(Fog.FOGSIG, "yes");
     
    10681068        }
    10691069
    1070         public static final EnumMap<Sts, String> StsSTR = new EnumMap<Sts, String>(Sts.class);
     1070        public static final EnumMap<Sts, String> StsSTR = new EnumMap<>(Sts.class);
    10711071        static {
    10721072                StsSTR.put(Sts.PERM, "permanent");
     
    11041104        }
    11051105
    1106         public static final EnumMap<Cns, String> CnsSTR = new EnumMap<Cns, String>(Cns.class);
     1106        public static final EnumMap<Cns, String> CnsSTR = new EnumMap<>(Cns.class);
    11071107        static {
    11081108                CnsSTR.put(Cns.BRICK, "masonry");
     
    11311131        }
    11321132
    1133         public static final EnumMap<Con, String> ConSTR = new EnumMap<Con, String>(Con.class);
     1133        public static final EnumMap<Con, String> ConSTR = new EnumMap<>(Con.class);
    11341134        static {
    11351135                ConSTR.put(Con.CONSP, "conspicuous");
     
    11641164        }
    11651165
    1166         public static final EnumMap<Fnc, String> FncSTR = new EnumMap<Fnc, String>(Fnc.class);
     1166        public static final EnumMap<Fnc, String> FncSTR = new EnumMap<>(Fnc.class);
    11671167        static {
    11681168                FncSTR.put(Fnc.UNKFNC, "");
Note: See TracChangeset for help on using the changeset viewer.