mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
name suggestions: skip pluralization when component type is the same as original (IDEA-89143)
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user