fix bug with listing conformance resources more than once
This commit is contained in:
parent
fe9dc1919b
commit
2ff9da0577
|
@ -187,7 +187,13 @@ public class MetadataResourceManager<T extends MetadataResource> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<T> getList() {
|
public List<T> getList() {
|
||||||
return list;
|
List<T> res = new ArrayList<>();
|
||||||
|
for (T t : list) {
|
||||||
|
if (!res.contains(t)) {
|
||||||
|
res.add(t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Set<String> keys() {
|
public Set<String> keys() {
|
||||||
|
|
Loading…
Reference in New Issue