Index: /trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/PurgeAction.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/actions/PurgeAction.java	(revision 11277)
@@ -58,4 +58,23 @@
 public class PurgeAction extends JosmAction {
 
+    protected transient OsmDataLayer layer;
+    protected JCheckBox cbClearUndoRedo;
+    protected boolean modified;
+
+    protected transient Set<OsmPrimitive> toPurge;
+    /**
+     * finally, contains all objects that are purged
+     */
+    protected transient Set<OsmPrimitive> toPurgeChecked;
+    /**
+     * Subset of toPurgeChecked. Marks primitives that remain in the
+     * dataset, but incomplete.
+     */
+    protected transient Set<OsmPrimitive> makeIncomplete;
+    /**
+     * Subset of toPurgeChecked. Those that have not been in the selection.
+     */
+    protected transient List<OsmPrimitive> toPurgeAdditionally;
+
     /**
      * Constructs a new {@code PurgeAction}.
@@ -69,23 +88,4 @@
         putValue("help", HelpUtil.ht("/Action/Purge"));
     }
-
-    protected transient OsmDataLayer layer;
-    protected JCheckBox cbClearUndoRedo;
-    protected boolean modified;
-
-    protected transient Set<OsmPrimitive> toPurge;
-    /**
-     * finally, contains all objects that are purged
-     */
-    protected transient Set<OsmPrimitive> toPurgeChecked;
-    /**
-     * Subset of toPurgeChecked. Marks primitives that remain in the
-     * dataset, but incomplete.
-     */
-    protected transient Set<OsmPrimitive> makeIncomplete;
-    /**
-     * Subset of toPurgeChecked. Those that have not been in the selection.
-     */
-    protected transient List<OsmPrimitive> toPurgeAdditionally;
 
     @Override
Index: /trunk/src/org/openstreetmap/josm/data/imagery/WMTSDefaultLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/imagery/WMTSDefaultLayer.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/data/imagery/WMTSDefaultLayer.java	(revision 11277)
@@ -2,7 +2,16 @@
 package org.openstreetmap.josm.data.imagery;
 
+/**
+ * WMTS default layer.
+ * @since 11257
+ */
 public class WMTSDefaultLayer extends DefaultLayer {
-    String tileMatrixSet;
+    private final String tileMatrixSet;
 
+    /**
+     * Constructs a new {@code WMTSDefaultLayer}.
+     * @param layerName layer name
+     * @param tileMatrixSet tile matrix set
+     */
     public WMTSDefaultLayer(String layerName, String tileMatrixSet) {
         super(layerName);
@@ -10,4 +19,8 @@
     }
 
+    /**
+     * Returns the tile matrix set.
+     * @return the tile matrix set
+     */
     public String getTileMatrixSet() {
         return tileMatrixSet;
Index: /trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java	(revision 11277)
@@ -271,5 +271,5 @@
      */
     public DefaultLayer userSelectLayer() {
-        Collection<Entry<String, List<Layer>>> grouppedLayers = groupLayersByName(layers);;
+        Collection<Entry<String, List<Layer>>> grouppedLayers = groupLayersByName(layers);
 
         // if there is only one layer name no point in asking
Index: /trunk/src/org/openstreetmap/josm/data/osm/BBox.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/data/osm/BBox.java	(revision 11277)
@@ -26,5 +26,7 @@
      * Constructs a new (invalid) BBox
      */
-    public BBox() { }
+    public BBox() {
+        // Nothing to do
+    }
 
     /**
Index: /trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java	(revision 11277)
@@ -473,5 +473,5 @@
         private QBLevel<T> currentNode;
         private int contentIndex;
-        private Iterator<T> invalidBBoxIterator = invalidBBoxPrimitives.iterator();
+        private final Iterator<T> invalidBBoxIterator = invalidBBoxPrimitives.iterator();
         boolean fromInvalidBBoxPrimitives;
         QuadBuckets<T> qb;
Index: /trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java	(revision 11277)
@@ -56,11 +56,11 @@
  */
 public class DownloadDialog extends JDialog {
-    private static IntegerProperty DOWNLOAD_TAB = new IntegerProperty("download.tab", 0);
-
-    private static BooleanProperty DOWNLOAD_AUTORUN = new BooleanProperty("download.autorun", false);
-    private static BooleanProperty DOWNLOAD_OSM = new BooleanProperty("download.osm", true);
-    private static BooleanProperty DOWNLOAD_GPS = new BooleanProperty("download.gps", false);
-    private static BooleanProperty DOWNLOAD_NOTES = new BooleanProperty("download.notes", false);
-    private static BooleanProperty DOWNLOAD_NEWLAYER = new BooleanProperty("download.newlayer", false);
+    private static final IntegerProperty DOWNLOAD_TAB = new IntegerProperty("download.tab", 0);
+
+    private static final BooleanProperty DOWNLOAD_AUTORUN = new BooleanProperty("download.autorun", false);
+    private static final BooleanProperty DOWNLOAD_OSM = new BooleanProperty("download.osm", true);
+    private static final BooleanProperty DOWNLOAD_GPS = new BooleanProperty("download.gps", false);
+    private static final BooleanProperty DOWNLOAD_NOTES = new BooleanProperty("download.notes", false);
+    private static final BooleanProperty DOWNLOAD_NEWLAYER = new BooleanProperty("download.newlayer", false);
 
     /** the unique instance of the download dialog */
Index: /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java	(revision 11277)
@@ -357,6 +357,6 @@
         data.addDataSetListener(MultipolygonCache.getInstance());
         DataSet.addSelectionListener(this);
-        if (name != null && name.startsWith(createLayerName(""))
-                && Character.isDigit((name.substring(createLayerName("").length()) + "XX" /*avoid StringIndexOutOfBoundsException*/).charAt(1))) {
+        if (name != null && name.startsWith(createLayerName("")) && Character.isDigit(
+                (name.substring(createLayerName("").length()) + "XX" /*avoid StringIndexOutOfBoundsException*/).charAt(1))) {
             while (AlphanumComparator.getInstance().compare(createLayerName(dataLayerCounter), name) < 0) {
                 final int i = dataLayerCounter.incrementAndGet();
Index: /trunk/src/org/openstreetmap/josm/tools/DefaultGeoProperty.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/DefaultGeoProperty.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/tools/DefaultGeoProperty.java	(revision 11277)
@@ -40,5 +40,5 @@
     public Boolean get(BBox box) {
         Area abox = new Area(box.toRectangle());
-        Geometry.PolygonIntersection is = Geometry.polygonIntersection(abox, area, 1e-10 /* using deg and not meters */ );
+        Geometry.PolygonIntersection is = Geometry.polygonIntersection(abox, area, 1e-10 /* using deg and not meters */);
         switch (is) {
             case FIRST_INSIDE_SECOND:
Index: /trunk/src/org/openstreetmap/josm/tools/HttpClient.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/HttpClient.java	(revision 11276)
+++ /trunk/src/org/openstreetmap/josm/tools/HttpClient.java	(revision 11277)
@@ -191,5 +191,5 @@
         private boolean uncompress;
         private boolean uncompressAccordingToContentDisposition;
-        private String responseData = null;
+        private String responseData;
 
         private Response(HttpURLConnection connection, ProgressMonitor monitor) throws IOException {
