mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: fix method javadoc matching (second part of IDEA-126909)
This commit is contained in:
+5
@@ -1673,6 +1673,11 @@ public class JavaMatchingVisitor extends JavaElementVisitor {
|
||||
myMatchingVisitor.getMatchContext().pushResult();
|
||||
|
||||
try {
|
||||
final PsiDocComment docComment = method.getDocComment();
|
||||
if (docComment != null) {
|
||||
myMatchingVisitor.setResult(myMatchingVisitor.match(docComment, method2));
|
||||
if (!myMatchingVisitor.getResult()) return;
|
||||
}
|
||||
if (method.hasTypeParameters()) {
|
||||
myMatchingVisitor.setResult(
|
||||
myMatchingVisitor.match(method.getTypeParameterList(), ((PsiMethod)myMatchingVisitor.getElement()).getTypeParameterList()));
|
||||
|
||||
+1
-1
@@ -1676,7 +1676,7 @@ public class StructuralSearchTest extends StructuralSearchTestCase {
|
||||
// javadoc comment for method
|
||||
assertEquals(
|
||||
"javadoc comment for method",
|
||||
3,
|
||||
2,
|
||||
findMatchesCount(s57, s58_3)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user