mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 00:17:45 +00:00
Code review + mention in changelog for the improvement to val handling vs. lambdas and conditional (ternary) expressions.
This commit is contained in:
1 parent
cd49188aff
commit
2704f073aa
5 files changed
+6
-15
No files matched your search
@@ -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);
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user