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

Skip to content

Commit 0b08507

Browse files
committed
Document testedBranch
1 parent ba0a05c commit 0b08507

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ predicate pp(ClassOrInterface c, string s, int line) {
1616
exists(PpAst e | getEnclosingAst*(e) = c | ppPart(e, part, line, i))
1717
|
1818
part order by i
19-
)
19+
)
2020
}
2121

2222
private PpAst getEnclosingAst(PpAst e) {

java/ql/lib/semmle/code/java/controlflow/Guards.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class TypeTestGuard extends Guard {
223223
}
224224

225225
/**
226-
* Holds if this guard tests whether `e` has type `t`.
226+
* Holds if this guard tests whether `e` has type `t` on `testedBranch`.
227227
*
228228
* Note that record patterns that make at least one tighter restriction than the record's definition
229229
* (e.g. matching `record R(Object)` with `case R(String)`) means this only guarantees the tested type

0 commit comments

Comments
 (0)