blob: 4bf3265bd2dc026c10bdf6ac73e05fd13085ac10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
class ValLambda {
ValLambda() {
super();
}
public void easyLambda() {
final @lombok.val java.lang.Runnable foo = (Runnable) () -> {
};
}
public void easyIntersectionLambda() {
final @lombok.val java.lang.Object foo = (Runnable & java.io.Serializable) () -> {
};
final @lombok.val java.lang.Object bar = (java.io.Serializable & Runnable) () -> {
};
}
public void easyLubLambda() {
final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
} : (Runnable) System.out::println);
}
}
|