Ignore:
Timestamp:
2015-05-11T13:34:53+02:00 (11 years ago)
Author:
Don-vip
Message:

squid:S00116 - Field names should comply with a naming convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r8285 r8346  
    137137    private Set<MyWaySegment> ways;
    138138    private QuadBuckets<Node> endnodes; // nodes at end of way
    139     private QuadBuckets<Node> endnodes_highway; // nodes at end of way
     139    private QuadBuckets<Node> endnodesHighway; // nodes at end of way
    140140    private QuadBuckets<Node> middlenodes; // nodes in middle of way
    141141    private Set<Node> othernodes; // nodes appearing at least twice
     
    159159        ways = new HashSet<>();
    160160        endnodes = new QuadBuckets<>();
    161         endnodes_highway = new QuadBuckets<>();
     161        endnodesHighway = new QuadBuckets<>();
    162162        middlenodes = new QuadBuckets<>();
    163163        othernodes = new HashSet<>();
     
    176176                }
    177177                for (Node en : s.nearbyNodes(mindist)) {
    178                     if (en == null || !s.highway || !endnodes_highway.contains(en)) {
     178                    if (en == null || !s.highway || !endnodesHighway.contains(en)) {
    179179                        continue;
    180180                    }
     
    209209                    continue;
    210210                }
    211                 if (endnodes_highway.contains(en) && !s.highway && !s.w.concernsArea()) {
     211                if (endnodesHighway.contains(en) && !s.highway && !s.w.concernsArea()) {
    212212                    map.put(en, s.w);
    213213                } else if (endnodes.contains(en) && !s.w.concernsArea()) {
     
    278278        ways = null;
    279279        endnodes = null;
    280         endnodes_highway = null;
     280        endnodesHighway = null;
    281281        middlenodes = null;
    282282        othernodes = null;
     
    389389            nearbyNodeCache = null;
    390390            List<LatLon> bounds = this.getBounds(dist);
    391             List<Node> found_nodes = endnodes_highway.search(new BBox(bounds.get(0), bounds.get(1)));
     391            List<Node> found_nodes = endnodesHighway.search(new BBox(bounds.get(0), bounds.get(1)));
    392392            found_nodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1))));
    393393
     
    448448            QuadBuckets<Node> set = endnodes;
    449449            if (w.hasKey("highway") || w.hasKey("railway")) {
    450                 set = endnodes_highway;
     450                set = endnodesHighway;
    451451            }
    452452            addNode(w.firstNode(), set);
     
    458458        boolean m = middlenodes.contains(n);
    459459        boolean e = endnodes.contains(n);
    460         boolean eh = endnodes_highway.contains(n);
     460        boolean eh = endnodesHighway.contains(n);
    461461        boolean o = othernodes.contains(n);
    462462        if (!m && !e && !o && !eh) {
     
    467467                endnodes.remove(n);
    468468            } else if (eh) {
    469                 endnodes_highway.remove(n);
     469                endnodesHighway.remove(n);
    470470            } else {
    471471                middlenodes.remove(n);
Note: See TracChangeset for help on using the changeset viewer.