Index: trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CommonSettingsPanel.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CommonSettingsPanel.java	(revision 14326)
+++ trunk/src/org/openstreetmap/josm/gui/preferences/imagery/CommonSettingsPanel.java	(revision 14327)
@@ -89,5 +89,6 @@
 
         boolean restartRequired = false;
-        restartRequired |= removeCacheFiles(CachedTileLoaderFactory.PROP_TILECACHE_DIR.get(), 1024L * 1024L * ((Integer) this.maxElementsOnDisk.getValue()));
+        restartRequired |= removeCacheFiles(CachedTileLoaderFactory.PROP_TILECACHE_DIR.get(),
+                1024L * 1024L * ((Integer) this.maxElementsOnDisk.getValue()));
 
         if (!AbstractCachedTileSourceLayer.MAX_DISK_CACHE_SIZE.get().equals(this.maxElementsOnDisk.getValue())) {
Index: trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
===================================================================
--- trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java	(revision 14326)
+++ trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java	(revision 14327)
@@ -8,5 +8,4 @@
 import java.awt.Component;
 import java.awt.Font;
-import java.awt.GraphicsEnvironment;
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
@@ -1208,4 +1207,9 @@
     }
 
+    /**
+     * Called in the download dialog to give the plugins a chance to modify the list
+     * of bounding box selectors.
+     * @param downloadSelections list of bounding box selectors
+     */
     public static void addDownloadSelection(List<DownloadSelection> downloadSelections) {
         for (PluginProxy p : pluginList) {
@@ -1214,4 +1218,8 @@
     }
 
+    /**
+     * Returns the list of plugin preference settings.
+     * @return the list of plugin preference settings
+     */
     public static Collection<PreferenceSettingFactory> getPreferenceSetting() {
         Collection<PreferenceSettingFactory> settings = new ArrayList<>();
