Skip to content

Commit 66fe0e7

Browse files
committed
Java: Don't require that the source is directly within the TargetApi itself (in that case wrappers get excluded).
1 parent 4a0b2b6 commit 66fe0e7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

java/ql/src/utils/model-generator/CaptureSourceModels.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ string captureSource(TargetAPI api) {
4343
exists(DataFlow::Node source, DataFlow::Node sink, FromSourceConfiguration config, string kind |
4444
config.hasFlow(source, sink) and
4545
sourceNode(source, kind) and
46-
api = source.getEnclosingCallable() and
4746
api = sink.getEnclosingCallable() and
4847
result = asSourceModel(api, returnNodeAsOutput(sink), kind)
4948
)

0 commit comments

Comments
 (0)