java closeQuietly

seyon(25)
Published in
#java
Words
25
Reading
1 min
9y
Listen to this post
~1 min

public static void closeQuietly(Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
closeable = null;
} catch (IOException ex) {
}
}
}

java closeQuietly | Ecency