Don't generate snapshots when scanning structure definitions for resource names

This commit is contained in:
Grahame Grieve 2024-02-25 19:16:18 +11:00
parent 0642e123a1
commit 3a27e012be
1 changed files with 3 additions and 4 deletions

View File

@ -377,10 +377,9 @@ public class ContextUtilities implements ProfileKnowledgeProvider {
public Set<String> getConcreteResourceSet() {
if (concreteResourceNameSet == null) {
concreteResourceNameSet = new HashSet<>();
Set<String> names = new HashSet<>();
for (StructureDefinition sd : allStructures()) {
if (sd.getKind() == StructureDefinitionKind.RESOURCE && !sd.getAbstract()) {
names.add(sd.getType());
for (StructureDefinition sd : getStructures()) {
if (sd.getKind() == StructureDefinitionKind.RESOURCE && !sd.getAbstract() && sd.getDerivation() == TypeDerivationRule.SPECIALIZATION) {
concreteResourceNameSet.add(sd.getType());
}
}
}