Skip to content

Commit 45cec3d

Browse files
committed
Java: Use this consistently in QL classes.
1 parent 0c1ce74 commit 45cec3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/src/Security/CWE/CWE-295/InsecureTrustManager.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import DataFlow::PathGraph
2323
*/
2424
class InsecureX509TrustManager extends RefType {
2525
InsecureX509TrustManager() {
26-
getASupertype*() instanceof X509TrustManager and
26+
this.getASupertype*() instanceof X509TrustManager and
2727
exists(Method m |
2828
m.getDeclaringType() = this and
2929
m.hasName("checkServerTrusted") and
@@ -34,7 +34,7 @@ class InsecureX509TrustManager extends RefType {
3434

3535
/** The `java.security.cert.CertificateException` class. */
3636
private class CertificateException extends RefType {
37-
CertificateException() { hasQualifiedName("java.security.cert", "CertificateException") }
37+
CertificateException() { this.hasQualifiedName("java.security.cert", "CertificateException") }
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)