File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
java/ql/test/library-tests/frameworks/apache-collections Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ public class Test {
9191 static Object getMapKey (AbstractMapEntryDecorator container ) { return container .getKey (); }
9292 static Object getMapKey (Map container ) { return container .keySet ().iterator ().next (); }
9393 static Object getMapKey (MultiValuedMap container ) { return container .keySet ().iterator ().next (); }
94- static Object getMapKeyFromPut (Put container ) { return null ; }
94+ static Object getMapKeyFromPut (Put container ) { return getMapKey (( Map ) container ) ; }
9595 static Object getMapValue (AbstractKeyValue container ) { return container .getValue (); }
9696 static Object getMapValueFromEntry (Map .Entry container ) { return container .getValue (); }
9797 static Object getMapValue (AbstractMapEntryDecorator container ) { return container .getValue (); }
9898 static Object getMapValue (Map container ) { return container .get (null ); }
9999 static Object getMapValue (MapIterator container ) { return container .getValue (); }
100100 static Collection getMapValue (MultiValuedMap container ) { return container .get (null ); }
101- static Object getMapValueFromPut (Put container ) { return null ; }
101+ static Object getMapValueFromPut (Put container ) { return getMapValue (( Map ) container ) ; }
102102
103103 Object [] newWithArrayElement (Object element ) { return new Object [] {element }; }
104104 ArrayStack <String > newArrayStackWithElement (String element ) { ArrayStack <String > a = new ArrayStack <String >(); a .push (element ); return a ; }
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ class SummaryModelTest extends SummaryModelCsv {
1010 [
1111 //"package;type;overrides;name;signature;ext;inputspec;outputspec;kind",
1212 "org.apache.commons.collections4.iterators;IteratorEnumeration;true;IteratorEnumeration;;;Element of Argument[0];Element of Argument[-1];value" ,
13- "generatedtest;Test;false;getMapKeyFromPut;;;MapKey of Argument[0];ReturnValue;value" ,
14- "generatedtest;Test;false;getMapValueFromPut;;;MapValue of Argument[0];ReturnValue;value" ,
1513 "generatedtest;Test;false;newRBWithMapValue;;;Argument[0];MapValue of ReturnValue;value" ,
1614 "generatedtest;Test;false;newRBWithMapKey;;;Argument[0];MapKey of ReturnValue;value"
1715 ]
You can’t perform that action at this time.
0 commit comments