blob: 70dc9b28d7740a98293e9f273bd44711a0827fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package test2;
import java.util.HashMap;
@SuppressWarnings("rawtypes")
class HashMapWrapper extends HashMap {
/** default serialVersionUID */
private static final long serialVersionUID = 1L;
HashMapWrapper(int size, int args) {
super(size);
}
}
@SuppressWarnings({"rawtypes","unused"})
public class NewExprInTry {
public int run() {
return foo(6);
}
public int foo(int size) {
HashMap h;
try {
h = new HashMap(size);
}
catch (Exception e) {}
return 1;
}
}
|