Deprecate ASTCatchStatement::getBlock for #2202
This commit is contained in:
@ -94,6 +94,7 @@ You can identify them with the `@InternalApi` annotation. You'll also get a depr
|
|||||||
* [`ASTAnyTypeDeclaration.TypeKind`](https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.21.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.TypeKind.html)
|
* [`ASTAnyTypeDeclaration.TypeKind`](https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.21.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.TypeKind.html)
|
||||||
* {% jdoc !!java::lang.java.ast.ASTAnyTypeDeclaration#getKind() %}
|
* {% jdoc !!java::lang.java.ast.ASTAnyTypeDeclaration#getKind() %}
|
||||||
* {% jdoc java::lang.java.ast.JavaQualifiedName %}
|
* {% jdoc java::lang.java.ast.JavaQualifiedName %}
|
||||||
|
* {% jdoc !!java::lang.java.ast.ASTCatchStatement#getBlock() %}
|
||||||
* {% jdoc !!java::lang.java.ast.ASTCompilationUnit#declarationsAreInDefaultPackage() %}
|
* {% jdoc !!java::lang.java.ast.ASTCompilationUnit#declarationsAreInDefaultPackage() %}
|
||||||
* {% jdoc java::lang.java.ast.JavaQualifiableNode %}
|
* {% jdoc java::lang.java.ast.JavaQualifiableNode %}
|
||||||
* {% jdoc !!java::lang.java.ast.ASTAnyTypeDeclaration#getQualifiedName() %}
|
* {% jdoc !!java::lang.java.ast.ASTAnyTypeDeclaration#getQualifiedName() %}
|
||||||
|
@ -53,11 +53,22 @@ public class ASTCatchStatement extends AbstractJavaNode {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the Block node of this catch branch.
|
* Returns the Block node of this catch branch.
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link #getBody()}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public ASTBlock getBlock() {
|
public ASTBlock getBlock() {
|
||||||
return getFirstChildOfType(ASTBlock.class);
|
return getFirstChildOfType(ASTBlock.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the body of this catch clause.
|
||||||
|
*/
|
||||||
|
public ASTBlock getBody() {
|
||||||
|
return getFirstChildOfType(ASTBlock.class);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the list of type nodes denoting the exception types
|
* Returns the list of type nodes denoting the exception types
|
||||||
* caught by this catch block. The returned list has at least
|
* caught by this catch block. The returned list has at least
|
||||||
|
Reference in New Issue
Block a user