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

Method simpleObviousBug

spotbugsTestCases/src/java/OpenStream.java:18–22  ·  view source on GitHub ↗
(String f)

Source from the content-addressed store, hash-verified

16 public OutputStream os;
17
18 @ExpectWarning("OBL_UNSATISFIED_OBLIGATION,OS_OPEN_STREAM")
19 int simpleObviousBug(String f) throws IOException {
20 FileInputStream in = new FileInputStream(f);
21 return in.read();
22 }
23
24
25 public static void main(String[] argv) throws Exception {

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected