diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-05-21 23:20:00 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-05-21 23:20:00 +0200 |
commit | 2704f073aad6deb362707e0311b6275cde7c5e1a (patch) | |
tree | 2ec6d478599b88e3e10865aba424fb3777f25945 /test/transform/resource/before/ValLambda.java | |
parent | cd49188aff9ffece51ce8831c961e0faab33fbc8 (diff) | |
download | lombok-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/transform/resource/before/ValLambda.java')
-rw-r--r-- | test/transform/resource/before/ValLambda.java | 5 |
1 files changed, 0 insertions, 5 deletions
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); -// } } |