File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
java/ql/src/semmle/code/java/frameworks/apache Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ private class ApacheCollectionsModel extends SummaryModelCsv {
84
84
"org.apache.commons.collections4;IterableGet;true;mapIterator;;;MapValue of Argument[-1];MapValue of ReturnValue;value" ,
85
85
"org.apache.commons.collections4;KeyValue;true;getKey;;;MapKey of Argument[-1];ReturnValue;value" ,
86
86
"org.apache.commons.collections4;KeyValue;true;getValue;;;MapValue of Argument[-1];ReturnValue;value" ,
87
+ // Note that MapIterator<K, V> implements Iterator<K>, so it iterates over the keys of the map.
88
+ // In order for the models of Iterator to work we have to use Element instead of MapKey for key data.
87
89
"org.apache.commons.collections4;MapIterator;true;getKey;;;Element of Argument[-1];ReturnValue;value" ,
88
90
"org.apache.commons.collections4;MapIterator;true;getValue;;;MapValue of Argument[-1];ReturnValue;value" ,
89
91
"org.apache.commons.collections4;MapIterator;true;next;;;Element of Argument[-1];ReturnValue;value" ,
You can’t perform that action at this time.
0 commit comments