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

Fix some eclipse warnings

Location:
trunk/src/org/openstreetmap/josm/data
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/APIDataSet.java

    r2979 r2990  
    330330     */
    331331    private class RelationUploadDependencyGraph {
     332        @SuppressWarnings("unused")
    332333        private final Logger logger = Logger.getLogger(RelationUploadDependencyGraph.class.getName());
    333334        private HashMap<Relation, Set<Relation>> children;
  • trunk/src/org/openstreetmap/josm/data/coor/LatLon.java

    r2891 r2990  
    88import static java.lang.Math.sqrt;
    99import static java.lang.Math.toRadians;
    10 import static org.openstreetmap.josm.tools.I18n.tr;
    1110import static org.openstreetmap.josm.tools.I18n.trc;
    1211
  • trunk/src/org/openstreetmap/josm/data/osm/ChangesetCache.java

    r2986 r2990  
    3535 */
    3636public class ChangesetCache implements PreferenceChangedListener{
     37    @SuppressWarnings("unused")
    3738    static private final Logger logger = Logger.getLogger(ChangesetCache.class.getName());
    3839
  • trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java

    r2985 r2990  
    9494            case WAY: candidates  =targetDataSet.getWays(); break;
    9595            case RELATION: candidates = targetDataSet.getRelations(); break;
     96            default: throw new AssertionError();
    9697            }
    9798            for (OsmPrimitive target : candidates) {
     
    127128        case WAY: target = source.isNew() ? new Way() : new Way(source.getId()); break;
    128129        case RELATION: target = source.isNew() ? new Relation() : new Relation(source.getId()); break;
     130        default: throw new AssertionError();
    129131        }
    130132        target.mergeFrom(source);
  • trunk/src/org/openstreetmap/josm/data/osm/TagCollection.java

    r2845 r2990  
    640640    public TagCollection intersect(TagCollection other) {
    641641        if (other == null) {
    642             new TagCollection();
     642            other = new TagCollection();
    643643        }
    644644        TagCollection ret = new TagCollection(this);
  • trunk/src/org/openstreetmap/josm/data/osm/history/HistoryRelation.java

    r2845 r2990  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.osm.history;
    3 
    4 import static org.openstreetmap.josm.tools.I18n.tr;
    53
    64import java.text.MessageFormat;
  • trunk/src/org/openstreetmap/josm/data/projection/NTV2SubGrid.java

    r2507 r2990  
    2020package org.openstreetmap.josm.data.projection;
    2121
     22import java.io.IOException;
    2223import java.io.InputStream;
    23 import java.io.IOException;
    2424import java.io.Serializable;
    2525
     
    3434 */
    3535public class NTV2SubGrid implements Cloneable, Serializable {
    36 
    37     private static final int REC_SIZE = 16;
    3836
    3937    private String subGridName;
Note: See TracChangeset for help on using the changeset viewer.