don't prefer primitive types based on statistics (IDEA-158843)

This commit is contained in:
Anna.Kozlova
2016-07-21 19:03:45 +02:00
parent 5fc02f38a4
commit 5ebf15c6ca
@@ -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);