mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 01:19:14 +00:00
only record sorting errors if debugging snapshot generation
This commit is contained in:
parent
38b5295f8d
commit
d1a785e5ad
@ -3174,7 +3174,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
|||||||
}
|
}
|
||||||
if (mandatory) {
|
if (mandatory) {
|
||||||
if (prefixLength == 0)
|
if (prefixLength == 0)
|
||||||
errors.add("Differential contains path "+path+" which is not found in the in base "+baseName);
|
errors.add("Differential contains path "+path+" which is not found in the base "+baseName);
|
||||||
else
|
else
|
||||||
errors.add("Differential contains path "+path+" which is actually "+actual+", which is not found in the in base "+ baseName);
|
errors.add("Differential contains path "+path+" which is actually "+actual+", which is not found in the in base "+ baseName);
|
||||||
}
|
}
|
||||||
@ -3293,7 +3293,9 @@ public class ProfileUtilities extends TranslatingUtilities {
|
|||||||
edh.getChildren().get(0).baseIndex = cmp.find(edh.getChildren().get(0).getSelf().getPath(), false);
|
edh.getChildren().get(0).baseIndex = cmp.find(edh.getChildren().get(0).getSelf().getPath(), false);
|
||||||
else
|
else
|
||||||
Collections.sort(edh.getChildren(), cmp);
|
Collections.sort(edh.getChildren(), cmp);
|
||||||
cmp.checkForErrors(errors);
|
if (debug) {
|
||||||
|
cmp.checkForErrors(errors);
|
||||||
|
}
|
||||||
|
|
||||||
for (ElementDefinitionHolder child : edh.getChildren()) {
|
for (ElementDefinitionHolder child : edh.getChildren()) {
|
||||||
if (child.getChildren().size() > 0) {
|
if (child.getChildren().size() > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user