mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 10:20:51 +00:00
22 lines
362 B
Java
22 lines
362 B
Java
// version 8:
|
|
|
|
import lombok.val;
|
|
class ValInLambda {
|
|
Runnable foo = (Runnable) () -> {
|
|
final @val int i = 1;
|
|
};
|
|
ValInLambda() {
|
|
super();
|
|
}
|
|
public void easyLambda() {
|
|
Runnable foo = (Runnable) () -> {
|
|
final @val int i = 1;
|
|
};
|
|
}
|
|
public void easyIntersectionLambda() {
|
|
Runnable foo = (Runnable) () -> {
|
|
final @val int i = 1;
|
|
};
|
|
}
|
|
}
|