Ignore:
Timestamp:
2009-07-27T21:09:44+02:00 (17 years ago)
Author:
jttt
Message:

Way refactoring - added method that will in future replace public field nodes

File:
1 edited

Legend:

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

    r1847 r1862  
    144144        List<Node> nodeList = null;
    145145        Object firstTry = actuallyCombineWays(selectedWays, false);
    146         if (firstTry instanceof List) {
     146        if (firstTry instanceof List<?>) {
    147147            nodeList = (List<Node>) firstTry;
    148148        } else {
    149149            Object secondTry = actuallyCombineWays(selectedWays, true);
    150             if (secondTry instanceof List) {
     150            if (secondTry instanceof List<?>) {
    151151                int option = new ExtendedDialog(Main.parent,
    152152                        tr("Change directions?"),
     
    182182        Way newWay = new Way(modifyWay);
    183183
    184         newWay.nodes.clear();
    185         newWay.nodes.addAll(nodeList);
     184        newWay.setNodes(nodeList);
    186185
    187186        // display conflict dialog
Note: See TracChangeset for help on using the changeset viewer.