Index: /trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java	(revision 14658)
+++ /trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java	(revision 14659)
@@ -7,9 +7,7 @@
 import java.awt.event.ActionEvent;
 import java.awt.event.KeyEvent;
-import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
-import java.util.Comparator;
 import java.util.LinkedList;
 import java.util.List;
@@ -103,5 +101,5 @@
      * Class designed to create a couple between a node and its angle relative to the center of the circle.
      */
-    private static class PolarNode {
+    private static class PolarNode implements Comparable<PolarNode> {
         private final double a;
         private final Node node;
@@ -111,15 +109,8 @@
             this.node = n;
         }
-    }
-
-    /**
-     * Comparator used to order PolarNode relative to their angle.
-     */
-    private static class PolarNodeComparator implements Comparator<PolarNode>, Serializable {
-        private static final long serialVersionUID = 1L;
 
         @Override
-        public int compare(PolarNode pc1, PolarNode pc2) {
-            return Double.compare(pc1.a, pc2.a);
+        public int compareTo(PolarNode o) {
+            return Double.compare(a, o.a);
         }
     }
