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

20 lines
384 B
Java

// "Replace with collect" "false"
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class ForEachTest {
interface A {
String ii() throws IOException;
}
private List<A> reqs;
public ForEachTest () throws IOException {
List<String> result = new ArrayList<>();
for(A val : re<caret>qs) {
result.add(val.ii());
}
}
}