Ignore:
Timestamp:
2014-05-09T05:21:14+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] see #josm8465 - Java 7 code update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/reverter/src/reverter/OsmServerMultiObjectReader.java

    r29548 r30436  
    1212import org.openstreetmap.josm.io.OsmServerReader;
    1313import org.openstreetmap.josm.io.OsmTransferException;
    14 import org.openstreetmap.josm.tools.Utils;
    1514import org.xml.sax.SAXException;
    1615
     
    3029        sb.append(version);
    3130        progressMonitor.beginTask("", 1);
    32         InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true));
    33         try {
     31        try (InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true))) {
    3432            rdr.addData(in);
    3533        } catch (Exception e) {
     
    3735        } finally {
    3836            progressMonitor.finishTask();
    39             Utils.close(in);
    4037        }
    4138    }
Note: See TracChangeset for help on using the changeset viewer.