StreamApiMigrationInspection: BufferedReaderLines: support parentheses around readLine in while scenario

This commit is contained in:
Tagir Valeev
2019-02-18 12:37:12 +07:00
parent 81178557df
commit 5c0748b0bc
2 changed files with 3 additions and 2 deletions
@@ -9,7 +9,7 @@ public class Main {
List<String> test(BufferedReader br) throws IOException {
List<String> result = new ArrayList<>();
String line = /*comment*/"";
wh<caret>ile(null != (line = br.readLine())) {
wh<caret>ile(null != (line = (br.readLine()))) {
result.add(line.trim());
}
return result;