mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Exclude methods with non-public parameter types
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user