Exclude methods with non-public parameter types

This commit is contained in:
Benjamin Muskalla
2021-09-24 12:41:12 +02:00
parent cb0a567c03
commit 70e1724463

View File

@@ -361,6 +361,12 @@ private predicate excludedMember(Member m) {
m.(Method).getDeclaringType() instanceof EnumType and
m.hasName(["values", "valueOf"]) and
m.isStatic()
or
exists(Parameter p |
p = m.(Method).getAParameter() and
p.getType().fromSource() and
not p.getType().(RefType).isPublic()
)
}
private string stubMember(Member m) {