Ignore:
Timestamp:
2016-07-30T13:01:26+02:00 (3 years ago)
Author:
Don-vip
Message:

see #12472 - fix "OperatorPrecedence" warnings

File:
1 edited

Legend:

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

    r10662 r10678  
    692692            int posn0 = selectedWay.getNodes().indexOf(currentNode);
    693693            // CHECKSTYLE.OFF: SingleSpaceSeparator
    694             if (posn0 != -1 && // n0 is part of way
    695                (posn0 >= 1                             && targetNode.equals(selectedWay.getNode(posn0-1))) || // previous node
    696                (posn0 < selectedWay.getNodesCount()-1) && targetNode.equals(selectedWay.getNode(posn0+1))) {  // next node
     694            if ((posn0 != -1 && // n0 is part of way
     695                (posn0 >= 1                            && targetNode.equals(selectedWay.getNode(posn0-1)))) || // previous node
     696                (posn0 < selectedWay.getNodesCount()-1 && targetNode.equals(selectedWay.getNode(posn0+1)))) {  // next node
    697697                getLayerManager().getEditDataSet().setSelected(targetNode);
    698698                lastUsedNode = targetNode;
Note: See TracChangeset for help on using the changeset viewer.