This commit is contained in:
Dmitry Batrak
2016-03-16 10:27:34 +03:00
parent 4102ffee3d
commit ee5c99ecd7
2 changed files with 2 additions and 2 deletions
@@ -393,7 +393,7 @@ public class JavaDocumentationProvider extends DocumentationProviderEx implement
public Pair<PsiElement, PsiComment> parseContext(@NotNull PsiElement startPoint) {
for (PsiElement e = startPoint; e != null; e = e.getParent()) {
if (e instanceof PsiDocCommentOwner) {
return Pair.<PsiElement, PsiComment>create(e, ((PsiDocCommentOwner)e).getDocComment());
return Pair.create(e, ((PsiDocCommentOwner)e).getDocComment());
}
}
return null;
@@ -468,7 +468,7 @@ public class GroovyDocumentationProvider implements CodeDocumentationProvider, E
public Pair<PsiElement, PsiComment> parseContext(@NotNull PsiElement startPoint) {
for (PsiElement e = startPoint; e != null; e = e.getParent()) {
if (e instanceof GrDocCommentOwner) {
return Pair.<PsiElement, PsiComment>create(e, ((GrDocCommentOwner)e).getDocComment());
return Pair.create(e, ((GrDocCommentOwner)e).getDocComment());
}
}
return null;