Skip to content

Commit 96bf754

Browse files
Accept intrigus suggested doc clarifications
Co-authored-by: intrigus-lgtm <[email protected]>
1 parent 19cd97e commit 96bf754

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,16 +439,17 @@ class SwitchCase extends Stmt, @case {
439439
/**
440440
* Gets the expression on the right-hand side of the arrow, if any.
441441
*
442-
* Note this is mutually exclusive with `getRuleStatement`: it gets a value
443-
* when this case is of the form `case e1 -> e2`, where `e2` is not a block.
442+
* Note, this predicate gets a value when this switch case is of the form
443+
* `case e1 -> e2`, where `e2` is not a block. This predicate is mutually
444+
* exclusive with `getRuleStatement`.
444445
*/
445446
Expr getRuleExpression() { result.getParent() = this and result.getIndex() = -1 }
446447

447448
/**
448449
* Gets the statement on the right-hand side of the arrow, if any.
449450
*
450-
* Note this is mutually exclusive with `getRuleExpression`: it gets a value
451-
* when this case if of the form `case e1 -> { s1; s2; ... }`.
451+
* Note, this predicate gets a value when this switch case is of the form
452+
* `case e1 -> { s1; s2; ... }`. This predicate is mutually exclusive with `getRuleExpression`.
452453
*/
453454
Stmt getRuleStatement() { result.getParent() = this and result.getIndex() = -1 }
454455
}

0 commit comments

Comments
 (0)