mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
add support for binary operation reduction in stream migration
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Replace with reduce()" "true"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
public void testBitwiseOr() {
|
||||
int[] arr = new int[]{1, 2, 3, 4};
|
||||
int acc = 12443;
|
||||
for <caret> (int i: arr) {
|
||||
acc |= i;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user