mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-19 01:09:52 +07:00
cleanup
This commit is contained in:
+1
-1
@@ -544,7 +544,7 @@ public class HighlightMethodUtil {
|
||||
PsiMethod method = methodCandidate.getElement();
|
||||
PsiParameter[] parameters = method.getParameterList().getParameters();
|
||||
PsiSubstitutor substitutor = methodCandidate.getSubstitutor();
|
||||
@NonNls String ms = "<td><b>" + method.getName() + "</b></td>";
|
||||
@NonNls @Language("HTML") String ms = "<td><b>" + method.getName() + "</b></td>";
|
||||
|
||||
for (int j = 0; j < parameters.length; j++) {
|
||||
PsiParameter parameter = parameters[j];
|
||||
|
||||
+2
-4
@@ -36,7 +36,6 @@ public class SideEffectWarningDialog extends DialogWrapper {
|
||||
private final String myBeforeText;
|
||||
private final String myAfterText;
|
||||
private final boolean myCanCopeWithSideEffects;
|
||||
private AbstractAction myMakeStmtAction;
|
||||
private AbstractAction myRemoveAllAction;
|
||||
private AbstractAction myCancelAllAction;
|
||||
public static final int MAKE_STATEMENT = 1;
|
||||
@@ -71,7 +70,7 @@ public class SideEffectWarningDialog extends DialogWrapper {
|
||||
};
|
||||
actions.add(myRemoveAllAction);
|
||||
if (myCanCopeWithSideEffects) {
|
||||
myMakeStmtAction = new AbstractAction() {
|
||||
AbstractAction makeStmtAction = new AbstractAction() {
|
||||
{
|
||||
UIUtil.setActionNameAndMnemonic(QuickFixBundle.message("side.effect.action.transform"), this);
|
||||
}
|
||||
@@ -80,9 +79,8 @@ public class SideEffectWarningDialog extends DialogWrapper {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
close(MAKE_STATEMENT);
|
||||
}
|
||||
|
||||
};
|
||||
actions.add(myMakeStmtAction);
|
||||
actions.add(makeStmtAction);
|
||||
}
|
||||
myCancelAllAction = new AbstractAction() {
|
||||
{
|
||||
|
||||
+2
-1
@@ -37,6 +37,7 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class TypeMigrationProcessor extends BaseRefactoringProcessor {
|
||||
@@ -132,7 +133,7 @@ public class TypeMigrationProcessor extends BaseRefactoringProcessor {
|
||||
text = "method \'" + ((PsiMethod)myRoot[0]).getName() + "\' return";
|
||||
}
|
||||
else {
|
||||
text = myRoot.toString();
|
||||
text = Arrays.toString(myRoot);
|
||||
}
|
||||
Content content = UsageViewManager.getInstance(myProject)
|
||||
.addContent("Migrate Type of " +
|
||||
|
||||
Reference in New Issue
Block a user