aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorBulgakov Alexander <buls@yandex.ru>2019-05-25 00:15:09 +0300
committerBulgakov Alexander <buls@yandex.ru>2019-05-25 00:15:09 +0300
commita899ffcbca7d7d9e3d616659d12a843fe02da6f6 (patch)
treefe7967b06a2e1eabdcfdda912bd221a51b440d6f /test/transform/resource/after-ecj
parent67441a074f351da80b074c00e7981627b1918c9c (diff)
downloadlombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.tar.gz
lombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.tar.bz2
lombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.zip
[val]. more test cases
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/ValInLambda.java10
-rw-r--r--test/transform/resource/after-ecj/ValLambda.java10
2 files changed, 18 insertions, 2 deletions
diff --git a/test/transform/resource/after-ecj/ValInLambda.java b/test/transform/resource/after-ecj/ValInLambda.java
index 7669789b..0fac61e9 100644
--- a/test/transform/resource/after-ecj/ValInLambda.java
+++ b/test/transform/resource/after-ecj/ValInLambda.java
@@ -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();
@@ -18,4 +18,10 @@ class ValInLambda {
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);
+};
+ }
}
diff --git a/test/transform/resource/after-ecj/ValLambda.java b/test/transform/resource/after-ecj/ValLambda.java
index fcb855b3..5b52869f 100644
--- a/test/transform/resource/after-ecj/ValLambda.java
+++ b/test/transform/resource/after-ecj/ValLambda.java
@@ -1,4 +1,14 @@
class ValLambda {
+ static {
+ final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
+} : System.out::println);
+ }
+ {
+ final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
+} : System.out::println);
+ }
+ <clinit>() {
+ }
ValLambda() {
super();
}