mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 06:21:53 +00:00
28 lines
566 B
Java
28 lines
566 B
Java
import java.util.*;
|
|
import lombok.val;
|
|
public class ValAnonymousSubclassWithGenerics {
|
|
Object object = new Object() {
|
|
x() {
|
|
super();
|
|
}
|
|
void foo() {
|
|
final @val int j = 1;
|
|
}
|
|
};
|
|
java.util.List<String> names = new java.util.ArrayList<String>() {
|
|
x() {
|
|
super();
|
|
}
|
|
public String get(int i) {
|
|
final @val java.lang.String result = super.get(i);
|
|
return result;
|
|
}
|
|
};
|
|
public ValAnonymousSubclassWithGenerics() {
|
|
super();
|
|
}
|
|
void bar() {
|
|
final @val int k = super.hashCode();
|
|
int x = k;
|
|
}
|
|
} |