mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Merge pull request #3047 from aschackmull/java/typeflow-testcase
Java: Add test case to typeflow qltest.
This commit is contained in:
@@ -70,4 +70,19 @@ public class A extends ArrayList<Long> {
|
||||
int i2 = (Integer)x2;
|
||||
int j2 = i2;
|
||||
}
|
||||
|
||||
public static class C {
|
||||
private Map<String, String> map;
|
||||
public static C empty = new C(Collections.emptyMap());
|
||||
private C(Map<String, String> map) {
|
||||
this.map = map;
|
||||
}
|
||||
public C() {
|
||||
this(new LinkedHashMap<>());
|
||||
}
|
||||
public void put(String k, String v) {
|
||||
map.put(k, v);
|
||||
empty.put(k, v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user