Fix bug processing modified differentials
This commit is contained in:
parent
d29926b4a5
commit
ae7b962d29
|
@ -2176,9 +2176,9 @@ public class ProfileUtilities {
|
|||
protected boolean discriminatorMatches(List<ElementDefinitionSlicingDiscriminatorComponent> diff, List<ElementDefinitionSlicingDiscriminatorComponent> base) {
|
||||
if (diff.isEmpty() || base.isEmpty())
|
||||
return true;
|
||||
if (diff.size() != base.size())
|
||||
if (diff.size() < base.size())
|
||||
return false;
|
||||
for (int i = 0; i < diff.size(); i++)
|
||||
for (int i = 0; i < base.size(); i++)
|
||||
if (!matches(diff.get(i), base.get(i)))
|
||||
return false;
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue