Fix: android.util.Log is final. No inheritance handling is needed.

This commit is contained in:
Daniel Santos
2021-09-17 10:15:48 -05:00
parent 032a7e71fe
commit 9e41f43ee2

View File

@@ -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()
)