aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ExtensionMethodFunctional.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/ExtensionMethodFunctional.java')
-rw-r--r--test/transform/resource/before/ExtensionMethodFunctional.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/transform/resource/before/ExtensionMethodFunctional.java b/test/transform/resource/before/ExtensionMethodFunctional.java
index 8586dd7a..20fe2a36 100644
--- a/test/transform/resource/before/ExtensionMethodFunctional.java
+++ b/test/transform/resource/before/ExtensionMethodFunctional.java
@@ -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();
}