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:
parent
154016d609
commit
238bacaf90
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue