[refactoring] Fix some raw-types in inplace introducers

GitOrigin-RevId: 8e2e93e1bfdd4ead7d0ef0b00aeacedbec7fe341
This commit is contained in:
Tagir Valeev
2024-05-15 10:31:43 +00:00
committed by intellij-monorepo-bot
parent 517aa1f90b
commit 1def0c841c
3 changed files with 4 additions and 4 deletions
@@ -99,5 +99,5 @@ public abstract class IntroduceHandlerBase implements RefactoringActionHandler,
protected abstract boolean invokeImpl(Project project, PsiLocalVariable localVariable, @Nullable Editor editor);
@TestOnly
public abstract AbstractInplaceIntroducer getInplaceIntroducer();
public abstract AbstractInplaceIntroducer<?, ?> getInplaceIntroducer();
}
@@ -105,7 +105,7 @@ public class IntroduceConstantHandler extends BaseExpressionToFieldHandler imple
String enteredName = null;
boolean replaceAllOccurrences = true;
final AbstractInplaceIntroducer activeIntroducer = AbstractInplaceIntroducer.getActiveIntroducer(editor);
final AbstractInplaceIntroducer<?, ?> activeIntroducer = AbstractInplaceIntroducer.getActiveIntroducer(editor);
if (activeIntroducer != null) {
activeIntroducer.stopIntroduce(editor);
expr = (PsiExpression)activeIntroducer.getExpr();
@@ -55,7 +55,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
protected final String myExprText;
private final String myLocalName;
public static final Key<AbstractInplaceIntroducer> ACTIVE_INTRODUCE = Key.create("ACTIVE_INTRODUCE");
public static final Key<AbstractInplaceIntroducer<?, ?>> ACTIVE_INTRODUCE = Key.create("ACTIVE_INTRODUCE");
private EditorEx myPreview;
private final JComponent myPreviewComponent;
@@ -632,7 +632,7 @@ public abstract class AbstractInplaceIntroducer<V extends PsiNameIdentifierOwner
}
@Nullable
public static AbstractInplaceIntroducer getActiveIntroducer(@Nullable Editor editor) {
public static AbstractInplaceIntroducer<?, ?> getActiveIntroducer(@Nullable Editor editor) {
if (editor == null) return null;
return editor.getUserData(ACTIVE_INTRODUCE);
}