MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / writeFile

Method writeFile

spotbugsTestCases/src/java/CloseStream.java:7–12  ·  view source on GitHub ↗
(File f, Object o)

Source from the content-addressed store, hash-verified

5
6class CloseStream {
7 public static void writeFile(File f, Object o) throws IOException {
8
9 OutputStream out = new FileOutputStream(f);
10 int i = o.hashCode();
11 out.close();
12 }
13
14}

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
hashCodeMethod · 0.45

Tested by

no test coverage detected