mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
[fixes #3153] Improve the handling of ExtensionMethod arguments
This commit is contained in:
@@ -16,6 +16,8 @@ class ExtensionMethodFunctional {
|
||||
test.consume(s -> System.out.println("1: " + s), s -> System.out.println("2: " + s));
|
||||
test.consume(System.out::println, System.out::println);
|
||||
|
||||
test.consume(test.length() > 0 ? System.out::println : null);
|
||||
|
||||
Stream.of("a", "b", "c").map(String::toUpperCase).toList1();
|
||||
List<Integer> i2 = Stream.of("a", "b", "c").map(String::toUpperCase).toList2();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user