Index: /trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/actions/ShowStatusReportAction.java	(revision 17793)
@@ -130,5 +130,5 @@
 
         for (String name : Arrays.asList("LANG", "LC_ALL")) {
-            String value = Utils.getSystemEnv(name);
+            String value = getSystemEnv(name);
             if (value != null) {
                 text.format("Environment variable %s: %s%n", name, value);
@@ -136,5 +136,5 @@
         }
         for (String name : Arrays.asList("file.encoding", "sun.jnu.encoding")) {
-            String value = Utils.getSystemProperty(name);
+            String value = getSystemProperty(name);
             if (value != null) {
                 text.format("System property %s: %s%n", name, value);
Index: /trunk/src/org/openstreetmap/josm/gui/MainApplication.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/MainApplication.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/gui/MainApplication.java	(revision 17793)
@@ -370,5 +370,6 @@
      */
     public static void askUpdateJava(String updVersion, String url, String eolDate, boolean major) {
-        StringBuilder content = new StringBuilder(tr("You are running version {0} of Java.",
+        StringBuilder content = new StringBuilder(256);
+        content.append(tr("You are running version {0} of Java.",
                 "<b>"+getSystemProperty("java.version")+"</b>")).append("<br><br>");
         if ("Sun Microsystems Inc.".equals(getSystemProperty("java.vendor")) && !PlatformManager.getPlatform().isOpenJDK()) {
Index: /trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java	(revision 17793)
@@ -1013,5 +1013,4 @@
     public void zoomBestFitOrOne() {
         ImageEntry entry;
-        ImageEntry oldEntry;
         Image image;
         VisRect visibleRect;
Index: /trunk/src/org/openstreetmap/josm/gui/mappaint/DividedScale.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/mappaint/DividedScale.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/gui/mappaint/DividedScale.java	(revision 17793)
@@ -156,5 +156,5 @@
      */
     public void consistencyTest() {
-        if (ranges.size() < 1) throw new AssertionError(ranges);
+        if (ranges.isEmpty()) throw new AssertionError(ranges);
         if (data.isEmpty()) throw new AssertionError(data);
         if (ranges.size() != data.size()) throw new AssertionError();
Index: /trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginListPanel.java	(revision 17793)
@@ -10,5 +10,4 @@
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
-import java.util.Collections;
 import java.util.HashSet;
 import java.util.List;
@@ -44,5 +43,5 @@
 
     /** Whether the plugin list has been built up already in the UI. */
-    private boolean pluginListInitialized = false;
+    private boolean pluginListInitialized;
 
     /**
Index: /trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java	(revision 17792)
+++ /trunk/src/org/openstreetmap/josm/gui/tagging/presets/items/Text.java	(revision 17793)
@@ -239,5 +239,5 @@
     }
 
-    public void setValue_template(String pattern) throws SAXException {
+    public void setValue_template(String pattern) throws SAXException { // NOPMD
         try {
             this.valueTemplate = new TemplateParser(pattern).parse();
@@ -250,5 +250,5 @@
     private void setupListeners(AutoCompletingTextField textField, TaggingPresetItemGuiSupport support) {
         textField.getDocument().addDocumentListener(DocumentAdapter.create(ignore ->
-                support.fireItemValueModified(Text.this, key, textField.getText())));
+                support.fireItemValueModified(this, key, textField.getText())));
 
         if (valueTemplate != null) {
