Ignore:
Timestamp:
2016-05-30T01:17:28+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - Performance - Method passes constant String of length 1 to character overridden method + add unit tests/javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java

    r10254 r10300  
    812812            Shortcut sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask);
    813813            if (sc != null) {
    814                 lines.add(sc.getKeyText() + " " + tr("to apply first suggestion"));
    815             }
    816             lines.add(KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+'+'+KeyEvent.getKeyText(KeyEvent.VK_ENTER) + " "
     814                lines.add(sc.getKeyText() + ' ' + tr("to apply first suggestion"));
     815            }
     816            lines.add(KeyEvent.getKeyModifiersText(KeyEvent.SHIFT_MASK)+'+'+KeyEvent.getKeyText(KeyEvent.VK_ENTER) + ' '
    817817                    +tr("to add without closing the dialog"));
    818818            sc = Shortcut.findShortcut(KeyEvent.VK_1, commandDownMask | KeyEvent.SHIFT_DOWN_MASK);
    819819            if (sc != null) {
    820                 lines.add(sc.getKeyText() + " " + tr("to add first suggestion without closing the dialog"));
     820                lines.add(sc.getKeyText() + ' ' + tr("to add first suggestion without closing the dialog"));
    821821            }
    822822            final JLabel helpLabel = new JLabel("<html>" + Utils.join("<br>", lines) + "</html>");
Note: See TracChangeset for help on using the changeset viewer.