mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
Fix IDEA-177668 "Replace stream chain with loop" exception on unresolved collection type
This commit is contained in:
+9
@@ -113,6 +113,15 @@ public class Main {
|
||||
return integers;
|
||||
}
|
||||
|
||||
// Unresolved reference
|
||||
void f(Collection<? extends Foo> c) {
|
||||
R treeSet = new TreeSet();
|
||||
for (Foo foo : c) {
|
||||
treeSet.add(foo);
|
||||
}
|
||||
Set<Foo> uniqueDescriptors = treeSet;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Main().testAveragingDouble("a", "bbb", null, "cc", "dd", "eedasfasdfs");
|
||||
new Main().testAveragingInt("a", "bbb", null, "cc", "dd", "eedasfasdfs");
|
||||
|
||||
Reference in New Issue
Block a user