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 {
440
440
* Gets the expression on the right-hand side of the arrow, if any.
441
441
*
442
442
* 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.
444
444
* This predicate is mutually exclusive with `getRuleStatement`.
445
445
*/
446
- Expr getRuleExpression ( ) {
446
+ Expr getRuleExpression ( ) {
447
447
result .getParent ( ) = this and result .getIndex ( ) = - 1
448
448
or
449
449
exists ( ExprStmt es | es .getParent ( ) = this and es .getIndex ( ) = - 1 | result = es .getExpr ( ) )
@@ -453,10 +453,10 @@ class SwitchCase extends Stmt, @case {
453
453
* Gets the statement on the right-hand side of the arrow, if any.
454
454
*
455
455
* 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 ...`.
457
457
* This predicate is mutually exclusive with `getRuleExpression`.
458
458
*/
459
- Stmt getRuleStatement ( ) {
459
+ Stmt getRuleStatement ( ) {
460
460
result .getParent ( ) = this and result .getIndex ( ) = - 1 and not result instanceof ExprStmt
461
461
}
462
462
}
You can’t perform that action at this time.
0 commit comments