AnnotationUtil#findOwnAnnotations: don't resolve qname if short names don't match

GitOrigin-RevId: cd6b27a99d04ac63697f7f03289656219b0e71d9
This commit is contained in:
peter
2019-05-29 14:45:50 +02:00
committed by intellij-monorepo-bot
parent 46f7becaf2
commit 699714b125

View File

@@ -105,7 +105,7 @@ public class AnnotationUtil {
}
List<PsiAnnotation> result = null;
for (PsiAnnotation annotation : list.getAnnotations()) {
if (annotationNames.contains(annotation.getQualifiedName()) && isApplicableToDeclaration(annotation, list)) {
if (ContainerUtil.exists(annotationNames, annotation::hasQualifiedName) && isApplicableToDeclaration(annotation, list)) {
if (result == null) {
result = new SmartList<>();
}