mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
Fixes IDEA-287093 Stream.reduce inspection is incorrect GitOrigin-RevId: 5534d52562a9c5b678e45ea4f9623b9260c17bf6
9 lines
264 B
Java
9 lines
264 B
Java
import java.util.stream.*;
|
|
|
|
class Test {
|
|
public static void main(String... args) {
|
|
String res = Stream.of("elvis").reduce(null, (a, b) -> b);
|
|
|
|
if (<warning descr="Condition 'res.equals(\"elvis\")' is always 'true'">res.equals("elvis")</warning>) {}
|
|
}
|
|
} |