Skip to content

Commit 1c06378

Browse files
Jami Cogswelljcogs33
authored andcommitted
Java: exclude FunctionalExprs from DataFlowTargetApi
1 parent bfe9ee3 commit 1c06378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/utils/modelgenerator/internal/CaptureModelsSpecific.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ private predicate isRelevantForModels(J::Callable api) {
5959
not isInTestFile(api.getCompilationUnit().getFile()) and
6060
not isJdkInternal(api.getCompilationUnit()) and
6161
not api instanceof J::MainMethod and
62-
not api instanceof J::StaticInitializer
62+
not api instanceof J::StaticInitializer and
63+
not exists(J::FunctionalExpr funcExpr | api = funcExpr.asMethod())
6364
}
6465

6566
/**

0 commit comments

Comments
 (0)