Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f22084e

Browse files
committed
Java 12: add more QL deprecated annotations
1 parent 0a569f6 commit f22084e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

java/ql/src/semmle/code/java/Expr.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,28 +1100,28 @@ class ConditionalExpr extends Expr, @conditionalexpr {
11001100
*/
11011101
deprecated class SwitchExpr extends Expr, @switchexpr {
11021102
/** Gets an immediate child statement of this `switch` expression. */
1103-
Stmt getAStmt() { result.getParent() = this }
1103+
deprecated Stmt getAStmt() { result.getParent() = this }
11041104

11051105
/**
11061106
* Gets the immediate child statement of this `switch` expression
11071107
* that occurs at the specified (zero-based) position.
11081108
*/
1109-
Stmt getStmt(int index) { result = this.getAStmt() and result.getIndex() = index }
1109+
deprecated Stmt getStmt(int index) { result = this.getAStmt() and result.getIndex() = index }
11101110

11111111
/**
11121112
* Gets a case of this `switch` expression,
11131113
* which may be either a normal `case` or a `default`.
11141114
*/
1115-
SwitchCase getACase() { result = getAConstCase() or result = getDefaultCase() }
1115+
deprecated SwitchCase getACase() { result = getAConstCase() or result = getDefaultCase() }
11161116

11171117
/** Gets a (non-default) `case` of this `switch` expression. */
1118-
ConstCase getAConstCase() { result.getParent() = this }
1118+
deprecated ConstCase getAConstCase() { result.getParent() = this }
11191119

11201120
/** Gets the `default` case of this switch expression, if any. */
1121-
DefaultCase getDefaultCase() { result.getParent() = this }
1121+
deprecated DefaultCase getDefaultCase() { result.getParent() = this }
11221122

11231123
/** Gets the expression of this `switch` expression. */
1124-
Expr getExpr() { result.getParent() = this }
1124+
deprecated Expr getExpr() { result.getParent() = this }
11251125

11261126
/** Gets a result expression of this `switch` expression. */
11271127
deprecated Expr getAResult() {

0 commit comments

Comments
 (0)