MCPcopy Create free account
hub / github.com/ForOhForError/Yet-Another-Magic-Card-Recognizer / safeClose

Method safeClose

src/Benchmark.java:174–182  ·  view source on GitHub ↗
(OutputStream out)

Source from the content-addressed store, hash-verified

172 // safe close helpers
173
174 private static void safeClose(OutputStream out) {
175 try {
176 if (out != null) {
177 out.close();
178 }
179 } catch (IOException e) {
180 // do nothing
181 }
182 }
183
184 private static void safeClose(FileChannel out) {
185 try {

Callers 5

storeOOMethod · 0.95
storeBDOMethod · 0.95
storeDOMethod · 0.95
storeFCMethod · 0.95
storeFCAltMethod · 0.95

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected