diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-05-25 00:15:09 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-05-25 00:15:09 +0300 |
commit | a899ffcbca7d7d9e3d616659d12a843fe02da6f6 (patch) | |
tree | fe7967b06a2e1eabdcfdda912bd221a51b440d6f /test/transform/resource/before | |
parent | 67441a074f351da80b074c00e7981627b1918c9c (diff) | |
download | lombok-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.java | 7 | ||||
-rw-r--r-- | test/transform/resource/before/ValLambda.java | 8 |
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)()-> {}; } |