Changeset 14775 in josm


Ignore:
Timestamp:
2019-02-09T21:02:50+01:00 (5 years ago)
Author:
GerdP
Message:

fix some new sonar issues

File:
1 edited

Legend:

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

    r14772 r14775  
    250250        Node n = way.getNode(nodePos);
    251251        int oneway = way.isOneway();
    252         if (oneway == 0) {
    253             if ("roundabout".equals(way.get("junction"))) {
    254                 oneway = 1;
    255             }
     252        if (oneway == 0 && "roundabout".equals(way.get("junction"))) {
     253            oneway = 1;
    256254        }
    257255
     
    291289    private static boolean onlySharpAngle(Node common, Node from, Way toWay) {
    292290        int oneway = toWay.isOneway();
    293         if (oneway == 0) {
    294             if ("roundabout".equals(toWay.get("junction"))) {
    295                 oneway = 1;
    296             }
     291        if (oneway == 0 && "roundabout".equals(toWay.get("junction"))) {
     292            oneway = 1;
    297293        }
    298294
Note: See TracChangeset for help on using the changeset viewer.