Ignore:
Timestamp:
2016-06-24T02:19:11+02:00 (9 years ago)
Author:
donvip
Message:

use diamond operator

Location:
applications/editors/josm/plugins/seachart/src/symbols
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/symbols/Beacons.java

    r30894 r32393  
    182182        }
    183183       
    184         public static final EnumMap<BcnSHP, Symbol> Shapes = new EnumMap<BcnSHP, Symbol>(BcnSHP.class);
     184        public static final EnumMap<BcnSHP, Symbol> Shapes = new EnumMap<>(BcnSHP.class);
    185185        static {
    186186                Shapes.put(BcnSHP.BCN_UNKN, Beacons.Beacon); Shapes.put(BcnSHP.BCN_STAK, Beacons.Stake); Shapes.put(BcnSHP.BCN_TOWR, Beacons.Tower);
  • applications/editors/josm/plugins/seachart/src/symbols/Buoys.java

    r30894 r32393  
    249249        }
    250250       
    251         public static final EnumMap<BoySHP, Symbol> Shapes = new EnumMap<BoySHP, Symbol>(BoySHP.class);
     251        public static final EnumMap<BoySHP, Symbol> Shapes = new EnumMap<>(BoySHP.class);
    252252        static {
    253253                Shapes.put(BoySHP.BOY_UNKN, Buoys.Pillar); Shapes.put(BoySHP.BOY_CONE, Buoys.Cone); Shapes.put(BoySHP.BOY_CAN, Buoys.Can);
  • applications/editors/josm/plugins/seachart/src/symbols/Facilities.java

    r30894 r32393  
    191191        }
    192192
    193         public static final EnumMap<CatSCF, Symbol> Cats = new EnumMap<CatSCF, Symbol>(CatSCF.class);
     193        public static final EnumMap<CatSCF, Symbol> Cats = new EnumMap<>(CatSCF.class);
    194194        static {
    195195                Cats.put(CatSCF.SCF_BHST, Boatlift); Cats.put(CatSCF.SCF_BTYD, Boatyard); Cats.put(CatSCF.SCF_CHDR, Chandler); Cats.put(CatSCF.SCF_FUEL, Fuel); Cats.put(CatSCF.SCF_LAUN, Laundrette);
  • applications/editors/josm/plugins/seachart/src/symbols/Landmarks.java

    r32095 r32393  
    187187        }
    188188       
    189         public static final EnumMap<CatLMK, Symbol> Shapes = new EnumMap<CatLMK, Symbol>(CatLMK.class);
     189        public static final EnumMap<CatLMK, Symbol> Shapes = new EnumMap<>(CatLMK.class);
    190190        static {
    191191                Shapes.put(CatLMK.LMK_CARN, Beacons.Cairn); Shapes.put(CatLMK.LMK_CHMY, Landmarks.Chimney);
     
    198198        }
    199199
    200         public static final EnumMap<FncFNC, Symbol> Funcs = new EnumMap<FncFNC, Symbol>(FncFNC.class);
     200        public static final EnumMap<FncFNC, Symbol> Funcs = new EnumMap<>(FncFNC.class);
    201201        static {
    202202                Funcs.put(FncFNC.FNC_CHCH, Landmarks.Church); Funcs.put(FncFNC.FNC_CHPL, Landmarks.Church); Funcs.put(FncFNC.FNC_TMPL, Landmarks.Temple);
  • applications/editors/josm/plugins/seachart/src/symbols/Notices.java

    r32380 r32393  
    10601060        }
    10611061
    1062         public static final EnumMap<CatNMK, Symbol> NmkCevni = new EnumMap<CatNMK, Symbol>(CatNMK.class);
     1062        public static final EnumMap<CatNMK, Symbol> NmkCevni = new EnumMap<>(CatNMK.class);
    10631063        static {
    10641064                NmkCevni.put(CatNMK.NMK_UNKN, Notice); NmkCevni.put(CatNMK.NMK_NENT, NoticeA1); NmkCevni.put(CatNMK.NMK_CLSA, NoticeA1a); NmkCevni.put(CatNMK.NMK_NOVK, NoticeA2);
     
    13101310                NoticeBoptl.add(new Instr(Form.PGON, p));
    13111311        }
    1312         public static final EnumMap<CatNMK, Symbol> NmkBniwr = new EnumMap<CatNMK, Symbol>(CatNMK.class);
     1312        public static final EnumMap<CatNMK, Symbol> NmkBniwr = new EnumMap<>(CatNMK.class);
    13131313        static {
    13141314                NmkBniwr.put(CatNMK.NMK_NANK, NoticeBnank); NmkBniwr.put(CatNMK.NMK_LMHR, NoticeBlmhr); NmkBniwr.put(CatNMK.NMK_OPTR, NoticeBoptr); NmkBniwr.put(CatNMK.NMK_OPTL, NoticeBoptl);
     
    15021502        }
    15031503
    1504         public static final EnumMap<CatNMK, Symbol> NmkPpwbcl = new EnumMap<CatNMK, Symbol>(CatNMK.class);
     1504        public static final EnumMap<CatNMK, Symbol> NmkPpwbcl = new EnumMap<>(CatNMK.class);
    15051505        static {
    15061506                NmkPpwbcl.put(CatNMK.NMK_WRAL, NoticePwralL); NmkPpwbcl.put(CatNMK.NMK_WLAR, NoticePwlarL); NmkPpwbcl.put(CatNMK.NMK_KTPM, NoticePktmL); NmkPpwbcl.put(CatNMK.NMK_KTSM, NoticePktmL);
     
    15081508        }
    15091509       
    1510         public static final EnumMap<CatNMK, Symbol> NmkPpwbcr = new EnumMap<CatNMK, Symbol>(CatNMK.class);
     1510        public static final EnumMap<CatNMK, Symbol> NmkPpwbcr = new EnumMap<>(CatNMK.class);
    15111511        static {
    15121512                NmkPpwbcr.put(CatNMK.NMK_WRAL, NoticePwralR); NmkPpwbcr.put(CatNMK.NMK_WLAR, NoticePwlarR); NmkPpwbcr.put(CatNMK.NMK_KTPM, NoticePktmR); NmkPpwbcr.put(CatNMK.NMK_KTSM, NoticePktmR);
     
    15141514        }
    15151515       
    1516         public static final EnumMap<CatNMK, Symbol> NmkRiwr = new EnumMap<CatNMK, Symbol>(CatNMK.class);
     1516        public static final EnumMap<CatNMK, Symbol> NmkRiwr = new EnumMap<>(CatNMK.class);
    15171517        static {
    15181518                NmkRiwr.put(CatNMK.NMK_NPAS, NoticeRnpas); NmkRiwr.put(CatNMK.NMK_NANK, NoticeRnank); NmkRiwr.put(CatNMK.NMK_NWSH, NoticeRnwsh); NmkRiwr.put(CatNMK.NMK_LMHR, NoticeRlmhr); NmkRiwr.put(CatNMK.NMK_TRNA, NoticeRtrna);
     
    15211521       
    15221522        public static Scheme getScheme(MarSYS sys, BnkWTW bank) {
    1523                 ArrayList<Color> colours = new ArrayList<Color>();
     1523                ArrayList<Color> colours = new ArrayList<>();
    15241524                Scheme scheme = new Scheme(colours);
    15251525                switch (sys) {
  • applications/editors/josm/plugins/seachart/src/symbols/Symbols.java

    r32380 r32393  
    6969
    7070                public Scheme(ArrayList<Color> icol) {
    71                         pat = new ArrayList<Patt>();
     71                        pat = new ArrayList<>();
    7272                        col = icol;
    7373                }
     
    7777                }
    7878                public Scheme(Color icol) {
    79                         pat = new ArrayList<Patt>();
    80                         col = new ArrayList<Color>();
     79                        pat = new ArrayList<>();
     80                        col = new ArrayList<>();
    8181                        col.add(icol);
    8282                }
    8383                public Scheme() {
    84                         pat = new ArrayList<Patt>();
    85                         col = new ArrayList<Color>();
     84                        pat = new ArrayList<>();
     85                        col = new ArrayList<>();
    8686                }
    8787        }
  • applications/editors/josm/plugins/seachart/src/symbols/Topmarks.java

    r32380 r32393  
    475475        }
    476476       
    477         public static final EnumMap<TopSHP, Symbol> Shapes = new EnumMap<TopSHP, Symbol>(TopSHP.class);
     477        public static final EnumMap<TopSHP, Symbol> Shapes = new EnumMap<>(TopSHP.class);
    478478        static {
    479479                Shapes.put(TopSHP.TOP_BESM, TopBesom); Shapes.put(TopSHP.TOP_IBESM, TopIBesom); Shapes.put(TopSHP.TOP_BORD, TopBoard); Shapes.put(TopSHP.TOP_CAN, TopCan);
     
    489489        }
    490490
    491         public static final EnumMap<BoySHP, Delta> BuoyDeltas = new EnumMap<BoySHP, Delta>(BoySHP.class);
     491        public static final EnumMap<BoySHP, Delta> BuoyDeltas = new EnumMap<>(BoySHP.class);
    492492        static {
    493493                BuoyDeltas.put(BoySHP.BOY_PILR, new Delta(Handle.BC, new AffineTransform(0.948324, 0.317305, -0.3173047, 0.948324, 31.5, -95.0)));
Note: See TracChangeset for help on using the changeset viewer.