Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java	(revision 33214)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java	(revision 33215)
@@ -155,5 +155,5 @@
         map.name = name;
         for (int i = 0; i < ele.length; i++) {
-            map.colorList.add(map.new ColorMapEntry(colors[i], ele[i]));
+            map.colorList.add(new ColorMapEntry(colors[i], ele[i]));
         }
 
@@ -165,5 +165,5 @@
     }
 
-    class ColorMapEntry implements Comparable<ColorMapEntry> {
+    static class ColorMapEntry implements Comparable<ColorMapEntry> {
         private final int ele; // limit
         private final Color color;
Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationMapMode.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationMapMode.java	(revision 33214)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationMapMode.java	(revision 33215)
@@ -7,5 +7,4 @@
 
 import org.openstreetmap.josm.actions.mapmode.MapMode;
-import org.openstreetmap.josm.gui.MapFrame;
 
 /**
@@ -19,9 +18,8 @@
     private static final long serialVersionUID = -1011179566962655639L;
 
-    public ElevationMapMode(String name, MapFrame mapFrame) {
+    public ElevationMapMode(String name) {
         super(name,
                 "elevation.png",
                 tr("Shows elevation profile"),
-                mapFrame,
                 Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
     }
Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 33214)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java	(revision 33215)
@@ -48,5 +48,5 @@
 
         if (newFrame != null) {
-            ElevationMapMode eleMode = new ElevationMapMode("Elevation profile", newFrame);
+            ElevationMapMode eleMode = new ElevationMapMode("Elevation profile");
             newFrame.addMapMode(new IconToggleButton(eleMode));
             ElevationProfileDialog eleProfileDlg = new ElevationProfileDialog();
Index: /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java
===================================================================
--- /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java	(revision 33214)
+++ /applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java	(revision 33215)
@@ -163,5 +163,4 @@
      */
     public double getEle() {
-
         return avrgEle;
     }
@@ -170,8 +169,8 @@
     public String toString() {
         return "EleVertex [avrgEle=" + avrgEle + ", area=" + area + ", points="
-                + Arrays.toString(points) + "]";
-    }
-
-    class TriangleEdge implements Comparable<TriangleEdge> {
+                + Arrays.toString(points) + ']';
+    }
+
+    static class TriangleEdge implements Comparable<TriangleEdge> {
         private final int i;
         private final int j;
