mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Fix: android.util.Log is final. No inheritance handling is needed.
This commit is contained in:
@@ -29,13 +29,8 @@ class LoggingCall extends MethodAccess {
|
||||
)
|
||||
or
|
||||
exists(RefType t, Method m | t.hasQualifiedName("android.util", "Log") |
|
||||
(
|
||||
m.hasName(["d", "e", "i", "v", "w", "wtf"])
|
||||
) and
|
||||
(
|
||||
m.getDeclaringType().getASourceSupertype*() = t or
|
||||
m.getDeclaringType().extendsOrImplements*(t)
|
||||
) and
|
||||
m.hasName(["d", "e", "i", "v", "w", "wtf"]) and
|
||||
m.getDeclaringType() = t and
|
||||
m.getReturnType() instanceof IntegralType and
|
||||
this = m.getAReference()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user