Ignore:
Timestamp:
2014-05-01T02:34:43+02:00 (12 years ago)
Author:
Don-vip
Message:

see #8465 - global use of try-with-resources, according to

File:
1 edited

Legend:

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

    r6882 r7033  
    7575     * @throws IOException
    7676     */
     77    @SuppressWarnings("resource")
    7778    public static InputStream getUncompressedFileInputStream(File file) throws IOException {
    7879        return byExtension(file.getName()).getUncompressedInputStream(new FileInputStream(file));
     
    114115     * @throws IOException
    115116     */
     117    @SuppressWarnings("resource")
    116118    public static OutputStream getCompressedFileOutputStream(File file) throws IOException {
    117119        return byExtension(file.getName()).getCompressedOutputStream(new FileOutputStream(file));
Note: See TracChangeset for help on using the changeset viewer.