fix bug with listing conformance resources more than once

This commit is contained in:
Grahame Grieve 2019-12-03 12:27:39 +11:00
parent fe9dc1919b
commit 2ff9da0577
1 changed files with 7 additions and 1 deletions

View File

@ -187,7 +187,13 @@ public class MetadataResourceManager<T extends MetadataResource> {
}
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() {