Skip to content

Commit

Permalink
fixing formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Sep 11, 2023
1 parent 70d66dd commit a8195f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ private void makeEditable(JDefinedClass clazz) {
JClass builderType = clazz.owner().ref(clazz.fullName() + "Builder");
JClass editableType = clazz.owner().ref(Editable.class).narrow(builderType);
clazz._implements(editableType);
JMethod editMethod = clazz.method(JMod.PUBLIC , builderType, "edit");
JMethod editMethod = clazz.method(JMod.PUBLIC, builderType, "edit");
editMethod.annotate(JsonIgnore.class);
JInvocation newBuilder = JExpr._new(builderType).arg(JExpr._this());
editMethod.body()._return(newBuilder);
JMethod toBuilderMethod = clazz.method(JMod.PUBLIC , builderType, "toBuilder");
JMethod toBuilderMethod = clazz.method(JMod.PUBLIC, builderType, "toBuilder");
toBuilderMethod.annotate(JsonIgnore.class);
toBuilderMethod.body()._return(JExpr.invoke("edit"));
}
Expand Down

0 comments on commit a8195f4

Please sign in to comment.