mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
IDEA-160428 IDEA-CR-13384 Parenthesized expressions support
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ import java.util.stream.Stream;
|
||||
class Example {
|
||||
public static void main(String[] args) {
|
||||
Stream.of(args).filter(arg -> arg.startsWith("a"))
|
||||
.findFirst().ifPresent(args.length == 1 ? value -> {} : value -> {
|
||||
.findFirst().ifPresent((args.length == 1 ? value -> {} : (value -> {
|
||||
System.out.println(<warning descr="Condition 'value == null' is always 'false'">value == null</warning> ? "none" : value);
|
||||
});
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user