Changeset 16890 in josm


Ignore:
Timestamp:
2020-08-14T21:13:20+02:00 (4 years ago)
Author:
simon04
Message:

see #19633 - PMD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/RelationNodeMap.java

    r16886 r16890  
    203203    // looped back to our first circular node)
    204204    private boolean checkIfEndOfLoopReached(Node n) {
    205         if (map.nodes.containsKey(n)
    206                 || (onewayMap.nodes.containsKey(n) && onewayMap.nodes.get(n).size() > 1))
    207             return true;
    208         if (firstCircular != null && firstCircular == n)
    209             return true;
    210         return false;
     205        return map.nodes.containsKey(n)
     206                || onewayMap.nodes.containsKey(n) && onewayMap.nodes.get(n).size() > 1
     207                || firstCircular != null && firstCircular == n;
    211208    }
    212209
Note: See TracChangeset for help on using the changeset viewer.