mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't prefer primitive types based on statistics (IDEA-158843)
This commit is contained in:
@@ -319,6 +319,9 @@ public class TypeSelectorManagerImpl implements TypeSelectorManager {
|
||||
}
|
||||
|
||||
public static PsiType getPreferredType(PsiType[] types, PsiType defaultType) {
|
||||
|
||||
if (defaultType instanceof PsiPrimitiveType) return defaultType;
|
||||
|
||||
Map<String, PsiType> map = new THashMap<String, PsiType>();
|
||||
for (final PsiType type : types) {
|
||||
map.put(serialize(type), type);
|
||||
|
||||
Reference in New Issue
Block a user