Skip to content

Commit c2d461b

Browse files
committed
Format
1 parent 0d9c353 commit c2d461b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/ql/lib/semmle/code/java/Statement.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)