FoldExpressionIntoStreamInspection: deparenthesize when testing whether it's too simple case

This commit is contained in:
Tagir Valeev
2018-07-06 13:58:48 +07:00
parent cf64d92692
commit d327e1acdc
2 changed files with 8 additions and 2 deletions
@@ -0,0 +1,6 @@
// "Fold expression into Stream chain" "false"
class Test {
boolean foo(String a, String b, String c, String d) {
return ((a) == (null)) || b == null || c == null || d == <caret>null;
}
}