Ignore:
Timestamp:
2014-04-27T15:35:47+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - use String switch/case where applicable

File:
1 edited

Legend:

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

    r7005 r7012  
    9999    public void visit(Way w) {
    100100        if (w.isUsable()) {
    101             if (w.hasKey("highway") && w.hasKey("junction") && w.get("junction").equals("roundabout")) {
     101            if (w.hasKey("highway") && w.hasKey("junction") && "roundabout".equals(w.get("junction"))) {
    102102                testWrongRoundabout(w);
    103103            }
     
    180180            String highway = w.get("highway");
    181181            if (highway != null) {
    182                 if (highway.equals("footway") || highway.equals("path")) {
     182                if ("footway".equals(highway) || "path".equals(highway)) {
    183183                    handlePedestrianWay(n, w);
    184184                    if (w.hasTag("bicycle", "yes", "designated")) {
    185185                        handleCyclistWay(n, w);
    186186                    }
    187                 } else if (highway.equals("cycleway")) {
     187                } else if ("cycleway".equals(highway)) {
    188188                    handleCyclistWay(n, w);
    189189                    if (w.hasTag("foot", "yes", "designated")) {
Note: See TracChangeset for help on using the changeset viewer.