IDEA-160428 IDEA-CR-13384 Parenthesized expressions support

This commit is contained in:
Tagir Valeev
2016-08-30 10:55:06 +03:00
parent 5e6732738d
commit 87bea236f2
2 changed files with 3 additions and 3 deletions
@@ -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);
});
})));
}
}