Closed TedCassirer closed 4 years ago
Thanks again.
Ah, I commited a misstake. Noticed it immediately after creating the PR. Sorry! I'll push the correct fix in a min
lol - I should test these before I merge
Disregard that. I just messed up updating my dependencies in my project causing me to build with the incorrect fix. It works as intended.
/**
* Return a new instance of {@code MyRecord} with a new value for {@code id}
*/
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
default MyRecord withId(long id) {
return new MyRecord(id);
}
I apologize, Github isn't giving you credit for these PRs due to: https://github.com/isaacs/github/issues/1368
Minor issue There's an unused variable
r
in the builder if the record only have 1 field. Spotbugs flagged the generated source in my project because of it. This should fix the issue.Example:
Generates ->
I could just exclude the generated sources from spotbugs if you consider this a non bug