Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/reduce/afterAndHighestBit.java

10 lines
228 B
Java

// "Replace with reduce()" "true"
import java.util.*;
public class Main {
public void testBitwiseAndHighestBit() {
int[] arr = {0x80000000, 0xffffffff};
int acc = Arrays.stream(arr).reduce(-1, (a, b) -> a & b);
}
}