Ignore:
Timestamp:
2010-11-25T09:45:38+01:00 (13 years ago)
Author:
bastiK
Message:

adapt coding style (to some degree); there shouldn't be any semantic changes in this commit

File:
1 edited

Legend:

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

    r3669 r3671  
    2727public class UnclosedWays extends Test {
    2828    /** The already detected errors */
    29     Bag<Way, Way> _errorWays;
     29    protected Bag<Way, Way> errorWays;
    3030
    3131    /**
     
    3939    public void startTest(ProgressMonitor monitor) {
    4040        super.startTest(monitor);
    41         _errorWays = new Bag<Way, Way>();
     41        errorWays = new Bag<Way, Way>();
    4242    }
    4343
    4444    @Override
    4545    public void endTest() {
    46         _errorWays = null;
     46        errorWays = null;
    4747        super.endTest();
    4848    }
     
    7474
    7575        test = w.get("natural");
    76         if (test != null && !"coastline".equals(test) && !"cliff".equals(test))
     76        if (test != null && !"coastline".equals(test) && !"cliff".equals(test)) {
    7777            set(1101, marktr("natural type {0}"), test);
     78        }
    7879        test = w.get("landuse");
    79         if (test != null)
     80        if (test != null) {
    8081            set(1102, marktr("landuse type {0}"), test);
     82        }
    8183        test = w.get("amenities");
    82         if (test != null)
     84        if (test != null) {
    8385            set(1103, marktr("amenities type {0}"), test);
     86        }
    8487        test = w.get("sport");
    85         if (test != null && !test.equals("water_slide"))
     88        if (test != null && !test.equals("water_slide")) {
    8689            set(1104, marktr("sport type {0}"), test);
     90        }
    8791        test = w.get("tourism");
    88         if (test != null)
     92        if (test != null) {
    8993            set(1105, marktr("tourism type {0}"), test);
     94        }
    9095        test = w.get("shop");
    91         if (test != null)
     96        if (test != null) {
    9297            set(1106, marktr("shop type {0}"), test);
     98        }
    9399        test = w.get("leisure");
    94         if (test != null)
     100        if (test != null) {
    95101            set(1107, marktr("leisure type {0}"), test);
     102        }
    96103        test = w.get("waterway");
    97         if (test != null && test.equals("riverbank"))
     104        if (test != null && test.equals("riverbank")) {
    98105            set(1108, marktr("waterway type {0}"), test);
     106        }
    99107        Boolean btest = OsmUtils.getOsmBoolean(w.get("building"));
    100         if (btest != null && btest)
     108        if (btest != null && btest) {
    101109            set(1120, marktr("building"));
     110        }
    102111        btest = OsmUtils.getOsmBoolean(w.get("area"));
    103         if (btest != null && btest)
     112        if (btest != null && btest) {
    104113            set(1130, marktr("area"));
     114        }
    105115
    106116        if (type != null && !w.isClosed()) {
     
    123133            errors.add(new TestError(this, Severity.WARNING, tr("Unclosed way"),
    124134                            type, etype, mode, primitives, highlight));
    125             _errorWays.add(w, w);
     135            errorWays.add(w, w);
    126136        }
    127137    }
Note: See TracChangeset for help on using the changeset viewer.