mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Update Logging.qll
Simplified using a set-literal as suggested by @intrigus-lgtm
This commit is contained in:
@@ -30,12 +30,7 @@ class LoggingCall extends MethodAccess {
|
||||
or
|
||||
exists(RefType t, Method m | t.hasQualifiedName("android.util", "Log") |
|
||||
(
|
||||
m.hasName("d") or
|
||||
m.hasName("e") or
|
||||
m.hasName("i") or
|
||||
m.hasName("v") or
|
||||
m.hasName("w") or
|
||||
m.hasName("wtf")
|
||||
m.hasName(["d", "e", "i", "v", "w", "wtf"])
|
||||
) and
|
||||
(
|
||||
m.getDeclaringType().getASourceSupertype*() = t or
|
||||
|
||||
Reference in New Issue
Block a user