Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
class
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
close
Method · 0.65
hashCode
Method · 0.45
Tested by
no test coverage detected