Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 10, 2025
1 parent e999f48 commit 098ce86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mdo/model-v3.vm
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 098ce86

Please sign in to comment.