mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Fix query java/internal-representation-exposure regarding generic callees, and add a test
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import java.util.Map;
|
||||
|
||||
public class ExposesRep {
|
||||
private String[] strings;
|
||||
private Map<String, String> stringMap;
|
||||
|
||||
public ExposesRep() {
|
||||
strings = new String[1];
|
||||
}
|
||||
|
||||
public String[] getStrings() { return strings; }
|
||||
|
||||
public Map<String, String> getStringMap() {
|
||||
return stringMap;
|
||||
}
|
||||
|
||||
public void setStrings(String[] ss) {
|
||||
this.strings = ss;
|
||||
}
|
||||
|
||||
public void setStringMap(Map<String, String> m) {
|
||||
this.stringMap = m;
|
||||
}
|
||||
}
|
||||
|
||||
class GenericExposesRep<T> {
|
||||
private T[] array;
|
||||
|
||||
public T[] getArray() { return array; }
|
||||
}
|
||||
Reference in New Issue
Block a user