Index: /trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java	(revision 11110)
+++ /trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java	(revision 11111)
@@ -2,5 +2,4 @@
 package org.openstreetmap.josm.data.validation.tests;
 
-import static org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.FixCommand.evaluateObject;
 import static org.openstreetmap.josm.tools.I18n.tr;
 
@@ -717,8 +716,8 @@
     public synchronized ParseResult addMapCSS(String url) throws ParseException, IOException {
         CheckParameterUtil.ensureParameterNotNull(url, "url");
-        CachedFile cache = new CachedFile(url);
-        InputStream zip = cache.findZipEntryInputStream("validator.mapcss", "");
         ParseResult result;
-        try (InputStream s = zip != null ? zip : cache.getInputStream()) {
+        try (CachedFile cache = new CachedFile(url);
+             InputStream zip = cache.findZipEntryInputStream("validator.mapcss", "");
+             InputStream s = zip != null ? zip : cache.getInputStream()) {
             result = TagCheck.readMapCSS(new BufferedReader(UTFInputStreamReader.create(s)));
             checks.remove(url);
@@ -730,6 +729,4 @@
                 }
             }
-        } finally {
-            cache.close();
         }
         return result;
