Index: /trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java	(revision 6229)
+++ /trunk/src/org/openstreetmap/josm/actions/AlignInCircleAction.java	(revision 6230)
@@ -38,4 +38,7 @@
 public final class AlignInCircleAction extends JosmAction {
 
+    /**
+     * Constructs a new {@code AlignInCircleAction}.
+     */
     public AlignInCircleAction() {
         super(tr("Align Nodes in Circle"), "aligncircle", tr("Move the selected nodes into a circle."),
@@ -151,6 +154,6 @@
             // First calculate the average point
 
-            BigDecimal east = new BigDecimal(0);
-            BigDecimal north = new BigDecimal(0);
+            BigDecimal east = BigDecimal.ZERO;
+            BigDecimal north = BigDecimal.ZERO;
 
             for (Node n : nodes) {
Index: /trunk/src/org/openstreetmap/josm/tools/Geometry.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/Geometry.java	(revision 6229)
+++ /trunk/src/org/openstreetmap/josm/tools/Geometry.java	(revision 6230)
@@ -654,10 +654,14 @@
     }
 
+    /**
+     * Compute the centroid of nodes
+     * @param nodes Nodes for which the centroid is wanted
+     * @return the centroid of nodes
+     */
     public static EastNorth getCentroid(List<Node> nodes) {
-        // Compute the centroid of nodes
-
-        BigDecimal area = new BigDecimal(0);
-        BigDecimal north = new BigDecimal(0);
-        BigDecimal east = new BigDecimal(0);
+
+        BigDecimal area = BigDecimal.ZERO;
+        BigDecimal north = BigDecimal.ZERO;
+        BigDecimal east = BigDecimal.ZERO;
 
         // See http://en.wikipedia.org/w/index.php?title=Centroid&oldid=294224857#Centroid_of_polygon for the equation used here
