diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AccessStaticViaInstanceFix.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AccessStaticViaInstanceFix.java
index 78b9445ec247..38aee1178682 100644
--- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AccessStaticViaInstanceFix.java
+++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/quickfix/AccessStaticViaInstanceFix.java
@@ -35,6 +35,7 @@ import com.intellij.util.IncorrectOperationException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
@@ -148,25 +149,13 @@ public class AccessStaticViaInstanceFix extends LocalQuickFixAndIntentionActionO
@Override
protected String sideEffectsDescription() {
if (canCopeWithSideEffects) {
- return "
" +
- " There are possible side effects found in expression '" +
- qualifierExpression.getText() +
- "'
" +
- " You can:- Remove class reference along with whole expressions involved, or
" +
- " - Transform qualified expression into the statement on its own.
" +
- " That is,
" +
- " " +
- myExpression.getText() +
- " |
becomes:
" +
- " " +
- qualifierExpression.getText() +
- "; " +
- qualifiedWithClassName.getText() +
- " |
" +
- " ";
+ return MessageFormat.format(getFormatString(),
+ "expression '" + qualifierExpression.getText() + "'",
+ myExpression.getText(), //before text
+ qualifierExpression.getText() + ";
" + qualifiedWithClassName.getText());//after text
}
return " There are possible side effects found in expression '" + qualifierExpression.getText() + "'
" +
- "You can:- Remove class reference along with whole expressions involved, or
";
+ "You can Remove class reference along with whole expressions involved