[MDSAL-492] Annotate type wrapper objects' getValue() as @NonNull Created: 21/Nov/19  Updated: 22/Apr/20  Resolved: 22/Apr/20

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 6.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks MDSAL-491 Fix list Key data object nullness gua... Resolved

 Description   

Wrapper objects are enforcing the hard-coded property ('value') to be non-null, but this is not reflected in the getter nor do we take advantage of non-nullness during hashCode()/equals() implementations.

Add the ability for TypeGenerator to mark individual (simple?) properties as non-nullable and take it into account in the java-api-generator, propagating it to fields and getters.


Generated at Wed Feb 07 20:09:56 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.