We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2907d53 commit dc6a132Copy full SHA for dc6a132
java/ql/lib/semmle/code/java/dataflow/internal/AccessPathSyntax.qll
@@ -19,7 +19,7 @@ module AccessPath {
19
private string getRawToken(AccessPath path, int n) {
20
// Avoid splitting by '.' since tokens may contain dots, e.g. `Field[foo.Bar.x]`.
21
// Instead use regexpFind to match valid tokens, and supplement with a final length
22
- // check to ensure all characters were included in a token.
+ // check (in `AccessPath.hasSyntaxError`) to ensure all characters were included in a token.
23
result = path.regexpFind("\\w+(?:\\[[^\\]]*\\])?(?=\\.|$)", n, _)
24
}
25
0 commit comments