Add documentation to new library method and use the singular form

This commit is contained in:
luchua-bc
2020-11-02 10:53:46 +00:00
parent 7ac3fb41d5
commit 8da9b9d3ea

View File

@@ -43,8 +43,9 @@ class IntentGetExtraMethod extends Method, TaintPreservingCallable {
override predicate returnsTaintFrom(int arg) { arg = -1 }
}
class BundleGetterMethods extends Method, TaintPreservingCallable {
BundleGetterMethods() {
/** A getter on `android.os.BaseBundle` or `android.os.Bundle`. */
class BundleGetterMethod extends Method, TaintPreservingCallable {
BundleGetterMethod() {
getDeclaringType().hasQualifiedName("android.os", ["BaseBundle", "Bundle"]) and
getName().matches("get%")
}