Index: trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
===================================================================
--- trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java	(revision 13067)
+++ trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java	(revision 13068)
@@ -601,5 +601,5 @@
         // Dataset retrieving allows to call this code without relying on Main.getCurrentDataSet(), thus, on a mapview instance
         if (!areas.isEmpty()) {
-            ds = areas.iterator().next().getOuterWay().getDataSet();
+            ds = areas.get(0).getOuterWay().getDataSet();
         }
 
Index: trunk/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java	(revision 13067)
+++ trunk/src/org/openstreetmap/josm/gui/bugreport/JosmUpdatePanel.java	(revision 13068)
@@ -61,7 +61,6 @@
 
     private static int getTestedVersion() {
-        try {
-            CachedFile testedVersion = new CachedFile(Main.getJOSMWebsite() + "/tested");
-            testedVersion.setMaxAge(60 * 15); // 15 Minutes
+        try (CachedFile testedVersion = new CachedFile(Main.getJOSMWebsite() + "/tested")) {
+            testedVersion.setMaxAge(60L * 15); // 15 Minutes
             String testedString = new String(testedVersion.getByteContent(), StandardCharsets.ISO_8859_1);
             return Integer.parseInt(testedString.trim());
