[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: |
|
||||||||
| 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. |