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

Add null support in generated code for Java #101

Open
desaikd opened this issue Apr 18, 2024 · 0 comments
Open

Add null support in generated code for Java #101

desaikd opened this issue Apr 18, 2024 · 0 comments
Labels
code generation Improvements for code generation subcommand `generate`

Comments

@desaikd
Copy link
Contributor

desaikd commented Apr 18, 2024

If you use Boolean instead of boolean, then this could be initialized to null. Similarly for int/Integer and double/Double.

However, if it's not an optional field, then we're better off using the primitive types to avoid the overhead of the boxed types.

@desaikd desaikd added the code generation Improvements for code generation subcommand `generate` label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code generation Improvements for code generation subcommand `generate`
Projects
Status: No status
Development

No branches or pull requests

1 participant