Java: Don't require that the source is directly within the TargetApi itself (in that case wrappers get excluded).

This commit is contained in:
Michael Nebel
2022-02-28 15:14:03 +01:00
parent 4a0b2b64b3
commit 66fe0e74b5

View File

@@ -43,7 +43,6 @@ string captureSource(TargetAPI api) {
exists(DataFlow::Node source, DataFlow::Node sink, FromSourceConfiguration config, string kind |
config.hasFlow(source, sink) and
sourceNode(source, kind) and
api = source.getEnclosingCallable() and
api = sink.getEnclosingCallable() and
result = asSourceModel(api, returnNodeAsOutput(sink), kind)
)