blob: 25a9e0ce221468567ebc139232b5614059e8de29 (
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;
}
};
}
|