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/gui/preferences/server/ApiUrlTestTask.java

    r5587 r5874  
    216216            return;
    217217        } finally {
    218             if (bin != null) {
    219                 try {
    220                     bin.close();
    221                 } catch(IOException e){/* ignore */}
    222             }
     218            Utils.close(bin);
    223219        }
    224220    }
Note: See TracChangeset for help on using the changeset viewer.