Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Value.Default #1503

Open
gvozdenmarinkovic opened this issue Jan 29, 2024 · 0 comments
Open

@Value.Default #1503

gvozdenmarinkovic opened this issue Jan 29, 2024 · 0 comments

Comments

@gvozdenmarinkovic
Copy link

@Value.Immutable @Serial.Structural public interface SomeInterface { @Value.Default default Optional<String> getDefaultValue() { return Optional.of("value"); }

Generates field
Optional<String> defaultValue;

Instead:
private @Nullable String defaultValue

And breaks serialization java serialization ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant