in src/main/java/org/apache/creadur/tentacles/IOSystem.java [91:107]
public void close(final Closeable closeable) {
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);
}
}