Merge pull request #6711 from bananabr/AndroidLoggingFix

Fix Android logging signature
This commit is contained in:
Chris Smowton
2021-09-22 17:23:04 +01:00
committed by GitHub

View File

@@ -18,8 +18,7 @@ class LoggingCall extends MethodAccess {
t.hasQualifiedName("org.scijava.log", "Logger") or
t.hasQualifiedName("com.google.common.flogger", "LoggingApi") or
t.hasQualifiedName("java.lang", "System$Logger") or
t.hasQualifiedName("java.util.logging", "Logger") or
t.hasQualifiedName("android.util", "Log")
t.hasQualifiedName("java.util.logging", "Logger")
|
(
m.getDeclaringType().getASourceSupertype*() = t or
@@ -28,6 +27,12 @@ class LoggingCall extends MethodAccess {
m.getReturnType() instanceof VoidType and
this = m.getAReference()
)
or
exists(RefType t, Method m | t.hasQualifiedName("android.util", "Log") |
m.hasName(["d", "e", "i", "v", "w", "wtf"]) and
m.getDeclaringType() = t and
this = m.getAReference()
)
}
/** Returns an argument which would be logged by this call. */