Merge pull request #11623 from jcogs33/jcogs33/exclude-funcexpr-from-dataflowtargetapi

Java/C#: exclude `FunctionalExpr`s from `DataFlowTargetApi`
This commit is contained in:
Jami
2022-12-14 12:22:50 -05:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ private predicate isRelevantForModels(J::Callable api) {
not isJdkInternal(api.getCompilationUnit()) and
not api instanceof J::MainMethod and
not api instanceof J::StaticInitializer and
not exists(J::FunctionalExpr funcExpr | api = funcExpr.asMethod()) and
not api.(J::Constructor).isParameterless()
}