mirror of
https://github.com/github/codeql.git
synced 2026-02-28 21:03:50 +01:00
Java 12: remove deprecated annotation from Stmt::getEnclosingStmt
This commit is contained in:
@@ -25,11 +25,9 @@ class Stmt extends StmtParent, ExprParent, @stmt {
|
||||
StmtParent getParent() { stmts(this, _, result, _, _) }
|
||||
|
||||
/**
|
||||
* DEPRECATED: Preview feature in Java 12. Subject to removal in a future release.
|
||||
*
|
||||
* Gets the statement containing this statement, if any.
|
||||
*/
|
||||
deprecated Stmt getEnclosingStmt() {
|
||||
Stmt getEnclosingStmt() {
|
||||
result = this.getParent() or
|
||||
result = this.getParent().(SwitchExpr).getEnclosingStmt()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user