Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8f3a4b

Browse files
committed
Java: Minor additional type pruning.
1 parent 42a970b commit f8f3a4b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

java/ql/src/semmle/code/java/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ private module ImplCommon {
332332
exists(Node mid1, Node mid2, Content f |
333333
store(node1, f, mid1) and
334334
localValueStep*(mid1, mid2) and
335-
read(mid2, f, node2)
335+
read(mid2, f, node2) and
336+
compatibleTypes(node1.getTypeBound(), node2.getTypeBound())
336337
)
337338
}
338339

0 commit comments

Comments
 (0)