duplicate annotations

This commit is contained in:
Alexey Kudravtsev
2010-08-23 14:29:03 +04:00
parent def55b079d
commit 48245a1a3a
3 changed files with 2 additions and 2 deletions
@@ -133,7 +133,7 @@ public class PsiTypeElementImpl extends CompositePsiElement implements PsiTypeEl
PsiModifierList list = ((PsiModifierListOwner)member).getModifierList();
PsiAnnotation[] gluedAnnos = list == null ? PsiAnnotation.EMPTY_ARRAY : list.getAnnotations();
for (PsiAnnotation anno : gluedAnnos) {
if (AnnotationsHighlightUtil.isAnnotationApplicableTo(anno, true, "TYPE_USE")) {
if (AnnotationsHighlightUtil.isAnnotationApplicableTo(anno, false, "TYPE_USE")) {
typeAnnos.add(anno);
}
}
@@ -13,7 +13,7 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
doTest(BASE_PATH + "/" + getTestName(false) + ".java", checkWarnings, checkInfos);
}
public void testDuplicatedAnnotations() throws Exception {
public void testDuplicateAnnotations() throws Exception {
doTest(false, false);
}