Ignore:
Timestamp:
2017-07-30T00:22:46+02:00 (7 years ago)
Author:
Don-vip
Message:

PMD - VariableNamingConventions

File:
1 edited

Legend:

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

    r12527 r12537  
    7575     * Remember movements, so the user can later undo it for certain nodes
    7676     */
    77     private static final Map<Node, EastNorth> rememberMovements = new HashMap<>();
     77    private static final Map<Node, EastNorth> REMEMBER_MOVEMENTS = new HashMap<>();
    7878
    7979    /**
     
    108108                    if (!(p instanceof Node)) throw new InvalidUserInputException("selected object is not a node");
    109109                    Node n = (Node) p;
    110                     if (rememberMovements.containsKey(n)) {
    111                         EastNorth tmp = rememberMovements.get(n);
     110                    if (REMEMBER_MOVEMENTS.containsKey(n)) {
     111                        EastNorth tmp = REMEMBER_MOVEMENTS.get(n);
    112112                        commands.add(new MoveCommand(n, -tmp.east(), -tmp.north()));
    113                         rememberMovements.remove(n);
     113                        REMEMBER_MOVEMENTS.remove(n);
    114114                    }
    115115                }
     
    209209        } else {
    210210            if (nodeList.size() == 2 || nodeList.isEmpty()) {
    211                 OrthogonalizeAction.rememberMovements.clear();
     211                REMEMBER_MOVEMENTS.clear();
    212212                final Collection<Command> commands = new LinkedList<>();
    213213
     
    424424                    throw new AssertionError("heading node has changed");
    425425            } else {
    426                 OrthogonalizeAction.rememberMovements.put(n, new EastNorth(dx, dy));
     426                REMEMBER_MOVEMENTS.put(n, new EastNorth(dx, dy));
    427427                commands.add(new MoveCommand(n, dx, dy));
    428428            }
Note: See TracChangeset for help on using the changeset viewer.