mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
duplicate annotations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user