Ignore:
Timestamp:
2013-04-16T19:57:43+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8570, #7406 - I/O refactorization:

  • Move different file copy functions to Utils.copyFile (to be replaced later by Files.copy when switching to Java 7)
  • Replace all Utils.close(XXX) by Utils.close(Closeable) -> impacted plugins: commandline, mirrored_download, opendata, piclayer
  • Add new Utils.close(ZipFile)
  • Use of Utils.close almost everywhere
  • Javadoc fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java

    r5819 r5874  
    178178            Utils.copyStream(is, baos);
    179179        } finally {
    180             is.close();
     180            Utils.close(is);
    181181        }
    182182
     
    201201            return exception.toString();
    202202        } finally {
    203             br.close();
     203            Utils.close(br);
    204204        }
    205205    }
Note: See TracChangeset for help on using the changeset viewer.