Skip to content

Commit

Permalink
Set isMutated in single-update method also
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno committed Mar 26, 2024
1 parent b386953 commit 2b44e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ private void singularSetter(InnerClass.Builder classBuilder,
.addContent(Objects.class)
.addContentLine(".requireNonNull(" + singularName + ");")
.addContentLine("this." + name() + ".add(" + singularName + ");")
.update(this::extraAdderContent)
.addContentLine("return self();");
classBuilder.addMethod(builder);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ interface SingleValuedDefaultValuesBlueprint {
String DEFAULT_STRING = "defaultValue";

@Option.Default(DEFAULT_STRING)
@Option.Singular
List<String> strings();

}

0 comments on commit 2b44e80

Please sign in to comment.