Ignore:
Timestamp:
2015-06-21T02:25:56+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: blocks

Location:
trunk/src/org/openstreetmap/josm/actions/mapmode
Files:
3 edited

Legend:

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

    r8510 r8513  
    539539                if (way != null) {
    540540                    int nodeCount = 0;
    541                     for (Node p : way.getNodes())
     541                    for (Node p : way.getNodes()) {
    542542                        if (p.equals(n0)) {
    543543                            nodeCount++;
    544544                        }
     545                    }
    545546                    if (nodeCount > 1) {
    546547                        way = null;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWayAction.java

    r8444 r8513  
    258258            } else if (matchesCurrentModifiers(toggleSelectedModifierCombo)) {
    259259                newCursor = ImageProvider.getCursor("normal", "parallel"); // FIXME
    260             } else {
     260            } else if (Main.isDebugEnabled()) {
    261261                // TODO: set to a cursor indicating an error
     262                Main.debug("TODO: set an error cursor");
    262263            }
    263264            break;
  • trunk/src/org/openstreetmap/josm/actions/mapmode/ParallelWays.java

    r8509 r8513  
    7979                if (sortedNodesPath.get(i+1).getCoor().equals(n.getCoor())) {
    8080                    removedNodes.add(n);
    81                     for (Way w : ways)
     81                    for (Way w : ways) {
    8282                        w.removeNode(n);
     83                    }
    8384                    continue;
    8485                }
Note: See TracChangeset for help on using the changeset viewer.