mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
ExtractStreamMapAction: made stream-agnostic (with ability to extend to other chaining lambda APIs like Guava, RxJava, etc.); implemented for CompletableFuture; existing lambda is always preserved now.
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
// "Extract variable 'l' to separate stream step" "true"
|
||||
// "Extract variable 'l' to separate mapping method" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
public class Test {
|
||||
Object[] testBoxed(int[] x) {
|
||||
return Arrays.stream(x).asLongStream().boxed().toArray();
|
||||
return Arrays.stream(x).asLongStream().mapToObj(l -> l).toArray();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user