Ignore:
Timestamp:
2016-09-03T16:52:05+02:00 (9 years ago)
Author:
donvip
Message:

fix some error-prone warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/s57/S57box.java

    r32907 r32909  
    44import java.util.ArrayList;
    55
     6import s57.S57map.AttMap;
    67import s57.S57map.Edge;
    78import s57.S57map.Feature;
     9import s57.S57map.ObjTab;
    810import s57.S57map.Pflag;
     11import s57.S57map.Prim;
    912import s57.S57map.Rflag;
    1013import s57.S57map.Snode;
     
    6770            }
    6871            for (Feature feature : map.features.get(Obj.COALNE)) {
    69                 Feature land = map.new Feature();
     72                Feature land = new Feature();
    7073                land.id = ++map.xref;
    7174                land.type = Obj.LNDARE;
    7275                land.reln = Rflag.MASTER;
    73                 land.objs.put(Obj.LNDARE, map.new ObjTab());
    74                 land.objs.get(Obj.LNDARE).put(0, map.new AttMap());
     76                land.objs.put(Obj.LNDARE, new ObjTab());
     77                land.objs.get(Obj.LNDARE).put(0, new AttMap());
    7578                if (feature.geom.prim == Pflag.AREA) {
    7679                    land.geom = feature.geom;
     
    139142            }
    140143            for (Land land : lands) {
    141                 Edge nedge = map.new Edge();
     144                Edge nedge = new Edge();
    142145                nedge.first = land.last;
    143146                nedge.last = land.first;
     
    166169                }
    167170                map.edges.put(++map.xref, nedge);
    168                 land.land.geom.elems.add(map.new Prim(map.xref));
     171                land.land.geom.elems.add(new Prim(map.xref));
    169172                land.land.geom.comps.get(0).size++;
    170173                land.land.geom.prim = Pflag.AREA;
     
    173176        }
    174177        return;
    175 
    176178    }
    177 
    178179}
Note: See TracChangeset for help on using the changeset viewer.