We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 124e4dd commit 8062859Copy full SHA for 8062859
java/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll
@@ -72,7 +72,10 @@ private predicate isRelevantForModels(J::Callable api) {
72
/**
73
* Holds if it is relevant to generate models for `api` based on data flow analysis.
74
*/
75
-predicate isRelevantForDataFlowModels = isRelevantForModels/1;
+predicate isRelevantForDataFlowModels(J::Callable api) {
76
+ isRelevantForModels(api) and
77
+ (not api.getDeclaringType() instanceof J::Interface or exists(api.getBody()))
78
+}
79
80
predicate isRelevantForTypeBasedFlowModels = isRelevantForModels/1;
81
0 commit comments