EA-65747 - assert: LambdaCanBeMethodReferenceInspection.canBeMethodReferenceProblem

(cherry picked from commit 694a7b3b7869e1be50170bf6490c8b3e30328c4b)
This commit is contained in:
Anna Kozlova
2015-03-11 20:36:01 +01:00
parent 8535b86fab
commit 50043d2bd9
2 changed files with 17 additions and 4 deletions
@@ -0,0 +1,15 @@
// "Replace with forEach" "false"
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
class A {
public void foo(final Set<String> strings) throws FileNotFoundException {
for (String s : str<caret>ings) {
new FileInputStream();
}
}
}