Index: trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java	(revision 9497)
+++ trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java	(revision 9498)
@@ -64,14 +64,24 @@
 public final class CustomConfigurator {
 
+    private static StringBuilder summary = new StringBuilder();
+
     private CustomConfigurator() {
         // Hide default constructor for utils classes
     }
 
-    private static StringBuilder summary = new StringBuilder();
-
+    /**
+     * Log a formatted message.
+     * @param fmt format
+     * @param vars arguments
+     * @see String#format
+     */
     public static void log(String fmt, Object... vars) {
         summary.append(String.format(fmt, vars));
     }
 
+    /**
+     * Log a message.
+     * @param s message to log
+     */
     public static void log(String s) {
         summary.append(s);
@@ -79,4 +89,8 @@
     }
 
+    /**
+     * Returns the log.
+     * @return the log
+     */
     public static String getLog() {
         return summary.toString();
@@ -122,5 +136,5 @@
 
     /**
-     * Downloads file to one of JOSM standard folders nad unpack it as ZIP/JAR file
+     * Downloads file to one of JOSM standard folders and unpack it as ZIP/JAR file
      * @param address - URL to download
      * @param path - file path relative to base where to put downloaded file
@@ -223,5 +237,6 @@
         Map<String, Setting<?>> allSettings = Main.pref.getAllSettings();
         for (String key: allSettings.keySet()) {
-            if (key.matches(pattern)) keySet.add(key);
+            if (key.matches(pattern))
+                keySet.add(key);
         }
         exportPreferencesKeysToFile(fileName, append, keySet);
@@ -253,7 +268,7 @@
             Main.warn("Error getting preferences to save:" +ex.getMessage());
         }
-        if (root == null) return;
+        if (root == null)
+            return;
         try {
-
             Element newRoot = exportDocument.createElement("config");
             exportDocument.appendChild(newRoot);
@@ -459,5 +474,5 @@
             try {
                 this.mainPrefs = mainPrefs;
-                CustomConfigurator.summary = new StringBuilder();
+                summary = new StringBuilder();
                 engine = new ScriptEngineManager().getEngineByName("rhino");
                 engine.eval("API={}; API.pref={}; API.fragments={};");
@@ -482,6 +497,5 @@
 
         private void processXML(Document document) {
-            Element root = document.getDocumentElement();
-            processXmlFragment(root);
+            processXmlFragment(document.getDocumentElement());
         }
 
@@ -1027,5 +1041,5 @@
 
         for (Entry<String, List<Collection<String>>> e : listlistMap.entrySet()) {
-            @SuppressWarnings("unchecked")
+            @SuppressWarnings({ "unchecked", "rawtypes" })
             List<List<String>> value = (List) e.getValue();
             tmp.put(e.getKey(), new ListListSetting(value));
@@ -1149,7 +1163,7 @@
             "}\n";
 
-        // Execute conversion script
-        engine.eval(init);
-    }
+            // Execute conversion script
+            engine.eval(init);
+        }
     }
 }
