Ignore:
Timestamp:
2015-06-27T21:43:35+02:00 (10 years ago)
Author:
Don-vip
Message:

fix remaining checkstyle issues

Location:
trunk/src/org/openstreetmap/josm/gui/conflict/tags
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java

    r8510 r8540  
    608608            final Collection<? extends OsmPrimitive> primitives,
    609609            final TagCollection normalizedTags) throws UserCancelException {
    610         String conflicts = Utils.joinAsHtmlUnorderedList(Utils.transform(normalizedTags.getKeysWithMultipleValues(), new Function<String, String>() {
    611 
     610        String conflicts = Utils.joinAsHtmlUnorderedList(Utils.transform(normalizedTags.getKeysWithMultipleValues(),
     611                new Function<String, String>() {
    612612            @Override
    613613            public String apply(String key) {
    614                 return tr("{0} ({1})", key, Utils.join(tr(", "), Utils.transform(normalizedTags.getValues(key), new Function<String, String>() {
    615 
     614                return tr("{0} ({1})", key, Utils.join(tr(", "), Utils.transform(normalizedTags.getValues(key),
     615                        new Function<String, String>() {
    616616                    @Override
    617617                    public String apply(String x) {
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellEditor.java

    r8512 r8540  
    9191            @Override
    9292            public void processKeyEvent(KeyEvent e) {
    93                 if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ENTER) {
     93                int keyCode = e.getKeyCode();
     94                if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_ENTER) {
    9495                    fireGotoNextDecision();
    95                 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_TAB) {
     96                } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_TAB) {
    9697                    if (e.isShiftDown()) {
    9798                        fireGotoPreviousDecision();
     
    99100                        fireGotoNextDecision();
    100101                    }
    101                 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_DELETE || e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
     102                } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_DELETE || keyCode == KeyEvent.VK_BACK_SPACE) {
    102103                    if (editorModel.getIndexOf(MultiValueDecisionType.KEEP_NONE) > 0) {
    103104                        editorModel.setSelectedItem(MultiValueDecisionType.KEEP_NONE);
    104105                        fireGotoNextDecision();
    105106                    }
    106                 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ESCAPE) {
     107                } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_ESCAPE) {
    107108                    cancelCellEditing();
    108109                }
Note: See TracChangeset for help on using the changeset viewer.