Ignore:
Timestamp:
2016-01-26T19:21:58+01:00 (9 years ago)
Author:
stoecker
Message:

fix possible resource leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r9070 r9639  
    7272    private static void initialize() {
    7373        leftHandTrafficPolygons = new ArrayList<>();
    74         try (InputStream is = new CachedFile("resource://data/left-right-hand-traffic.osm").getInputStream()) {
     74        try (CachedFile cf = new CachedFile("resource://data/left-right-hand-traffic.osm");
     75                InputStream is = cf.getInputStream()) {
    7576            DataSet data = OsmReader.parseDataSet(is, null);
    7677            for (Way w : data.getWays()) {
Note: See TracChangeset for help on using the changeset viewer.