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/S57map.java

    r32907 r32909  
    1818    // CHECKSTYLE.OFF: LineLength
    1919
    20     public class MapBounds {
     20    public static class MapBounds {
    2121        public double minlat;
    2222        public double minlon;
     
    3939    }
    4040
    41     public class Snode {    // All coordinates in map
     41    public static class Snode {    // All coordinates in map
    4242        public double lat;    // Latitude in radians
    4343        public double lon;    // Longitude in radians
     
    7474    }
    7575
    76     public class Edge {        // A polyline segment
     76    public static class Edge {        // A polyline segment
    7777        public long first;    // First CONN node
    7878        public long last;        // Last CONN node
     
    9090    }
    9191
    92     public class Reln {
     92    public static class Reln {
    9393        public long id;
    9494        public Rflag reln;
     
    9999    }
    100100
    101     public class RelTab extends ArrayList<Reln> {
     101    public static class RelTab extends ArrayList<Reln> {
    102102        public RelTab() {
    103103            super();
     
    105105    }
    106106
    107     public class ObjTab extends HashMap<Integer, AttMap> {
     107    public static class ObjTab extends HashMap<Integer, AttMap> {
    108108        public ObjTab() {
    109109            super();
     
    111111    }
    112112
    113     public class ObjMap extends EnumMap<Obj, ObjTab> {
     113    public static class ObjMap extends EnumMap<Obj, ObjTab> {
    114114        public ObjMap() {
    115115            super(Obj.class);
     
    117117    }
    118118
    119     public class AttMap extends HashMap<Att, AttVal<?>> {
     119    public static class AttMap extends HashMap<Att, AttVal<?>> {
    120120        public AttMap() {
    121121            super();
     
    123123    }
    124124
    125     public class NodeTab extends HashMap<Long, Snode> {
     125    public static class NodeTab extends HashMap<Long, Snode> {
    126126        public NodeTab() {
    127127            super();
     
    129129    }
    130130
    131     public class EdgeTab extends HashMap<Long, Edge> {
     131    public static class EdgeTab extends HashMap<Long, Edge> {
    132132        public EdgeTab() {
    133133            super();
     
    135135    }
    136136
    137     public class FtrMap extends EnumMap<Obj, ArrayList<Feature>> {
     137    public static class FtrMap extends EnumMap<Obj, ArrayList<Feature>> {
    138138        public FtrMap() {
    139139            super(Obj.class);
     
    141141    }
    142142
    143     public class FtrTab extends HashMap<Long, Feature> {
     143    public static class FtrTab extends HashMap<Long, Feature> {
    144144        public FtrTab() {
    145145            super();
     
    147147    }
    148148
    149     public class Prim {                // Spatial element
     149    public static class Prim {                // Spatial element
    150150        public long id;                    // Snode ID for POINTs, Edge ID for LINEs & AREAs)
    151151        public boolean forward;    // Direction of vector used (LINEs & AREAs)
     
    173173    }
    174174
    175     public class Comp {            // Composite spatial element
     175    public static class Comp {            // Composite spatial element
    176176        public long ref;            // ID of Comp
    177177        public int size;            // Number of Prims in this Comp
     
    186186    }
    187187
    188     public class Geom {                            // Geometric structure of feature
     188    public static class Geom {                            // Geometric structure of feature
    189189        public Pflag prim;                        // Geometry type
    190190        public ArrayList<Prim> elems;    // Ordered list of elements
     
    206206    }
    207207
    208     public class Feature {
     208    public static class Feature {
    209209        public long id;                // Ref for this feature
    210210        public Rflag reln;        // Relationship status
Note: See TracChangeset for help on using the changeset viewer.