disable replace with collect for raw collection substitutors (IDEA-153325)

This commit is contained in:
Anna.Kozlova
2016-03-21 14:14:26 +01:00
parent ab7f16e4b9
commit f14159a852
2 changed files with 30 additions and 9 deletions
@@ -0,0 +1,20 @@
// "Replace with collect" "false"
import java.util.ArrayList;
import java.util.List;
class Main2 {
public static void main(String[] args) {
MyList list = new MyList();
List<Integer> integerList = new ArrayList<>();
for (Object element : li<caret>st) {
if (element instanceof Integer) {
integerList.add((Integer) element);
}
}
}
public static class MyList extends ArrayList {
}
}