inline constructor: avoid javadoc references

EA-89601 - UOE: InlineMethodProcessor$.inlineUsage
This commit is contained in:
Anna.Kozlova
2016-10-11 12:19:48 +02:00
parent 3f59f22a23
commit 9849261dae
4 changed files with 16 additions and 2 deletions
@@ -466,7 +466,7 @@ public class InlineMethodProcessor extends BaseRefactoringProcessor {
else if (element instanceof PsiEnumConstant) {
inlineConstructorCall((PsiEnumConstant) element);
}
else {
else if (!(element instanceof PsiDocMethodOrFieldRef)){
GenericInlineHandler.inlineReference(usage, myMethod, myInliners);
}
}
@@ -3,6 +3,9 @@ class TestInlineMethod {
this(Integer.valueOf(s1, r1), Integer.valueOf(s2, r2));
}
/**
* {@link #TestInlineMethod(String, int, String, int)}
*/
public TestInlineMethod(Integer i1, Integer i2) {
}
@@ -1,5 +1,8 @@
class TestInlineMethod {
/**
* {@link #TestInlineMethod(String, int, String, int)}
*/
public TestInlineMethod(Integer i1, Integer i2) {
}
@@ -107,7 +107,15 @@ public class InlineMethodTest extends LightRefactoringTestCase {
public void testChainingConstructor() throws Exception { doTest(); }
public void testChainingConstructor1() throws Exception { doTest(); }
public void testChainingConstructor1() throws Exception {
BaseRefactoringProcessor.ConflictsInTestsException.setTestIgnore(true);
try {
doTest();
}
finally {
BaseRefactoringProcessor.ConflictsInTestsException.setTestIgnore(false);
}
}
public void testNestedCall() throws Exception { doTest(); }