diff options
author | Bulgakov Alexander <buls@yandex.ru> | 2019-05-07 10:49:25 +0300 |
---|---|---|
committer | Bulgakov Alexander <buls@yandex.ru> | 2019-05-07 10:49:25 +0300 |
commit | 06fb1034eac690f5775e104c4bc82df3ad929cc9 (patch) | |
tree | 3c70f1b28bc3af8e06ee555f89778d794f28df54 /test/transform/resource/after-delombok/ValLambda.java | |
parent | 8276dee2551d3f8d29f414a0a762565eec381258 (diff) | |
download | lombok-06fb1034eac690f5775e104c4bc82df3ad929cc9.tar.gz lombok-06fb1034eac690f5775e104c4bc82df3ad929cc9.tar.bz2 lombok-06fb1034eac690f5775e104c4bc82df3ad929cc9.zip |
#1976. naive fix of the eclipse compiler's error 'The target type of this expression must be a functional interface' in code like 'lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;'
Diffstat (limited to 'test/transform/resource/after-delombok/ValLambda.java')
-rw-r--r-- | test/transform/resource/after-delombok/ValLambda.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/ValLambda.java b/test/transform/resource/after-delombok/ValLambda.java index 60aeaac9..772db9a5 100644 --- a/test/transform/resource/after-delombok/ValLambda.java +++ b/test/transform/resource/after-delombok/ValLambda.java @@ -12,7 +12,7 @@ class ValLambda { } public void easyLubLambda() { final java.lang.Runnable foo = (System.currentTimeMillis() > 0) ? (Runnable) () -> { - } : (Runnable) System.out::println; + } : System.out::println; } // public void castLubLambda() { // Runnable foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println); |