aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
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/before
parent67441a074f351da80b074c00e7981627b1918c9c (diff)
downloadlombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.tar.gz
lombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.tar.bz2
lombok-a899ffcbca7d7d9e3d616659d12a843fe02da6f6.zip
[val]. more test cases
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/ValInLambda.java7
-rw-r--r--test/transform/resource/before/ValLambda.java8
2 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValInLambda.java b/test/transform/resource/before/ValInLambda.java
index 2c2a5942..a5364f8e 100644
--- a/test/transform/resource/before/ValInLambda.java
+++ b/test/transform/resource/before/ValInLambda.java
@@ -5,6 +5,7 @@ import lombok.val;
class ValInLambda {
Runnable foo = (Runnable) () -> {
val i = 1;
+ lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
};
public void easyLambda() {
@@ -18,4 +19,10 @@ class ValInLambda {
val i = 1;
};
}
+
+ public void easyLubLambda() {
+ Runnable foo = (Runnable) () -> {
+ lombok.val fooInner = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
+ };
+ }
}
diff --git a/test/transform/resource/before/ValLambda.java b/test/transform/resource/before/ValLambda.java
index 5d40f220..64b9cbe8 100644
--- a/test/transform/resource/before/ValLambda.java
+++ b/test/transform/resource/before/ValLambda.java
@@ -1,5 +1,13 @@
// version 8:
class ValLambda {
+
+ static {
+ lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
+ }
+ {
+ lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
+ }
+
public void easyLambda() {
lombok.val foo = (Runnable)()-> {};
}