mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix conflicts escaping (IDEA-191188)
This commit is contained in:
@@ -112,7 +112,7 @@ public class ExtractEnumTest extends MultiFileTestCase {
|
||||
}
|
||||
|
||||
public void testCantChangeReturnType() {
|
||||
doTest("Unable to migrate statement to enum constant. Field <b><code>length</code></b> is out of project", false,
|
||||
doTest("Unable to migrate statement to enum constant. Field <b><code>length</code></b> is out of project", false,
|
||||
new RefactoringTestUtil.MemberDescriptor("FOO", PsiField.class, true),
|
||||
new RefactoringTestUtil.MemberDescriptor("BAR", PsiField.class, true));
|
||||
}
|
||||
|
||||
+1
-2
@@ -18,7 +18,6 @@ package com.intellij.refactoring.util;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Ref;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import com.intellij.refactoring.BaseRefactoringProcessor;
|
||||
import com.intellij.usageView.UsageInfo;
|
||||
@@ -67,7 +66,7 @@ public abstract class FixableUsagesRefactoringProcessor extends BaseRefactoringP
|
||||
for (UsageInfo info : refUsages.get()) {
|
||||
final String conflict = ((FixableUsageInfo)info).getConflictMessage();
|
||||
if (conflict != null) {
|
||||
conflicts.putValue(info.getElement(), StringUtil.escapeXml(conflict));
|
||||
conflicts.putValue(info.getElement(), conflict);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user