[java-highlighting] QuickFixFactory#createReceiverParameterTypeFix: rename parameters and add Javadoc

GitOrigin-RevId: ac094acae400806999cbe6b434d8abe6d2a3e388
This commit is contained in:
Andrey.Cherkasov
2022-02-08 05:32:17 +03:00
committed by intellij-monorepo-bot
parent 7ce1003bd9
commit b49876697c
2 changed files with 18 additions and 5 deletions

View File

@@ -530,8 +530,22 @@ public abstract class QuickFixFactory {
public abstract @NotNull IntentionAction createMoveMemberIntoClassFix(@NotNull PsiErrorElement errorElement);
public abstract @NotNull IntentionAction createReceiverParameterTypeFix(@NotNull PsiReceiverParameter receiverParameter,
@NotNull PsiType enclosingClassType);
/**
* Creates a fix that changes the type of the receiver parameter
*
* @param parameter receiver parameter to change type for
* @param type new type of the receiver parameter
* <p>
* In an instance method the type of the receiver parameter must be
* the class or interface in which the method is declared.
* <p>
* In an inner class's constructor the type of the receiver parameter
* must be the class or interface which is the immediately enclosing
* type declaration of the inner class.
* @return a new fix
*/
public abstract @NotNull IntentionAction createReceiverParameterTypeFix(@NotNull PsiReceiverParameter parameter,
@NotNull PsiType type);
public abstract @NotNull IntentionAction createConvertInterfaceToClassFix(@NotNull PsiClass aClass);