Skip to content

Commit c4304a9

Browse files
committed
Shared: add explicit this
1 parent dc6a132 commit c4304a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/AccessPathSyntax.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ class AccessPath extends string instanceof AccessPath::Range {
3939
/** Gets the `n`th token on the access path (if there are no syntax errors). */
4040
AccessPathToken getToken(int n) {
4141
result = getRawToken(this, n) and
42-
not hasSyntaxError()
42+
not this.hasSyntaxError()
4343
}
4444

4545
/** Gets the number of tokens on the path (if there are no syntax errors). */
4646
int getNumToken() {
4747
result = count(int n | exists(getRawToken(this, n))) and
48-
not hasSyntaxError()
48+
not this.hasSyntaxError()
4949
}
5050

5151
/** Gets the `n`th-last token, with 0 being the last token. */
52-
AccessPathToken getLastToken(int n) { result = getToken(getNumToken() - 1 - n) }
52+
AccessPathToken getLastToken(int n) { result = this.getToken(this.getNumToken() - 1 - n) }
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)