test for IDEA-185139 A method's call hierarchy shows also references inside JavaDoc comments

GitOrigin-RevId: 8449f60086ded2566843fc81745f26d8f0efb21d
This commit is contained in:
Alexey Kudravtsev
2020-04-15 15:32:31 +00:00
committed by intellij-monorepo-bot
parent 99c23efd56
commit db53879e9b
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1 @@
<node text="X.persist() (p)" base="true"/>
@@ -0,0 +1,14 @@
package p;
class X {
/**
* see {@link #persist()}
*/
int f(int y) {
return 0;
}
void persist() {
}
}
@@ -119,4 +119,8 @@ public class JavaCallHierarchyTest extends HierarchyViewTestBase {
protected Sdk getTestProjectJdk() {
return IdeaTestUtil.getMockJdk18();
}
public void testMustIgnoreJavadocReferences() throws Exception {
doJavaCallTypeHierarchyTest("p.X", "persist", "X.java");
}
}