name suggestions: skip pluralization when component type is the same as original (IDEA-89143)

This commit is contained in:
anna
2012-07-31 16:51:28 +02:00
parent 1b5df35a54
commit ecb0f64aa1
4 changed files with 39 additions and 1 deletions
@@ -339,7 +339,7 @@ public class JavaCodeStyleManagerImpl extends JavaCodeStyleManager {
final Collection<String> suggestions,
final boolean correctKeywords) {
PsiType componentType = PsiUtil.extractIterableTypeParameter(type, false);
if (componentType == null) {
if (componentType == null || componentType.equals(type)) {
return;
}
String typeName = normalizeTypeName(getTypeName(componentType));