From b9c9f28a926de16755671277bc0ca1881d7309ce Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 30 Oct 2009 09:47:22 +0300 Subject: [PATCH] IDEADEV-41088 --- .../codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java index fc95102183..3adb241fd2 100644 --- a/java/java-impl/src/com/intellij/codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java +++ b/java/java-impl/src/com/intellij/codeInsight/daemon/impl/analysis/AnnotationsHighlightUtil.java @@ -148,7 +148,7 @@ public class AnnotationsHighlightUtil { if (annotation == annotationToCheck) continue; PsiJavaCodeReferenceElement nameRef = annotation.getNameReferenceElement(); if (nameRef == null) continue; - PsiClass aClass = (PsiClass)nameRef.resolve(); + PsiElement aClass = nameRef.resolve(); if (resolved.equals(aClass)) { return HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, element, JavaErrorMessages.message("annotation.duplicate.annotation")); } -- 2.11.4.GIT