Index: trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 13536)
+++ trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java	(revision 13537)
@@ -918,9 +918,10 @@
 
     /**
-     * Return the sorted list of activated Imagery IDs
+     * Return the sorted list of activated Imagery IDs.
+     * @return sorted list of activated Imagery IDs
      * @since 13536
      */
-    static public Collection<String> getActiveIds() {
-        ArrayList<String> ids = new ArrayList<String>();
+    public static Collection<String> getActiveIds() {
+        ArrayList<String> ids = new ArrayList<>();
         IPreferences pref = Config.getPref();
         if (pref != null) {
@@ -929,5 +930,5 @@
             if (entries != null) {
                 for (ImageryPreferenceEntry prefEntry : entries) {
-                    if(prefEntry.id != null && prefEntry.id.length() != 0)
+                    if (prefEntry.id != null && !prefEntry.id.isEmpty())
                         ids.add(prefEntry.id);
                 }
@@ -937,5 +938,5 @@
         return ids;
     }
-    
+
     /**
      * Returns a tool tip text for display.
@@ -1258,5 +1259,5 @@
     /**
      * Returns the overlay indication.
-     * @return <code>true</code> if it is and overlay.
+     * @return <code>true</code> if it is an overlay.
      * @since 13536
      */
Index: trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java	(revision 13536)
+++ trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java	(revision 13537)
@@ -225,5 +225,5 @@
                 idMap.put(i.getId(), i);
                 Collection<String> old = i.getOldIds();
-                if(old != null) {
+                if (old != null) {
                     for (String id : old) {
                         if (idMap.containsKey(id)) {
Index: trunk/src/org/openstreetmap/josm/io/CachedFile.java
===================================================================
--- trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 13536)
+++ trunk/src/org/openstreetmap/josm/io/CachedFile.java	(revision 13537)
@@ -184,5 +184,5 @@
 
     public String getName() {
-        if(parameter != null)
+        if (parameter != null)
             return name.replaceAll("%<(.*)>", "");
         return name;
@@ -478,13 +478,13 @@
         }
 
-        if(parameter != null) {
+        if (parameter != null) {
             String u = url.toExternalForm();
             String uc;
-            if("".equals(parameter)) {
+            if (parameter.isEmpty()) {
                 uc = u.replaceAll("%<(.*)>", "");
             } else {
                 uc = u.replaceAll("%<(.*)>", "$1"+parameter);
             }
-            if(!uc.equals(u))
+            if (!uc.equals(u))
                 url = new URL(uc);
         }
