mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Update model for getAll
This commit is contained in:
@@ -21,7 +21,7 @@ private class GuavaBaseCsv extends SummaryModelCsv {
|
||||
"com.google.common.cache;LoadingCache;true;get;(Object);;MapValue of Argument[-1];ReturnValue;value",
|
||||
"com.google.common.cache;LoadingCache;true;getUnchecked;(Object);;MapValue of Argument[-1];ReturnValue;value",
|
||||
"com.google.common.cache;LoadingCache;true;apply;(Object);;MapValue of Argument[-1];ReturnValue;value",
|
||||
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;Element of Argument[0];MapKey of ReturnValue;value",
|
||||
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value", // technically, an interestion between MapKey of Argument[-1] and Element of Argument[0]; but we don't model intersections.
|
||||
"com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapValue of Argument[-1];MapValue of ReturnValue;value"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -139,11 +139,10 @@ public class Test {
|
||||
sink(out); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "com.google.common.cache;LoadingCache;true;getAll;(Iterable);;Element of Argument[0];MapKey of ReturnValue;value"
|
||||
// "com.google.common.cache;LoadingCache;true;getAll;(Iterable);;MapKey of Argument[-1];MapKey of ReturnValue;value"
|
||||
ImmutableMap out = null;
|
||||
Iterable in = newWithElement(source());
|
||||
LoadingCache instance = null;
|
||||
out = instance.getAll(in);
|
||||
LoadingCache in = newCacheWithMapKey(source());
|
||||
out = in.getAll(null);
|
||||
sink(getMapKey(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user