mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
inline constructor: avoid javadoc references
EA-89601 - UOE: InlineMethodProcessor$.inlineUsage
This commit is contained in:
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user