Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/beforeAnotherInstance.java

15 lines
270 B
Java

// "Replace with collect" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
Sample sm = new Sample();
for (String s : fo<caret>o) {
sm.foo.add(s);
}
return null;
}
}