aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorBulgakov Alexander <buls@yandex.ru>2019-05-07 10:49:25 +0300
committerBulgakov Alexander <buls@yandex.ru>2019-05-07 10:49:25 +0300
commit06fb1034eac690f5775e104c4bc82df3ad929cc9 (patch)
tree3c70f1b28bc3af8e06ee555f89778d794f28df54 /test/transform
parent8276dee2551d3f8d29f414a0a762565eec381258 (diff)
downloadlombok-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')
-rw-r--r--test/transform/resource/after-delombok/ValLambda.java2
-rw-r--r--test/transform/resource/after-ecj/ValLambda.java2
-rw-r--r--test/transform/resource/before/ValLambda.java2
3 files changed, 3 insertions, 3 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);
diff --git a/test/transform/resource/after-ecj/ValLambda.java b/test/transform/resource/after-ecj/ValLambda.java
index 4e2b97a1..53258b3e 100644
--- a/test/transform/resource/after-ecj/ValLambda.java
+++ b/test/transform/resource/after-ecj/ValLambda.java
@@ -14,6 +14,6 @@ class ValLambda {
}
public void easyLubLambda() {
final @lombok.val java.lang.Runnable foo = ((System.currentTimeMillis() > 0) ? (Runnable) () -> {
-} : (Runnable) System.out::println);
+} : System.out::println);
}
} \ No newline at end of file
diff --git a/test/transform/resource/before/ValLambda.java b/test/transform/resource/before/ValLambda.java
index 51c4fba1..4ec73b82 100644
--- a/test/transform/resource/before/ValLambda.java
+++ b/test/transform/resource/before/ValLambda.java
@@ -10,7 +10,7 @@ class ValLambda {
}
public void easyLubLambda() {
- lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : (Runnable)System.out::println;
+ lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;
}
// public void castLubLambda() {