Ignore:
Timestamp:
2016-06-15T10:30:37+02:00 (8 years ago)
Author:
Don-vip
Message:

Checkstyle 6.19: enable SingleSpaceSeparator and fix violations

File:
1 edited

Legend:

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

    r9067 r10378  
    3434    private static String calltosupermustbefirststatementinconstructortext(Direction dir) {
    3535        String directiontext;
    36         if        (dir == Direction.UP)  {
     36        if (dir == Direction.UP) {
    3737            directiontext = tr("up");
    38         } else if (dir == Direction.DOWN)  {
     38        } else if (dir == Direction.DOWN) {
    3939            directiontext = tr("down");
    40         } else if (dir == Direction.LEFT)  {
     40        } else if (dir == Direction.LEFT) {
    4141            directiontext = tr("left");
    4242        } else {
     
    4949    private static Shortcut calltosupermustbefirststatementinconstructor(Direction dir) {
    5050        Shortcut sc;
    51         if        (dir == Direction.UP)   {
    52             sc = Shortcut.registerShortcut("core:moveup",    tr("Move objects {0}", tr("up")), KeyEvent.VK_UP,    Shortcut.SHIFT);
    53         } else if (dir == Direction.DOWN)  {
    54             sc = Shortcut.registerShortcut("core:movedown",  tr("Move objects {0}", tr("down")), KeyEvent.VK_DOWN,  Shortcut.SHIFT);
    55         } else if (dir == Direction.LEFT)  {
    56             sc = Shortcut.registerShortcut("core:moveleft",  tr("Move objects {0}", tr("left")), KeyEvent.VK_LEFT,  Shortcut.SHIFT);
     51        // CHECKSTYLE.OFF: SingleSpaceSeparator
     52        if (dir == Direction.UP) {
     53            sc = Shortcut.registerShortcut("core:moveup",    tr("Move objects {0}", tr("up")),    KeyEvent.VK_UP,    Shortcut.SHIFT);
     54        } else if (dir == Direction.DOWN) {
     55            sc = Shortcut.registerShortcut("core:movedown",  tr("Move objects {0}", tr("down")),  KeyEvent.VK_DOWN,  Shortcut.SHIFT);
     56        } else if (dir == Direction.LEFT) {
     57            sc = Shortcut.registerShortcut("core:moveleft",  tr("Move objects {0}", tr("left")),  KeyEvent.VK_LEFT,  Shortcut.SHIFT);
    5758        } else { //dir == Direction.RIGHT
    5859            sc = Shortcut.registerShortcut("core:moveright", tr("Move objects {0}", tr("right")), KeyEvent.VK_RIGHT, Shortcut.SHIFT);
    5960        }
     61        // CHECKSTYLE.ON: SingleSpaceSeparator
    6062        return sc;
    6163    }
     
    7173        myDirection = dir;
    7274        putValue("help", ht("/Action/Move"));
    73         if        (dir == Direction.UP)  {
     75        if (dir == Direction.UP) {
    7476            putValue("toolbar", "action/move/up");
    75         } else if (dir == Direction.DOWN)  {
     77        } else if (dir == Direction.DOWN) {
    7678            putValue("toolbar", "action/move/down");
    77         } else if (dir == Direction.LEFT)  {
     79        } else if (dir == Direction.LEFT) {
    7880            putValue("toolbar", "action/move/left");
    7981        } else { //dir == Direction.RIGHT
Note: See TracChangeset for help on using the changeset viewer.