Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/streamApiMigration/afterIncompleteNewCall.java
Tagir Valeev 478cae19bf IDEA-170032 Replace with foreach is not proposed in alt-enter
Now both options (when unchecked) only disable warning and batch-mode replacement, but the action is still available as an intention.
2017-03-30 13:07:18 +07:00

13 lines
276 B
Java

// "Replace with forEach" "INFORMATION"
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
class A {
public void foo(final Set<String> strings) throws FileNotFoundException {
strings.forEach(s -> new FileInputStream());
}
}