summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/beforeCollectIdentityMap.java
blob: 9f708f63e02ca9cec63da574efd72ecb7fe5600b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// "Replace with collect" "true"
import java.util.*;

public class Collect {
  class Person {}

  void collectNames(List<Person> persons){
    List<Person> names = new ArrayList<>();
    for (Person person : pers<caret>ons) {
      names.add(person);
    }
  }
}