Index: trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileAnchor.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileAnchor.java	(revision 13757)
+++ trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileAnchor.java	(revision 13758)
@@ -40,4 +40,10 @@
     }
 
+    /**
+     * Constructs a new {@code TileAnchor}.
+     * @param tileOrigin position of the tile origin
+     * @param nextTileOrigin position of the opposite tile corner, i.e. the
+     * origin of the tile with index (x+1,y+1), when current tile has index (x,y)
+     */
     public TileAnchor(IProjected tileOrigin, IProjected nextTileOrigin) {
         this.tileOrigin = new Point2D.Double(tileOrigin.getEast(), tileOrigin.getNorth());
@@ -45,8 +51,17 @@
     }
 
+    /**
+     * Returns the position of the tile origin.
+     * @return the position of the tile origin
+     */
     public Point2D getTileOrigin() {
         return tileOrigin;
     }
 
+    /**
+     * Returns the position of the opposite tile corner.
+     * @return the position of the opposite tile corner, i.e. the
+     * origin of the tile with index (x+1,y+1), when current tile has index (x,y)
+     */
     public Point2D getNextTileOrigin() {
         return nextTileOrigin;
Index: trunk/src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java	(revision 13757)
+++ trunk/src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java	(revision 13758)
@@ -13,4 +13,10 @@
     private final int zoom;
 
+    /**
+     * Constructs a new {@code TilePosition}.
+     * @param x X coordinate
+     * @param y Y coordinate
+     * @param zoom zoom level
+     */
     public TilePosition(int x, int y, int zoom) {
         this.x = x;
Index: trunk/src/org/openstreetmap/josm/gui/layer/imagery/WMTSLayerSelection.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/layer/imagery/WMTSLayerSelection.java	(revision 13757)
+++ trunk/src/org/openstreetmap/josm/gui/layer/imagery/WMTSLayerSelection.java	(revision 13758)
@@ -28,10 +28,9 @@
 
 /**
- *
- * Class for displaying WMTS layer selection panel
- *
+ * Class for displaying WMTS layer selection panel.
+ * @since 13748
  */
 public class WMTSLayerSelection extends JPanel {
-    private final static class AbstractTableModelExtension extends AbstractTableModel {
+    private static final class AbstractTableModelExtension extends AbstractTableModel {
         private final List<Entry<String, List<Layer>>> layers;
 
@@ -160,4 +159,8 @@
     }
 
+    /**
+     * Returns the list of layers.
+     * @return the list of layers
+     */
     public JTable getTable() {
         return list;
Index: trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java	(revision 13757)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java	(revision 13758)
@@ -119,13 +119,11 @@
         }
         return ret;
-
     }
 
     @Override
     protected boolean isImageryValid() {
-        return ((setDefaultLayer.isSelected() && layerTable !=null && layerTable.getSelectedLayer() != null)
+        return ((setDefaultLayer.isSelected() && layerTable != null && layerTable.getSelectedLayer() != null)
                 || !setDefaultLayer.isSelected()
-                ) &&  !getImageryName().isEmpty() && !getImageryRawUrl().isEmpty();
+                ) && !getImageryName().isEmpty() && !getImageryRawUrl().isEmpty();
     }
-
 }
Index: trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java	(revision 13757)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CacheContentsPanel.java	(revision 13758)
@@ -85,4 +85,9 @@
     }
 
+    /**
+     * Returns the cache stats.
+     * @param cache imagery cache
+     * @return the cache stats
+     */
     public static String[][] getCacheStats(CacheAccess<String, BufferedImageCacheEntry> cache) {
         Set<String> keySet = cache.getCacheControl().getKeySet();
