Skip to content

Commit 9e41f43

Browse files
author
Daniel Santos
committed
Fix: android.util.Log is final. No inheritance handling is needed.
1 parent 032a7e7 commit 9e41f43

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

java/ql/src/experimental/semmle/code/java/Logging.qll

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ class LoggingCall extends MethodAccess {
2929
)
3030
or
3131
exists(RefType t, Method m | t.hasQualifiedName("android.util", "Log") |
32-
(
33-
m.hasName(["d", "e", "i", "v", "w", "wtf"])
34-
) and
35-
(
36-
m.getDeclaringType().getASourceSupertype*() = t or
37-
m.getDeclaringType().extendsOrImplements*(t)
38-
) and
32+
m.hasName(["d", "e", "i", "v", "w", "wtf"]) and
33+
m.getDeclaringType() = t and
3934
m.getReturnType() instanceof IntegralType and
4035
this = m.getAReference()
4136
)

0 commit comments

Comments
 (0)