Changeset 11111 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-10-09T23:25:02+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java
r11087 r11111 2 2 package org.openstreetmap.josm.data.validation.tests; 3 3 4 import static org.openstreetmap.josm.data.validation.tests.MapCSSTagChecker.FixCommand.evaluateObject;5 4 import static org.openstreetmap.josm.tools.I18n.tr; 6 5 … … 717 716 public synchronized ParseResult addMapCSS(String url) throws ParseException, IOException { 718 717 CheckParameterUtil.ensureParameterNotNull(url, "url"); 719 CachedFile cache = new CachedFile(url);720 InputStream zip = cache.findZipEntryInputStream("validator.mapcss", "");721 718 ParseResult result; 722 try (InputStream s = zip != null ? zip : cache.getInputStream()) { 719 try (CachedFile cache = new CachedFile(url); 720 InputStream zip = cache.findZipEntryInputStream("validator.mapcss", ""); 721 InputStream s = zip != null ? zip : cache.getInputStream()) { 723 722 result = TagCheck.readMapCSS(new BufferedReader(UTFInputStreamReader.create(s))); 724 723 checks.remove(url); … … 730 729 } 731 730 } 732 } finally {733 cache.close();734 731 } 735 732 return result;
Note:
See TracChangeset
for help on using the changeset viewer.