mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
disable replace with collect for raw collection substitutors (IDEA-153325)
This commit is contained in:
+20
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user