Skip to content

Commit e6df816

Browse files
committed
Fix up old tests for new helper functions
1 parent cf03bd8 commit e6df816

File tree

1 file changed

+10
-10
lines changed
  • java/ql/test/library-tests/frameworks/apache-collections

1 file changed

+10
-10
lines changed

java/ql/test/library-tests/frameworks/apache-collections/Test.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ public void test() throws Exception {
19201920
{
19211921
// "org.apache.commons.collections4;Get;true;entrySet;;;MapKey of Argument[-1];MapKey of Element of ReturnValue;value"
19221922
Set<Map.Entry> out = null;
1923-
Get in = newTrieWithMapKey((String)source());
1923+
Get in = newPatriciaTrieWithMapKey((String)source());
19241924
out = in.entrySet();
19251925
sink(getMapKeyFromEntry(getElement(out))); // $ hasValueFlow
19261926
}
@@ -1941,7 +1941,7 @@ public void test() throws Exception {
19411941
{
19421942
// "org.apache.commons.collections4;Get;true;entrySet;;;MapValue of Argument[-1];MapValue of Element of ReturnValue;value"
19431943
Set<Map.Entry> out = null;
1944-
Get in = newTrieWithMapValue((String)source());
1944+
Get in = newPatriciaTrieWithMapValue((String)source());
19451945
out = in.entrySet();
19461946
sink(getMapValueFromEntry(getElement(out))); // $ hasValueFlow
19471947
}
@@ -1962,7 +1962,7 @@ public void test() throws Exception {
19621962
{
19631963
// "org.apache.commons.collections4;Get;true;get;;;MapValue of Argument[-1];ReturnValue;value"
19641964
Object out = null;
1965-
Get in = newTrieWithMapValue((String)source());
1965+
Get in = newPatriciaTrieWithMapValue((String)source());
19661966
out = in.get(null);
19671967
sink(out); // $ hasValueFlow
19681968
}
@@ -1976,7 +1976,7 @@ public void test() throws Exception {
19761976
{
19771977
// "org.apache.commons.collections4;Get;true;keySet;();;MapKey of Argument[-1];Element of ReturnValue;value"
19781978
Set out = null;
1979-
Get in = newTrieWithMapKey((String)source());
1979+
Get in = newPatriciaTrieWithMapKey((String)source());
19801980
out = in.keySet();
19811981
sink(getElement(out)); // $ hasValueFlow
19821982
}
@@ -1997,7 +1997,7 @@ public void test() throws Exception {
19971997
{
19981998
// "org.apache.commons.collections4;Get;true;remove;(Object);;MapValue of Argument[-1];ReturnValue;value"
19991999
Object out = null;
2000-
Get in = newTrieWithMapValue((String)source());
2000+
Get in = newPatriciaTrieWithMapValue((String)source());
20012001
out = in.remove(null);
20022002
sink(out); // $ hasValueFlow
20032003
}
@@ -2032,7 +2032,7 @@ public void test() throws Exception {
20322032
{
20332033
// "org.apache.commons.collections4;Get;true;values;();;MapValue of Argument[-1];Element of ReturnValue;value"
20342034
Collection out = null;
2035-
Get in = newTrieWithMapValue((String)source());
2035+
Get in = newPatriciaTrieWithMapValue((String)source());
20362036
out = in.values();
20372037
sink(getElement(out)); // $ hasValueFlow
20382038
}
@@ -3768,28 +3768,28 @@ public void test() throws Exception {
37683768
{
37693769
// "org.apache.commons.collections4;Trie;true;prefixMap;;;MapKey of Argument[-1];MapKey of ReturnValue;value"
37703770
SortedMap out = null;
3771-
Trie in = newTrieWithMapKey((String)source());
3771+
Trie in = newPatriciaTrieWithMapKey((String)source());
37723772
out = in.prefixMap(null);
37733773
sink(getMapKey(out)); // $ hasValueFlow
37743774
}
37753775
{
37763776
// "org.apache.commons.collections4;Trie;true;prefixMap;;;MapValue of Argument[-1];MapValue of ReturnValue;value"
37773777
SortedMap out = null;
3778-
Trie in = newTrieWithMapValue((String)source());
3778+
Trie in = newPatriciaTrieWithMapValue((String)source());
37793779
out = in.prefixMap(null);
37803780
sink(getMapValue(out)); // $ hasValueFlow
37813781
}
37823782
{
37833783
// "org.apache.commons.collections4;TrieUtils;true;unmodifiableTrie;;;MapKey of Argument[0];MapKey of ReturnValue;value"
37843784
Trie out = null;
3785-
Trie in = newTrieWithMapKey((String)source());
3785+
Trie in = newPatriciaTrieWithMapKey((String)source());
37863786
out = TrieUtils.unmodifiableTrie(in);
37873787
sink(getMapKey(out)); // $ hasValueFlow
37883788
}
37893789
{
37903790
// "org.apache.commons.collections4;TrieUtils;true;unmodifiableTrie;;;MapValue of Argument[0];MapValue of ReturnValue;value"
37913791
Trie out = null;
3792-
Trie in = newTrieWithMapValue((String)source());
3792+
Trie in = newPatriciaTrieWithMapValue((String)source());
37933793
out = TrieUtils.unmodifiableTrie(in);
37943794
sink(getMapValue(out)); // $ hasValueFlow
37953795
}

0 commit comments

Comments
 (0)