@@ -83,11 +83,19 @@ public void test() throws Exception {
83
83
sink (out ); // $ hasValueFlow
84
84
}
85
85
{
86
- // "com.google.common.cache;Cache;true;getAllPresent;(Iterable);;MapValue of Argument[-1];MapValue of ReturnValue;value"
86
+ // "com.google.common.cache;Cache;true;getAllPresent;(Iterable);;Element of Argument[0];MapKey of ReturnValue;value"
87
87
ImmutableMap out = null ;
88
- Cache in = newCacheWithMapValue (source ());
88
+ Iterable in = newWithElement (source ());
89
+ Cache instance = null ;
90
+ out = instance .getAllPresent (in );
91
+ sink (getMapKey (out )); // $ hasValueFlow
92
+ }
93
+ {
94
+ // "com.google.common.cache;Cache;true;getAllPresent;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value"
95
+ ImmutableMap out = null ;
96
+ Cache in = newCacheWithMapKey (source ());
89
97
out = in .getAllPresent (null );
90
- sink (getMapValue (out )); // $ hasValueFlow
98
+ sink (getMapKey (out )); // $ hasValueFlow
91
99
}
92
100
{
93
101
// "com.google.common.cache;Cache;true;getIfPresent;;;MapValue of Argument[-1];ReturnValue;value"
@@ -139,10 +147,18 @@ public void test() throws Exception {
139
147
sink (out ); // $ hasValueFlow
140
148
}
141
149
{
142
- // "com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value"
150
+ // "com.google.common.cache;LoadingCache;true;getAll;(Iterable);;Element of Argument[0];MapKey of Argument[-1];value"
151
+ LoadingCache out = null ;
152
+ Iterable in = (Iterable )newWithElement (source ());
153
+ out .getAll (in );
154
+ sink (getMapKey (out )); // $ hasValueFlow
155
+ }
156
+ {
157
+ // "com.google.common.cache;LoadingCache;true;getAll;(Iterable);;Element of Argument[0];MapKey of ReturnValue;value"
143
158
ImmutableMap out = null ;
144
- LoadingCache in = newCacheWithMapKey (source ());
145
- out = in .getAll (null );
159
+ Iterable in = (Iterable )newWithElement (source ());
160
+ LoadingCache instance = null ;
161
+ out = instance .getAll (in );
146
162
sink (getMapKey (out )); // $ hasValueFlow
147
163
}
148
164
{
0 commit comments