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

Class ExceptionSetMerge

spotbugsTestCases/src/java/ExceptionSetMerge.java:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5// Array types can be merged with exception objects
6
7public class ExceptionSetMerge {
8 public void f(InputStream in) {
9 Object o = new Object[0];
10
11 try {
12 System.out.println(in.read());
13 } catch (IOException e) {
14 o = e;
15 }
16
17 System.out.println(o.hashCode());
18 }
19}
20
21// vim:ts=4

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…