mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
java variable name suggestion improved: aVoid -> unused (IDEA-238838)
GitOrigin-RevId: 7a79b6ab5ddd209bd036cdc0203a9a139877ab0c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6e7b5fd2d8
commit
2315801803
@@ -371,8 +371,9 @@ public class JavaCodeStyleManagerImpl extends JavaCodeStyleManager {
|
||||
case "float":
|
||||
return "v";
|
||||
case "short": return "i";
|
||||
case "java.lang.Object": return "o";
|
||||
case "java.lang.String": return "s";
|
||||
case CommonClassNames.JAVA_LANG_OBJECT: return "o";
|
||||
case CommonClassNames.JAVA_LANG_STRING: return "s";
|
||||
case CommonClassNames.JAVA_LANG_VOID: return "unused";
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
interface I<T> {
|
||||
void m(T t);
|
||||
}
|
||||
class M extends I<Void> {
|
||||
public void m(Void unused) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
interface I<T> {
|
||||
void m(T t);
|
||||
}
|
||||
class M extends I<Void> {
|
||||
<caret>
|
||||
}
|
||||
@@ -98,6 +98,7 @@ public class OverrideImplement15Test extends LightJavaCodeInsightTestCase {
|
||||
public void testResolveTypeParamConflict() { doTest(false); }
|
||||
public void testRawInheritance() { doTest(false); }
|
||||
public void testRawInheritanceWithMethodTypeParameters() { doTest(false); }
|
||||
public void testVoidNameSuggestion() { doTest(false); }
|
||||
|
||||
public void testLongFinalParameterList() {
|
||||
CodeStyleSettings codeStyleSettings = CodeStyleSettingsManager.getSettings(getProject());
|
||||
|
||||
Reference in New Issue
Block a user