Fix query java/internal-representation-exposure regarding generic callees, and add a test

This commit is contained in:
Chris Smowton
2022-09-14 20:52:43 +01:00
parent c149754c6b
commit da04673cb0
5 changed files with 85 additions and 2 deletions

View File

@@ -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; }
}