Index: /trunk/src/org/openstreetmap/josm/data/imagery/LayerDetails.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/imagery/LayerDetails.java	(revision 13742)
+++ /trunk/src/org/openstreetmap/josm/data/imagery/LayerDetails.java	(revision 13743)
@@ -53,5 +53,5 @@
         }
         ret.addAll(crs);
-        return crs;
+        return ret;
     }
 
Index: /trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java	(revision 13742)
+++ /trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java	(revision 13743)
@@ -37,4 +37,6 @@
 import org.openstreetmap.josm.tools.Utils;
 
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+
 /**
  * Class bridging TMS requests to JCS cache requests
@@ -65,4 +67,5 @@
      * @param downloadExecutor that will be executing the jobs
      */
+    @SuppressFBWarnings(value = "JLM_JSR166_UTILCONCURRENT_MONITORENTER")
     public TMSCachedTileLoaderJob(TileLoaderListener listener, Tile tile,
             ICacheAccess<String, BufferedImageCacheEntry> cache,
Index: /trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java	(revision 13742)
+++ /trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMTSLayerPanel.java	(revision 13743)
@@ -76,5 +76,5 @@
                 layerPanel.add(scrollPane, GBC.eol().fill());
                 layerPanel.revalidate();
-            } catch (Exception ex) {
+            } catch (IOException | WMTSGetCapabilitiesException ex) {
                 JOptionPane.showMessageDialog(
                         getParent(),
Index: /trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java	(revision 13742)
+++ /trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java	(revision 13743)
@@ -354,5 +354,4 @@
                     switch(qName) {
                     case "type":
-                        ImageryType.values();
                         boolean found = false;
                         for (ImageryType type : ImageryType.values()) {
@@ -524,5 +523,5 @@
                     break;
                 case "minimum-tile-expire":
-                    entry.setMinimumTileExpire(Integer.valueOf(accumulator.toString()));
+                    entry.setMinimumTileExpire(Integer.parseInt(accumulator.toString()));
                     break;
                 default: // Do nothing
Index: /trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java	(revision 13742)
+++ /trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java	(revision 13743)
@@ -574,5 +574,5 @@
         }
         if (conv != null) {
-            new Bounds(
+            return new Bounds(
                     conv.eastNorth2latlon(new EastNorth(getDecimalDegree(minx), getDecimalDegree(miny))),
                     conv.eastNorth2latlon(new EastNorth(getDecimalDegree(maxx), getDecimalDegree(maxy)))
