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

fix possible resource leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java

    r9067 r9639  
    5252    public NTV2GridShiftFile getShiftFile() {
    5353        if (instance == null) {
    54             try (InputStream is = new CachedFile(gridFileName).getInputStream()) {
     54            try (CachedFile cf = new CachedFile(gridFileName); InputStream is = cf.getInputStream()) {
    5555                instance = new NTV2GridShiftFile();
    5656                instance.loadGridShiftFile(is, false);
Note: See TracChangeset for help on using the changeset viewer.