Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
property factory fixes (mergeFromSuperBuilder)
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Dec 8, 2016
1 parent b1c924e commit 1f468f0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ public void addMergeFromBuilder(Block code, String builder) {

@Override
public void addMergeFromSuperBuilder(Block code, String builder) {
code.addLine("%s(((%s) %s).%s());",
putAllMethod(property),
metadata.getGeneratedBuilder(),
builder,
getter(property));
code.addLine("%s(%s.%s());",
putAllMethod(property),
builder,
getter(property));

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,10 @@ public void addMergeFromBuilder(Block code, String builder) {

@Override
public void addMergeFromSuperBuilder(Block code, String builder) {
Excerpt base = new Block(code).add(builder);
code.addLine("%s(%s.%s());", addAllMethod(property), base, getter(property));
code.addLine("%s(%s.%s());",
addAllMethod(property),
builder,
getter(property));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ public void addMergeFromBuilder(Block code, String builder) {

@Override
public void addMergeFromSuperBuilder(Block code, String builder) {
code.addLine("%s(((%s) %s).%s());",
code.addLine("%s(%s.%s());",
putAllMethod(property),
metadata.getGeneratedBuilder(),
builder,
getter(property));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public void addMergeFromSuperValue(Block code, String value) {

@Override
public void addMergeFromBuilder(Block code, String builder) {
code.addLine("%s(((%s) %s).%s);",
code.addLine("%s(((%s) %s).%s());",
addAllMethod(property),
metadata.getGeneratedBuilder(),
builder,
Expand All @@ -331,9 +331,8 @@ public void addMergeFromBuilder(Block code, String builder) {

@Override
public void addMergeFromSuperBuilder(Block code, String builder) {
code.addLine("%s(((%s) %s).%s());",
code.addLine("%s(%s.%s());",
addAllMethod(property),
metadata.getGeneratedBuilder(),
builder,
getter(property));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,8 @@ public void addMergeFromBuilder(Block code, String builder) {

@Override
public void addMergeFromSuperBuilder(Block code, String builder) {
code.addLine("%s(((%s) %s).%s());",
code.addLine("%s(%s.%s());",
addAllMethod(property),
metadata.getGeneratedBuilder(),
builder,
getter(property));
}
Expand Down

0 comments on commit 1f468f0

Please sign in to comment.