Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: OW2 Util 1.0.19
-
Component/s: None
-
Labels:None
-
Global Rank:202
Description
When closing or flushing a file, a stream, the same old actions are always done:
if (object != null) {
try {
object.close();
} catch {
// Ignored
}
}
Having a convenience method could simplify the code dealing with close and flush.
Proposed methods signatures:
FileUtils.close(Closeable... closeables);
FileUtils.close(Flusheable... flusheables);
WDYT ?
Added in trunk