Author: j16sdiz
Date: 2008-08-22 08:38:38 +0000 (Fri, 22 Aug 2008)
New Revision: 22087
Modified:
trunk/freenet/src/freenet/support/io/FileUtil.java
Log:
if isr throws, bis/fis will not be closed -- use Closer
Modified: trunk/freenet/src/freenet/support/io/FileUtil.java
===================================================================
--- trunk/freenet/src/freenet/support/io/FileUtil.java 2008-08-22 08:38:18 UTC
(rev 22086)
+++ trunk/freenet/src/freenet/support/io/FileUtil.java 2008-08-22 08:38:38 UTC
(rev 22087)
@@ -104,11 +104,9 @@
}
} finally {
- try {
- if(isr != null) isr.close();
- if(bis != null) bis.close();
- if(fis != null) fis.close();
- } catch (IOException e) {}
+ Closer.close(isr);
+ Closer.close(bis);
+ Closer.close(fis);
}
return result.toString();
}