Skip to content

Commit e1101e5

Browse files
committed
Minor improvement to existing tests
1 parent 768203b commit e1101e5

File tree

1 file changed

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

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ public class Test {
138138
MyAbstractMapEntry newMAMEWithMapValue(Object element) { return new MyAbstractMapEntry(null,element); }
139139
MyAbstractMapEntryDecorator newMAMEDWithMapValue(Object element) { return new MyAbstractMapEntryDecorator(newMAMEWithMapValue(element)); }
140140
MultiValueMap newMVMWithMapValue(Object element) { MultiValueMap m = new MultiValueMap(); m.put(null,element); return m; }
141-
MultiMap newMMWithMapValue(Object element) { MultiMap m = new MultiValueMap(); m.put(null,element); return m; }
142141
ArrayListValuedHashMap newALVHMWithMapValue(Object element) { ArrayListValuedHashMap m = new ArrayListValuedHashMap(); m.put(null,element); return m; }
143142
HashSetValuedHashMap newHSVHMWithMapValue(Object element) { HashSetValuedHashMap m = new HashSetValuedHashMap(); m.put(null,element); return m; }
144143
OrderedMapIterator newOMIWithMapValue(Object element) { LinkedMap m = new LinkedMap(); m.put(null,element); return m.mapIterator(); }
@@ -1839,7 +1838,7 @@ public void test() {
18391838
{
18401839
// "org.apache.commons.collections4;Get;true;get;;;MapValue of Argument[-1];ReturnValue;value"
18411840
Object out = null;
1842-
MultiMap in = newMMWithMapValue((String)source());
1841+
MultiMap in = newMVMWithMapValue((String)source());
18431842
out = in.get(null);
18441843
sink(out); // $ hasValueFlow
18451844
}
@@ -1874,7 +1873,7 @@ public void test() {
18741873
{
18751874
// "org.apache.commons.collections4;Get;true;remove;(Object);;MapValue of Argument[-1];ReturnValue;value"
18761875
Object out = null;
1877-
MultiMap in = newMMWithMapValue((String)source());
1876+
MultiMap in = newMVMWithMapValue((String)source());
18781877
out = in.remove(null);
18791878
sink(out); // $ hasValueFlow
18801879
}
@@ -1909,7 +1908,7 @@ public void test() {
19091908
{
19101909
// "org.apache.commons.collections4;Get;true;values;();;MapValue of Argument[-1];Element of ReturnValue;value"
19111910
Collection out = null;
1912-
MultiMap in = newMMWithMapValue((String)source());
1911+
MultiMap in = newMVMWithMapValue((String)source());
19131912
out = in.values();
19141913
sink(getElement(out)); // $ hasValueFlow
19151914
}
@@ -2889,7 +2888,7 @@ public void test() {
28892888
{
28902889
// "org.apache.commons.collections4;MultiMap;true;get;;;Element of MapValue of Argument[-1];Element of ReturnValue;value"
28912890
Collection out = null;
2892-
MultiMap in = newMMWithMapValue((String)source());
2891+
MultiMap in = newMVMWithMapValue((String)source());
28932892
out = (Collection)in.get(null);
28942893
sink(getElement(out)); // $ hasValueFlow
28952894
}
@@ -2931,7 +2930,7 @@ public void test() {
29312930
{
29322931
// "org.apache.commons.collections4;MultiMap;true;values;;;Element of MapValue of Argument[-1];Element of ReturnValue;value"
29332932
Collection out = null;
2934-
MultiMap in = newMMWithMapValue((String)source());
2933+
MultiMap in = newMVMWithMapValue((String)source());
29352934
out = in.values();
29362935
sink(getElement(out)); // $ hasValueFlow
29372936
}
@@ -3344,7 +3343,7 @@ public void test() {
33443343
{
33453344
// "org.apache.commons.collections4;Put;true;put;;;MapValue of Argument[-1];ReturnValue;value"
33463345
Object out = null;
3347-
MultiMap in = newMMWithMapValue((String)source());
3346+
MultiMap in = newMVMWithMapValue((String)source());
33483347
out = in.put(null, null);
33493348
sink(out); // $ hasValueFlow
33503349
}

0 commit comments

Comments
 (0)