diff --git a/java/java-analysis-api/src/com/intellij/codeInsight/intention/QuickFixFactory.java b/java/java-analysis-api/src/com/intellij/codeInsight/intention/QuickFixFactory.java index de0c70db6886..fd2265db0c59 100644 --- a/java/java-analysis-api/src/com/intellij/codeInsight/intention/QuickFixFactory.java +++ b/java/java-analysis-api/src/com/intellij/codeInsight/intention/QuickFixFactory.java @@ -163,9 +163,6 @@ public abstract class QuickFixFactory { @NotNull public abstract IntentionAction createAddTypeCastFix(@NotNull PsiType type, @NotNull PsiExpression expression); - @NotNull - public abstract IntentionAction createWrapExpressionFix(@NotNull PsiType type, @NotNull PsiExpression expression); - @NotNull public abstract IntentionAction createReuseVariableDeclarationFix(@NotNull PsiLocalVariable variable); @@ -593,9 +590,9 @@ public abstract class QuickFixFactory { * @param parameter receiver parameter to change name for * @param newName new name of the receiver parameter *
- * In an instance method the name of the receiver parameter must be this.
+ * In an instance method the name of the receiver parameter must be {@code this}.
*
- * In an inner class's constructor the name of the receiver parameter must be Identifier . this
+ * In an inner class's constructor the name of the receiver parameter must be Identifier.{@code this}
* where Identifier is the simple name of the class or interface which is the immediately enclosing type
* declaration of the inner class.
* @return a new fix
diff --git a/java/java-impl/src/com/intellij/codeInsight/intention/impl/config/QuickFixFactoryImpl.java b/java/java-impl/src/com/intellij/codeInsight/intention/impl/config/QuickFixFactoryImpl.java
index 86b97654d93f..4f7f2fc8bfdc 100644
--- a/java/java-impl/src/com/intellij/codeInsight/intention/impl/config/QuickFixFactoryImpl.java
+++ b/java/java-impl/src/com/intellij/codeInsight/intention/impl/config/QuickFixFactoryImpl.java
@@ -257,12 +257,6 @@ public final class QuickFixFactoryImpl extends QuickFixFactory {
return new AddTypeCastFix(type, expression);
}
- @NotNull
- @Override
- public IntentionAction createWrapExpressionFix(@NotNull PsiType type, @NotNull PsiExpression expression) {
- return new WrapExpressionFix(type, expression, null);
- }
-
@NotNull
@Override
public IntentionAction createReuseVariableDeclarationFix(@NotNull PsiLocalVariable variable) {
@@ -379,7 +373,7 @@ public final class QuickFixFactoryImpl extends QuickFixFactory {
}
@Override
- public IntentionAction createUpgradeSdkFor(@NotNull LanguageLevel level) {
+ public @NotNull IntentionAction createUpgradeSdkFor(@NotNull LanguageLevel level) {
return new UpgradeSdkFix(level);
}