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:
Tagir Valeev
2017-03-06 15:32:16 +07:00
parent bd3c0ddfba
commit 504a5727d6
43 changed files with 444 additions and 232 deletions
@@ -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();
}
}