IJI-2602 fix super-class visibility

GitOrigin-RevId: 6ba76539d1e6b5e50227ce3d8cd1452f5f284e48
This commit is contained in:
Vladimir Krivosheev
2025-05-13 16:43:55 +02:00
committed by intellij-monorepo-bot
parent b16d41fed3
commit 6fa704d95d
154 changed files with 665 additions and 1026 deletions

View File

@@ -17,7 +17,7 @@ import java.util.Collection;
*
* @author Ilya.Kazakevich
*/
public final class CommandLineArgumentReference extends CommandLineElementReference<CommandLineArgument> {
final class CommandLineArgumentReference extends CommandLineElementReference<CommandLineArgument> {
CommandLineArgumentReference(final @NotNull CommandLineArgument element) {
super(element);
}

View File

@@ -17,8 +17,7 @@ import java.util.List;
*
* @author Ilya.Kazakevich
*/
public final class CommandLineCommandReference extends CommandLineElementReference<CommandLineCommand> {
final class CommandLineCommandReference extends CommandLineElementReference<CommandLineCommand> {
CommandLineCommandReference(final @NotNull CommandLineCommand element) {
super(element);
}
@@ -28,7 +27,6 @@ public final class CommandLineCommandReference extends CommandLineElementReferen
return null;
}
@Override
public Object @NotNull [] getVariants() {
final CommandLineFile file = getCommandLineFile();

View File

@@ -15,7 +15,7 @@ import java.util.List;
*
* @author Ilya.Kazakevich
*/
public final class CommandLineOptionReference extends CommandLineElementReference<CommandLineOption> {
final class CommandLineOptionReference extends CommandLineElementReference<CommandLineOption> {
CommandLineOptionReference(final @NotNull CommandLineOption element) {
super(element);
}

View File

@@ -14,7 +14,7 @@ import org.jetbrains.annotations.NotNull;
*
* @author Ilya.Kazakevich
*/
public final class CommandLineReferenceContributor extends PsiReferenceContributor {
final class CommandLineReferenceContributor extends PsiReferenceContributor {
private static final ReferenceProvider REFERENCE_PROVIDER = new ReferenceProvider();
@Override
@@ -22,11 +22,9 @@ public final class CommandLineReferenceContributor extends PsiReferenceContribut
registrar.registerReferenceProvider(PlatformPatterns.psiElement(CommandLineElement.class), REFERENCE_PROVIDER);
}
private static class ReferenceProvider extends PsiReferenceProvider {
private static final class ReferenceProvider extends PsiReferenceProvider {
@Override
public final PsiReference @NotNull [] getReferencesByElement(final @NotNull PsiElement element,
final @NotNull ProcessingContext context) {
public PsiReference @NotNull [] getReferencesByElement(final @NotNull PsiElement element, final @NotNull ProcessingContext context) {
if (element instanceof CommandLineCommand) {
return new PsiReference[]{new CommandLineCommandReference((CommandLineCommand)element)};
}