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 {
91
91
static Object getMapKey (AbstractMapEntryDecorator container ) { return container .getKey (); }
92
92
static Object getMapKey (Map container ) { return container .keySet ().iterator ().next (); }
93
93
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 ) ; }
95
95
static Object getMapValue (AbstractKeyValue container ) { return container .getValue (); }
96
96
static Object getMapValueFromEntry (Map .Entry container ) { return container .getValue (); }
97
97
static Object getMapValue (AbstractMapEntryDecorator container ) { return container .getValue (); }
98
98
static Object getMapValue (Map container ) { return container .get (null ); }
99
99
static Object getMapValue (MapIterator container ) { return container .getValue (); }
100
100
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 ) ; }
102
102
103
103
Object [] newWithArrayElement (Object element ) { return new Object [] {element }; }
104
104
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 {
10
10
[
11
11
//"package;type;overrides;name;signature;ext;inputspec;outputspec;kind",
12
12
"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" ,
15
13
"generatedtest;Test;false;newRBWithMapValue;;;Argument[0];MapValue of ReturnValue;value" ,
16
14
"generatedtest;Test;false;newRBWithMapKey;;;Argument[0];MapKey of ReturnValue;value"
17
15
]
You can’t perform that action at this time.
0 commit comments