File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -440,10 +440,10 @@ class SwitchCase extends Stmt, @case {
440440 * Gets the expression on the right-hand side of the arrow, if any.
441441 *
442442 * Note, this predicate gets a value when this switch case is of the form
443- * `case e1 -> e2`, where `e2` is neither a block nor a throw statement.
443+ * `case e1 -> e2`, where `e2` is neither a block nor a throw statement.
444444 * This predicate is mutually exclusive with `getRuleStatement`.
445445 */
446- Expr getRuleExpression ( ) {
446+ Expr getRuleExpression ( ) {
447447 result .getParent ( ) = this and result .getIndex ( ) = - 1
448448 or
449449 exists ( ExprStmt es | es .getParent ( ) = this and es .getIndex ( ) = - 1 | result = es .getExpr ( ) )
@@ -453,10 +453,10 @@ class SwitchCase extends Stmt, @case {
453453 * Gets the statement on the right-hand side of the arrow, if any.
454454 *
455455 * Note, this predicate gets a value when this switch case is of the form
456- * `case e1 -> { s1; s2; ... }` or `case e1 -> throw ...`.
456+ * `case e1 -> { s1; s2; ... }` or `case e1 -> throw ...`.
457457 * This predicate is mutually exclusive with `getRuleExpression`.
458458 */
459- Stmt getRuleStatement ( ) {
459+ Stmt getRuleStatement ( ) {
460460 result .getParent ( ) = this and result .getIndex ( ) = - 1 and not result instanceof ExprStmt
461461 }
462462}
You can’t perform that action at this time.
0 commit comments