Adding ANNOTATION_DEF to the valid list of parentASTs for the SuppressWarningsHolder. Without this, any @SuppressWarnings (checkstyle or not) present on an annotation definition class will fail.

This commit is contained in:
Dominic Jones 2014-07-03 10:32:23 -07:00 committed by Daniil Yaroslavtsev
parent 154016d609
commit 238bacaf90
1 changed files with 1 additions and 0 deletions

View File

@ -291,6 +291,7 @@ public class SuppressWarningsHolder
parentAST = parentAST.getParent();
if (parentAST != null) {
switch (parentAST.getType()) {
case TokenTypes.ANNOTATION_DEF:
case TokenTypes.PACKAGE_DEF:
case TokenTypes.CLASS_DEF:
case TokenTypes.INTERFACE_DEF: