Ignore:
Timestamp:
2017-04-06T23:02:57+02:00 (8 years ago)
Author:
donvip
Message:

fix warnings

Location:
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java

    r32775 r33215  
    155155        map.name = name;
    156156        for (int i = 0; i < ele.length; i++) {
    157             map.colorList.add(map.new ColorMapEntry(colors[i], ele[i]));
     157            map.colorList.add(new ColorMapEntry(colors[i], ele[i]));
    158158        }
    159159
     
    165165    }
    166166
    167     class ColorMapEntry implements Comparable<ColorMapEntry> {
     167    static class ColorMapEntry implements Comparable<ColorMapEntry> {
    168168        private final int ele; // limit
    169169        private final Color color;
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationMapMode.java

    r32775 r33215  
    77
    88import org.openstreetmap.josm.actions.mapmode.MapMode;
    9 import org.openstreetmap.josm.gui.MapFrame;
    109
    1110/**
     
    1918    private static final long serialVersionUID = -1011179566962655639L;
    2019
    21     public ElevationMapMode(String name, MapFrame mapFrame) {
     20    public ElevationMapMode(String name) {
    2221        super(name,
    2322                "elevation.png",
    2423                tr("Shows elevation profile"),
    25                 mapFrame,
    2624                Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    2725    }
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java

    r32775 r33215  
    4848
    4949        if (newFrame != null) {
    50             ElevationMapMode eleMode = new ElevationMapMode("Elevation profile", newFrame);
     50            ElevationMapMode eleMode = new ElevationMapMode("Elevation profile");
    5151            newFrame.addMapMode(new IconToggleButton(eleMode));
    5252            ElevationProfileDialog eleProfileDlg = new ElevationProfileDialog();
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java

    r32775 r33215  
    163163     */
    164164    public double getEle() {
    165 
    166165        return avrgEle;
    167166    }
     
    170169    public String toString() {
    171170        return "EleVertex [avrgEle=" + avrgEle + ", area=" + area + ", points="
    172                 + Arrays.toString(points) + "]";
    173     }
    174 
    175     class TriangleEdge implements Comparable<TriangleEdge> {
     171                + Arrays.toString(points) + ']';
     172    }
     173
     174    static class TriangleEdge implements Comparable<TriangleEdge> {
    176175        private final int i;
    177176        private final int j;
Note: See TracChangeset for help on using the changeset viewer.