Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/MapillaryLayer.java	(revision 32374)
@@ -47,5 +47,4 @@
 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent;
 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener;
-import org.openstreetmap.josm.gui.layer.OsmDataLayer;
 import org.openstreetmap.josm.plugins.mapillary.cache.CacheUtils;
 import org.openstreetmap.josm.plugins.mapillary.gui.MapillaryFilterDialog;
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/cache/CacheUtils.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/cache/CacheUtils.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/cache/CacheUtils.java	(revision 32374)
@@ -16,5 +16,5 @@
  *
  */
-public class CacheUtils {
+public final class CacheUtils {
 
   private static IgnoreDownload ignoreDownload = new IgnoreDownload();
@@ -28,4 +28,8 @@
     /** Both of them */
     BOTH;
+  }
+
+  private CacheUtils() {
+    // Private constructor to avoid instantiation
   }
 
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryFilterDialog.java	(revision 32374)
@@ -255,9 +255,16 @@
   }
 
+  /**
+   * Destroys the unique instance of the class.
+   */
+  public static synchronized void destroyInstance() {
+    instance = null;
+  }
+
   private class DownloadCheckBoxAction extends AbstractAction {
 
     private static final long serialVersionUID = 4672634002899519496L;
 
-    public DownloadCheckBoxAction() {
+    DownloadCheckBoxAction() {
       putValue(NAME, tr("Downloaded images"));
     }
@@ -273,5 +280,5 @@
     private static final long serialVersionUID = -7417238601979689863L;
 
-    public UpdateAction() {
+    UpdateAction() {
       putValue(NAME, tr("Update"));
     }
@@ -289,5 +296,5 @@
     private static final long serialVersionUID = 1178261778165525040L;
 
-    public ResetAction() {
+    ResetAction() {
       putValue(NAME, tr("Reset"));
     }
@@ -303,5 +310,5 @@
     private static final long serialVersionUID = -2937440338019185723L;
 
-    public OnlySignsAction() {
+    OnlySignsAction() {
       putValue(NAME, tr("Only images with signs"));
     }
@@ -322,5 +329,5 @@
     private static final long serialVersionUID = 8706299665735930148L;
 
-    public SignChooserAction() {
+    SignChooserAction() {
       putValue(NAME, tr("Choose signs"));
     }
@@ -338,10 +345,3 @@
     }
   }
-
-  /**
-   * Destroys the unique instance of the class.
-   */
-  public static synchronized void destroyInstance() {
-    instance = null;
-  }
 }
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryImageDisplay.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryImageDisplay.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryImageDisplay.java	(revision 32374)
@@ -36,10 +36,7 @@
   private static final long serialVersionUID = 3369727203329307716L;
 
-  private static final int DRAG_BUTTON = Main.pref.getInteger(
-      "mapillary.picture-drag-button", 3);
-  private static final int OPTION_BUTTON = Main.pref.getInteger(
-      "mapillary.picture-option-button", 2);
-  private static final int ZOOM_BUTTON = Main.pref.getInteger(
-      "mapillary.picture-zoom-button", 1);
+  private static final int DRAG_BUTTON = Main.pref.getInteger("mapillary.picture-drag-button", 3);
+  private static final int OPTION_BUTTON = Main.pref.getInteger("mapillary.picture-option-button", 2);
+  private static final int ZOOM_BUTTON = Main.pref.getInteger("mapillary.picture-zoom-button", 1);
 
   /** The image currently displayed */
@@ -61,6 +58,5 @@
   protected HyperlinkLabel hyperlink;
 
-  private class ImgDisplayMouseListener implements MouseListener,
-      MouseWheelListener, MouseMotionListener {
+  private class ImgDisplayMouseListener implements MouseListener, MouseWheelListener, MouseMotionListener {
     private boolean mouseIsDragging;
     private long lastTimeForMousePoint;
@@ -431,17 +427,16 @@
   private final Point comp2imgCoord(Rectangle visibleRect, int xComp, int yComp) {
     Rectangle drawRect = calculateDrawImageRectangle(visibleRect);
-    return new Point(visibleRect.x + ((xComp - drawRect.x) * visibleRect.width)
-        / drawRect.width, visibleRect.y
-        + ((yComp - drawRect.y) * visibleRect.height) / drawRect.height);
+    return new Point(
+        visibleRect.x + ((xComp - drawRect.x) * visibleRect.width) / drawRect.width,
+        visibleRect.y + ((yComp - drawRect.y) * visibleRect.height) / drawRect.height
+    );
   }
 
   private static final Point getCenterImgCoord(Rectangle visibleRect) {
-    return new Point(visibleRect.x + visibleRect.width / 2, visibleRect.y
-        + visibleRect.height / 2);
+    return new Point(visibleRect.x + visibleRect.width / 2, visibleRect.y + visibleRect.height / 2);
   }
 
   private Rectangle calculateDrawImageRectangle(Rectangle visibleRect) {
-    return calculateDrawImageRectangle(visibleRect, new Rectangle(0, 0,
-        getSize().width, getSize().height));
+    return calculateDrawImageRectangle(visibleRect, new Rectangle(0, 0, getSize().width, getSize().height));
   }
 
@@ -482,6 +477,6 @@
     Rectangle visibleRect;
     synchronized (this) {
-      image = MapillaryImageDisplay.this.image;
-      visibleRect = MapillaryImageDisplay.this.visibleRect;
+      image = this.image;
+      visibleRect = this.visibleRect;
     }
     if (image == null)
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryMainDialog.java	(revision 32374)
@@ -575,7 +575,9 @@
       this.buttonsPanel = new JPanel(new GridLayout(1, 1));
       if (!buttons.isEmpty() && buttons.get(0) != null) {
-        final JPanel buttonRowPanel = new JPanel(Main.pref.getBoolean(
-                "dialog.align.left", false) ? new FlowLayout(FlowLayout.LEFT)
-                : new GridLayout(1, buttons.size()));
+        final JPanel buttonRowPanel = new JPanel(
+            Main.pref.getBoolean("dialog.align.left", false)
+            ? new FlowLayout(FlowLayout.LEFT)
+            : new GridLayout(1, buttons.size())
+        );
         this.buttonsPanel.add(buttonRowPanel);
         for (SideButton button : buttons) {
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/io/download/MapillaryDownloader.java	(revision 32374)
@@ -184,5 +184,5 @@
   }
 
-  protected static void tooBigErrorDialog() {
+  private static void tooBigErrorDialog() {
     if (SwingUtilities.isEventDispatchThread()) {
       MapillaryLayer.getInstance().tempSemiautomatic = true;
Index: /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtil.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtil.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/utils/ImageUtil.java	(revision 32374)
@@ -136,6 +136,4 @@
     private final byte[] magic = new byte[Math.max(JFIF_MAGIC.length, PNG_MAGIC.length)];
 
-    ImageFileFilter() { }
-
     @Override
     public synchronized boolean accept(File f) {
Index: /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java
===================================================================
--- /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java	(revision 32373)
+++ /applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/TestUtil.java	(revision 32374)
@@ -17,8 +17,5 @@
 
 /**
- *
  * Utilities for tests.
- *
- * @author floscher
  */
 public final class TestUtil {
@@ -35,5 +32,5 @@
    * That is needed e.g. to use {@link MapillaryLayer#getInstance()}
    */
-  public static final synchronized void initPlugin() {
+  public static synchronized void initPlugin() {
     if (!isInitialized) {
       System.setProperty("josm.home", "test/data/preferences");
