Index: trunk/src/org/openstreetmap/josm/data/Version.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Version.java	(revision 9406)
+++ trunk/src/org/openstreetmap/josm/data/Version.java	(revision 9407)
@@ -58,5 +58,4 @@
         try {
             properties.load(revisionInfo);
-            revisionInfo.close();
         } catch (IOException e) {
             Main.warn(tr("Error reading revision info from revision file: {0}", e.getMessage()));
@@ -111,12 +110,15 @@
      */
     public void init() {
-        InputStream stream = Main.class.getResourceAsStream("/REVISION");
-        if (stream == null) {
-            Main.warn(tr("The revision file ''/REVISION'' is missing."));
-            version = 0;
-            releaseDescription = "";
-            return;
-        }
-        initFromRevisionInfo(stream);
+        try (InputStream stream = Main.class.getResourceAsStream("/REVISION")) {
+            if (stream == null) {
+                Main.warn(tr("The revision file ''/REVISION'' is missing."));
+                version = 0;
+                releaseDescription = "";
+                return;
+            }
+            initFromRevisionInfo(stream);
+        } catch (IOException e) {
+            Main.warn(e);
+        }
     }
 
