mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
prefer instanceofed variants in java completion (IDEA-138937)
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import java.lang.Object;
|
||||
import java.util.List;
|
||||
|
||||
interface Intf {
|
||||
|
||||
}
|
||||
|
||||
public class Aaaaaaa implements Intf {
|
||||
void foo(List<Object> src, List<Intf> dst) {
|
||||
for (Object value : src) {
|
||||
if (value instanceof Intf) {
|
||||
dst.add(<caret>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user