Ignore:
Timestamp:
2016-06-01T23:17:40+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1854 - Dead stores should be removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r10174 r10308  
    775775     * @param isInner - if true, reverts the direction (for multipolygon islands)
    776776     * @return list of parts, marked with the inside orientation.
    777      * @throws IllegalArgumentException if parts is empty
     777     * @throws IllegalArgumentException if parts is empty or not circular
    778778     */
    779779    private static List<WayInPolygon> markWayInsideSide(List<Way> parts, boolean isInner) {
     
    785785
    786786            if (!parts.get(pos).lastNode().equals(parts.get((pos + 1) % parts.size()).firstNode()))
    787                 throw new RuntimeException("Way not circular");
     787                throw new IllegalArgumentException("Way not circular");
    788788
    789789            nextWayMap.put(parts.get(pos), parts.get((pos + 1) % parts.size()));
     
    818818
    819819        if (topNode.equals(topWay.firstNode()) || topNode.equals(topWay.lastNode())) {
    820             Node headNode = null; // the node at junction
    821             Node prevNode = null; // last node from previous path
    822             wayClockwise = false;
     820            Node headNode; // the node at junction
     821            Node prevNode; // last node from previous path
    823822
    824823            //node is in split point - find the outermost way from this point
Note: See TracChangeset for help on using the changeset viewer.