Skip to content

Commit

Permalink
Aman - Unused step inspection is now working for groovy code as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraman21 committed Dec 18, 2011
1 parent 72dbebc commit d2ed38a
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -80,9 +80,14 @@ public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, bool
return new JavaElementVisitor() {

@Override
public void visitAnnotation(PsiAnnotation annotation) {
super.visitAnnotation(annotation);
public void visitElement(PsiElement element) {
super.visitElement(element);

if(! (element instanceof PsiAnnotation)) {
return;
}

PsiAnnotation annotation = (PsiAnnotation)element;
if(! JBEHAVE_ANNOTATIONS.contains(annotation.getQualifiedName())) {
return;
}
Expand Down

0 comments on commit d2ed38a

Please sign in to comment.