Merge branch 'finish-905'

This commit is contained in:
Clément Fournier
2020-11-11 22:18:32 +01:00
2 changed files with 13 additions and 0 deletions

View File

@ -35,10 +35,20 @@ public class ASTClassOrInterfaceBody extends AbstractJavaNode {
return visitor.visit(this, data);
}
/**
* @deprecated Test the parent for {@link ASTAllocationExpression}.
* This will be removed in pmd 7 as unnecessary (refs <a href="https://github.com/pmd/pmd/issues/905">#905</a>)
*/
@Deprecated
public boolean isAnonymousInnerClass() {
return getParent() instanceof ASTAllocationExpression;
}
/**
* @deprecated Test the parent for {@link ASTEnumConstant}.
* This will be removed in pmd 7 as unnecessary (refs <a href="https://github.com/pmd/pmd/issues/905">#905</a>)
*/
@Deprecated
public boolean isEnumChild() {
return getParent() instanceof ASTEnumConstant;
}