Adapt to static methods and nested types returning unbound declaring types

Previously these returned raw declaring types instead
This commit is contained in:
Chris Smowton
2021-06-11 16:15:33 +01:00
parent b34448af87
commit 74feaf2893
4 changed files with 13 additions and 13 deletions

View File

@@ -49,22 +49,22 @@ public class B {
void foo() throws InterruptedException {
{
// "java.util;Map<>$Entry;true;getKey;;;MapKey of Argument[-1];ReturnValue;value",
// "java.util;Map$Entry;true;getKey;;;MapKey of Argument[-1];ReturnValue;value",
Object out = null;
Object in = storeMapKeyEntry(source()); out = ((Map.Entry)in).getKey(); sink(out); // $ hasValueFlow
}
{
// "java.util;Map<>$Entry;true;getValue;;;MapValue of Argument[-1];ReturnValue;value",
// "java.util;Map$Entry;true;getValue;;;MapValue of Argument[-1];ReturnValue;value",
Object out = null;
Object in = storeMapValueEntry(source()); out = ((Map.Entry)in).getValue(); sink(out); // $ hasValueFlow
}
{
// "java.util;Map<>$Entry;true;setValue;;;MapValue of Argument[-1];ReturnValue;value",
// "java.util;Map$Entry;true;setValue;;;MapValue of Argument[-1];ReturnValue;value",
Object out = null;
Object in = storeMapValueEntry(source()); out = ((Map.Entry)in).setValue(null); sink(out); // $ hasValueFlow
}
{
// "java.util;Map<>$Entry;true;setValue;;;Argument[0];MapValue of Argument[-1];value",
// "java.util;Map$Entry;true;setValue;;;Argument[0];MapValue of Argument[-1];value",
Map.Entry out = null;
Object in = source(); out.setValue(in); sink(readMapValue(out)); // $ hasValueFlow
}