Merge pull request #21304 from aschackmull/java/deprecation-followup

Java: Add delayed deprecation annotation.
This commit is contained in:
Anders Schack-Mulligen
2026-02-11 08:40:01 +01:00
committed by GitHub

View File

@@ -646,7 +646,7 @@ class ReturnStmt extends Stmt, @returnstmt {
*
* Gets the expression returned by this `return` statement, if any.
*/
Expr getResult() { result.getParent() = this }
deprecated Expr getResult() { result.getParent() = this }
/** Gets the expression returned by this `return` statement, if any. */
Expr getExpr() { result.getParent() = this }