mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
StreamApiMigrationInspection: preserve comments on cleanUp limit/bufferedReader
This commit is contained in:
+1
@@ -9,6 +9,7 @@ import java.util.stream.Collectors;
|
||||
public class Main {
|
||||
List<String> test(BufferedReader br) throws IOException {
|
||||
List<String> result;
|
||||
/*comment*/
|
||||
result = br.lines().map(String::trim).collect(Collectors.toList());
|
||||
return result;
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import java.util.List;
|
||||
public class Main {
|
||||
List<String> test(BufferedReader br) throws IOException {
|
||||
List<String> result = new ArrayList<>();
|
||||
String line = "";
|
||||
String line = /*comment*/"";
|
||||
wh<caret>ile(null != (line = br.readLine())) {
|
||||
result.add(line.trim());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user