Ignore:
Timestamp:
2010-02-15T09:03:57+01:00 (10 years ago)
Author:
jttt
Message:

Fix some eclipse warnings

Location:
trunk/src/org/openstreetmap/josm/command
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r2844 r2990  
    44import static org.openstreetmap.josm.tools.I18n.marktr;
    55import static org.openstreetmap.josm.tools.I18n.tr;
    6 import static org.openstreetmap.josm.tools.I18n.trn;
    76
    87import java.util.Collection;
     
    10099            if (value == null) {
    101100                switch(OsmPrimitiveType.from(primitive)) {
    102                     case NODE: msg = marktr("Remove \"{0}\" for node ''{1}''"); break;
    103                     case WAY: msg = marktr("Remove \"{0}\" for way ''{1}''"); break;
    104                     case RELATION: msg = marktr("Remove \"{0}\" for relation ''{1}''"); break;
     101                case NODE: msg = marktr("Remove \"{0}\" for node ''{1}''"); break;
     102                case WAY: msg = marktr("Remove \"{0}\" for way ''{1}''"); break;
     103                case RELATION: msg = marktr("Remove \"{0}\" for relation ''{1}''"); break;
    105104                }
    106105                text = tr(msg, key, primitive.getDisplayName(DefaultNameFormatter.getInstance()));
    107106            } else {
    108107                switch(OsmPrimitiveType.from(primitive)) {
    109                     case NODE: msg = marktr("Set {0}={1} for node ''{2}''"); break;
    110                     case WAY: msg = marktr("Set {0}={1} for way ''{2}''"); break;
    111                     case RELATION: msg = marktr("Set {0}={1} for relation ''{2}''"); break;
     108                case NODE: msg = marktr("Set {0}={1} for node ''{2}''"); break;
     109                case WAY: msg = marktr("Set {0}={1} for way ''{2}''"); break;
     110                case RELATION: msg = marktr("Set {0}={1} for relation ''{2}''"); break;
    112111                }
    113112                text = tr(msg, key, value, primitive.getDisplayName(DefaultNameFormatter.getInstance()));
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r2512 r2990  
    22package org.openstreetmap.josm.command;
    33
    4 import static org.openstreetmap.josm.tools.I18n.tr;
    54import static org.openstreetmap.josm.tools.I18n.trn;
    65
  • trunk/src/org/openstreetmap/josm/command/TagConflictResolveCommand.java

    r2512 r2990  
    2525 */
    2626public class TagConflictResolveCommand extends ConflictResolveCommand {
     27    @SuppressWarnings("unused")
    2728    private static final Logger logger = Logger.getLogger(TagConflictResolveCommand.class.getName());
    2829
     
    6465        String msg = "";
    6566        switch(OsmPrimitiveType.from(conflict.getMy())) {
    66             case NODE: msg = marktr("Resolve {0} tag conflicts in node {1}"); break;
    67             case WAY: msg = marktr("Resolve {0} tag conflicts in way {1}"); break;
    68             case RELATION: msg = marktr("Resolve {0} tag conflicts in relation {1}"); break;
     67        case NODE: msg = marktr("Resolve {0} tag conflicts in node {1}"); break;
     68        case WAY: msg = marktr("Resolve {0} tag conflicts in way {1}"); break;
     69        case RELATION: msg = marktr("Resolve {0} tag conflicts in relation {1}"); break;
    6970        }
    7071        return new DefaultMutableTreeNode(
Note: See TracChangeset for help on using the changeset viewer.