in src/main/java/org/apache/creadur/tentacles/IOSystem.java [90:106]
public void close(final Closeable closeable) throws IOException {
if (closeable == null) {
return;
}
try {
if (closeable instanceof Flushable) {
((Flushable) closeable).flush();
}
} catch (final IOException e) {
LOG.trace("Error when trying to flush before closing " + closeable, e);
}
try {
closeable.close();
} catch (final IOException e) {
LOG.trace("Error when trying to close " + closeable, e);
}
}