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

Skip to content

Commit 48b6c61

Browse files
tamasvajkatorralba
authored andcommitted
Quality improvement: add explicit this in QL
Co-authored-by: Tony Torralba <[email protected]>
1 parent e0afaa4 commit 48b6c61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ class ExtensionMethodAccess extends MethodAccess {
19941994
// whereas the actual arguments begin at index 1.
19951995
override Expr getQualifier() { result.isNthChildOf(this, 0) }
19961996

1997-
override Expr getAnArgument() { result = getArgument(_) }
1997+
override Expr getAnArgument() { result = this.getArgument(_) }
19981998

19991999
override Expr getArgument(int index) { result = super.getArgument(index + 1) and index >= 0 }
20002000
}

0 commit comments

Comments
 (0)