fix issue in extension processing

This commit is contained in:
Grahame Grieve 2023-10-09 21:09:39 +11:00
parent 423e50c797
commit d08039a3a7
6 changed files with 220 additions and 226 deletions

View File

@ -366,9 +366,8 @@ public abstract class BackboneElement extends Element implements IBaseBackboneEl
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }

View File

@ -293,9 +293,8 @@ public abstract class BackboneType extends Type implements IBaseBackboneElement
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }

View File

@ -367,9 +367,8 @@ public abstract class BackboneElement extends DataType implements IBaseBackboneE
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }

View File

@ -307,9 +307,8 @@ public abstract class BackboneType extends DataType implements IBaseBackboneElem
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }

View File

@ -331,9 +331,8 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }

View File

@ -270,9 +270,8 @@ public void checkNoModifiers(String noun, String verb) throws FHIRException {
retVal.add(next); retVal.add(next);
} }
} }
List<Extension> sv = super.getExtensionsByUrl(theUrls); retVal.addAll(super.getExtensionsByUrl(theUrls));
sv.addAll(retVal); return java.util.Collections.unmodifiableList(retVal);
return sv;
} }