This is an edge case I came across while playing around.
If you have a record with no fields the generated Builder source will have a duplicate 0 argument constructor.
Example:
@RecordBuilder
public record MyRecord() implements MyRecordBuilder.With{}
Generates:
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
public class MyRecordBuilder {
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
private MyRecordBuilder() {
}
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
private MyRecordBuilder() {
}
...Rest of the class
This is an edge case I came across while playing around. If you have a record with no fields the generatedBuilder source will have a duplicate 0 argument constructor.
Example:
Generates:
This results in a compilation error