mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
[val]. more test cases
This commit is contained in:
1 parent
67441a074f
commit
a899ffcbca
7 files changed
+58
-6
No files matched your search
@@ -1,9 +1,9 @@
|
||||
// version 8:
|
||||
|
||||
import lombok.val;
|
||||
class ValInLambda {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final @val int i = 1;
|
||||
final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
|
||||
} : System.out::println);
|
||||
};
|
||||
ValInLambda() {
|
||||
super();
|
||||
@@ -16,6 +16,12 @@ class ValInLambda {
|
||||
public void easyIntersectionLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final @val int i = 1;
|
||||
};
|
||||
}
|
||||
public void easyLubLambda() {
|
||||
Runnable foo = (Runnable) () -> {
|
||||
final @lombok.val java.lang.Runnable fooInner = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
|
||||
} : System.out::println);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user