-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
Right now to initializi the enum attrubute I need to write following
@RecordBuilder
public record MyRecord(
@Initializer("DEFAULT") MyEnum value
) {
public static final MyEnum DEFAULT = MyEnum.STANDARD;
}
What I want is something
@RecordBuilder
public record MyRecord(
@Initializer("STANDARD") MyEnum value
) {}
We can use the class=MyEnum.class also but it is essential :)
For enum attributtes
- check the standard (static fields/tethods of the record with this name)
- check the enum for such field
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels