mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Java: Exclude interface members from model generation.
This commit is contained in:
@@ -72,7 +72,10 @@ private predicate isRelevantForModels(J::Callable api) {
|
||||
/**
|
||||
* Holds if it is relevant to generate models for `api` based on data flow analysis.
|
||||
*/
|
||||
predicate isRelevantForDataFlowModels = isRelevantForModels/1;
|
||||
predicate isRelevantForDataFlowModels(J::Callable api) {
|
||||
isRelevantForModels(api) and
|
||||
(not api.getDeclaringType() instanceof J::Interface or exists(api.getBody()))
|
||||
}
|
||||
|
||||
predicate isRelevantForTypeBasedFlowModels = isRelevantForModels/1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user