☰
Debian Codegraph
@
3.2.0+ds-4
/
/
framework
/
tests
/
all-systems
/
Throw.java
☽
☼
framework/tests/all-systems/Throw.java
code
plain
raw
GPL-2.0-with-classpath-exception
2004-2020 Checker Framework developers; 2004-2020 Michael Ernst <
[email protected]
>; 2004-2020 Werner M. Dietl <
[email protected]
>; 2004-2020 Suzanne Millstein <
[email protected]
>
debian/copyright
1
import java.util.List;
2
3
class Throw {
4
<E extends Exception> void throwTypeVar(E ex) {
5
try {
6
throw ex;
7
} catch (Exception e) {
8
}
9
}
10
11
void throwWildcard(List<? extends Exception> list) {
12
try {
13
throw list.get(0);
14
} catch (Exception e) {
15
16
}
17
}
18
}