aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-21 23:20:00 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-21 23:20:00 +0200
commit2704f073aad6deb362707e0311b6275cde7c5e1a (patch)
tree2ec6d478599b88e3e10865aba424fb3777f25945 /test
parentcd49188aff9ffece51ce8831c961e0faab33fbc8 (diff)
downloadlombok-2704f073aad6deb362707e0311b6275cde7c5e1a.tar.gz
lombok-2704f073aad6deb362707e0311b6275cde7c5e1a.tar.bz2
lombok-2704f073aad6deb362707e0311b6275cde7c5e1a.zip
Code review + mention in changelog for the improvement to val handling vs. lambdas and conditional (ternary) expressions.
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/ValLambda.java4
-rw-r--r--test/transform/resource/before/ValLambda.java5
2 files changed, 0 insertions, 9 deletions
diff --git a/test/transform/resource/after-delombok/ValLambda.java b/test/transform/resource/after-delombok/ValLambda.java
index b993028e..00ff27ad 100644
--- a/test/transform/resource/after-delombok/ValLambda.java
+++ b/test/transform/resource/after-delombok/ValLambda.java
@@ -18,8 +18,4 @@ class ValLambda {
java.util.function.Function foo3 = (System.currentTimeMillis() < 0) ? (java.util.function.Function) r -> "" : r -> System.currentTimeMillis();
final java.util.function.Function<java.lang.String, java.lang.String> foo4 = (System.currentTimeMillis() < 0) ? (java.util.function.Function<String, String>) r -> "" : r -> String.valueOf(System.currentTimeMillis());
}
-// public void castLubLambda() {
-// Runnable foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println);
-// lombok.val foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : 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 5d40f220..35f83c3c 100644
--- a/test/transform/resource/before/ValLambda.java
+++ b/test/transform/resource/before/ValLambda.java
@@ -16,9 +16,4 @@ class ValLambda {
java.util.function.Function foo3 = (System.currentTimeMillis() < 0) ? (java.util.function.Function) r -> "" : r -> System.currentTimeMillis();
lombok.val foo4 = (System.currentTimeMillis() < 0) ? (java.util.function.Function<String, String>) r -> "" : r -> String.valueOf(System.currentTimeMillis());
}
-
-// public void castLubLambda() {
-// Runnable foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println);
-// lombok.val foo = (Runnable) ((System.currentTimeMillis() > 0) ? () -> {} : System.out::println);
-// }
}