amazon-ion / ion-cli

Apache License 2.0
31 stars 15 forks source link

Add null support in generated code for Java #101

Open desaikd opened 4 months ago

desaikd commented 4 months ago

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.