blob: 07093e5a2e1c34ee73df3583b651addf6bb18181 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import java.util.*;
public class ValAnonymousSubclassWithGenerics {
Object object = new Object() {
void foo() {
final int j = 1;
}
};
void bar() {
final int k = super.hashCode();
int x = k;
}
java.util.List<String> names = new java.util.ArrayList<String>() {
public String get(int i) {
final java.lang.String result = super.get(i);
return result;
}
};
}
|