diff --git a/src/mdo/model-v3.vm b/src/mdo/model-v3.vm index 60924447f9b..b2a21f7473d 100644 --- a/src/mdo/model-v3.vm +++ b/src/mdo/model-v3.vm @@ -189,10 +189,10 @@ public class ${class.name} public void set${cap}(${type} ${field.name}) { #if ($field.type == "DOM") - if (${field.name} instanceof Xpp3Dom xpp3DomFieldName) { - if (!Objects.equals(xpp3DomFieldName.getDom(), getDelegate().${pfx}${cap}())) { - update(getDelegate().with${cap}(xpp3DomFieldName.getDom())); - xpp3DomFieldName.setChildrenTracking(this::replace); + if (${field.name} instanceof Xpp3Dom xpp3Dom) { + if (!Objects.equals(xpp3Dom.getDom(), getDelegate().${pfx}${cap}())) { + update(getDelegate().with${cap}(xpp3Dom.getDom())); + xpp3Dom.setChildrenTracking(this::replace); } } else if (${field.name} == null) { if (getDelegate().${pfx}${cap}() != null) {