aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ExtensionMethodFunctional.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/ExtensionMethodFunctional.java')
-rw-r--r--test/transform/resource/after-delombok/ExtensionMethodFunctional.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/transform/resource/after-delombok/ExtensionMethodFunctional.java b/test/transform/resource/after-delombok/ExtensionMethodFunctional.java
index fb58eb91..2b82a957 100644
--- a/test/transform/resource/after-delombok/ExtensionMethodFunctional.java
+++ b/test/transform/resource/after-delombok/ExtensionMethodFunctional.java
@@ -1,3 +1,4 @@
+// version 8:
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.List;
@@ -10,7 +11,7 @@ class ExtensionMethodFunctional {
test = ExtensionMethodFunctional.Extensions.map(test, s -> ExtensionMethodFunctional.Extensions.reverse(s));
ExtensionMethodFunctional.Extensions.consume(test, s -> System.out.println("1: " + s), s -> System.out.println("2: " + s));
ExtensionMethodFunctional.Extensions.consume(test, System.out::println, System.out::println);
- ExtensionMethodFunctional.Extensions.toList(Stream.of("a", "b", "c").map(String::toUpperCase));
+ ExtensionMethodFunctional.Extensions.toList1(Stream.of("a", "b", "c").map(String::toUpperCase));
List<Integer> i2 = ExtensionMethodFunctional.Extensions.toList2(Stream.of("a", "b", "c").map(String::toUpperCase));
}
@@ -30,7 +31,7 @@ class ExtensionMethodFunctional {
}
}
- public static <T> List<T> toList(Stream<T> stream) {
+ public static <T> List<T> toList1(Stream<T> stream) {
return (List<T>) stream.collect(Collectors.toList());
}