mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
StreamApiMigrationInspection: preserve comments on cleanUp limit/bufferedReader
This commit is contained in:
+1
@@ -5,6 +5,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
public class Main {
|
||||
public Set<String> test(String[] array) {
|
||||
/*initial count*/
|
||||
Set<String> set = Arrays.stream(array).filter(Objects::nonNull).limit(10).collect(Collectors.toSet());
|
||||
return set;
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import java.util.*;
|
||||
|
||||
public class Main {
|
||||
public Set<String> test(String[] array) {
|
||||
int count = 0;
|
||||
int count = /*initial count*/0;
|
||||
Set<String> set = new HashSet<>();
|
||||
for(String str : a<caret>rray) {
|
||||
if (str != null) {
|
||||
|
||||
Reference in New Issue
Block a user