IDEA-133851 (no-runtime annotations ignored by inspection)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 16 Dec 2014 19:23:25 +0000 (20:23 +0100)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Tue, 16 Dec 2014 19:23:25 +0000 (20:23 +0100)
java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java

index 642a8edb755fefc32832980494479b68d0f5fc04..ffbacaad7f085ca77fb6a63a0ef5393d0e5bc3d8 100644 (file)
@@ -701,7 +701,7 @@ public class AnnotationsHighlightUtil {
   }
 
   @Nullable
-  private static RetentionPolicy getRetentionPolicy(PsiClass annotation) {
+  public static RetentionPolicy getRetentionPolicy(@NotNull PsiClass annotation) {
     PsiModifierList modifierList = annotation.getModifierList();
     if (modifierList != null) {
       PsiAnnotation retentionAnno = modifierList.findAnnotation(CommonClassNames.JAVA_LANG_ANNOTATION_RETENTION);