Removed specific dependency on method signature that depended on SLF4J
This commit is contained in:
parent
f0923fb201
commit
a6c6cebd39
@ -42,21 +42,6 @@ class IO {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Convenient close for a Closeable.
|
|
||||||
*/
|
|
||||||
@SuppressWarnings("Duplicates")
|
|
||||||
public static
|
|
||||||
void close(final Closeable closeable, final org.slf4j.Logger logger) {
|
|
||||||
if (closeable != null) {
|
|
||||||
try {
|
|
||||||
closeable.close();
|
|
||||||
} catch (IOException e) {
|
|
||||||
logger.error("Error closing: {}", closeable, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenient close for a Closeable.
|
* Convenient close for a Closeable.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user