mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Adapt to static methods and nested types returning unbound declaring types
Previously these returned raw declaring types instead
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user