Skip to content

Commit 53ee465

Browse files
committed
Fix errors in generated tests that stop compilation
1 parent a20acfe commit 53ee465

File tree

1 file changed

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

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
import org.apache.commons.collections4.iterators.UnmodifiableMapIterator;
9393
import org.apache.commons.collections4.iterators.UnmodifiableOrderedMapIterator;
9494
import org.apache.commons.collections4.iterators.ZippingIterator;
95-
import org.apache.commons.collections4.keyvalue.K;
9695
import org.apache.commons.collections4.keyvalue.MultiKey;
9796
import org.apache.commons.collections4.list.AbstractLinkedList;
9897
import org.apache.commons.collections4.list.CursorableLinkedList;
@@ -1751,7 +1750,7 @@ public void test() throws Exception {
17511750
{
17521751
// "org.apache.commons.collections4.map;DefaultedMap;true;defaultedMap;;;MapKey of Argument[0];MapKey of ReturnValue;value"
17531752
Map out = null;
1754-
Map in = (Map)Map.of(source(), null);
1753+
Map<Object,String> in = (Map)Map.of(source(), null);
17551754
out = DefaultedMap.defaultedMap(in, (Transformer)null);
17561755
sink(getMapKey(out)); // $ hasValueFlow
17571756
}
@@ -1765,14 +1764,14 @@ public void test() throws Exception {
17651764
{
17661765
// "org.apache.commons.collections4.map;DefaultedMap;true;defaultedMap;;;MapKey of Argument[0];MapKey of ReturnValue;value"
17671766
DefaultedMap out = null;
1768-
Map in = (Map)Map.of(source(), null);
1767+
Map<Object,String> in = (Map)Map.of(source(), null);
17691768
out = DefaultedMap.defaultedMap(in, (Factory)null);
17701769
sink(getMapKey(out)); // $ hasValueFlow
17711770
}
17721771
{
17731772
// "org.apache.commons.collections4.map;DefaultedMap;true;defaultedMap;;;MapValue of Argument[0];MapValue of ReturnValue;value"
17741773
Map out = null;
1775-
Map in = (Map)Map.of(null, source());
1774+
Map<Object,String> in = (Map)Map.of(null, source());
17761775
out = DefaultedMap.defaultedMap(in, (Transformer)null);
17771776
sink(getMapValue(out)); // $ hasValueFlow
17781777
}
@@ -1786,7 +1785,7 @@ public void test() throws Exception {
17861785
{
17871786
// "org.apache.commons.collections4.map;DefaultedMap;true;defaultedMap;;;MapValue of Argument[0];MapValue of ReturnValue;value"
17881787
DefaultedMap out = null;
1789-
Map in = (Map)Map.of(null, source());
1788+
Map<Object,String> in = (Map)Map.of(null, source());
17901789
out = DefaultedMap.defaultedMap(in, (Factory)null);
17911790
sink(getMapValue(out)); // $ hasValueFlow
17921791
}

0 commit comments

Comments
 (0)