add support for binary operation reduction in stream migration

This commit is contained in:
Roman Ivanov
2017-07-20 17:15:07 +07:00
parent 5ce1ab82c5
commit dd4ba58889
39 changed files with 762 additions and 121 deletions
@@ -0,0 +1,11 @@
// "Replace with reduce()" "true"
import java.util.*;
public class Main {
public void testBitwiseOr() {
int[] arr = new int[]{1, 2, 3, 4};
int acc = 12443;
acc |= Arrays.stream(arr).reduce(0, (a, b) -> a | b);
}
}