[MDSAL-451] Squash Builder-based implementations' empty lists to null Created: 21/May/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: | Task | 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 | ||
| Epic Link: | Binding empty lists/maps |
| Description |
|
Since empty lists have no semantic value, generated builder implementations should squash empty lists to null. This also means that equals() on lists needs to treat them as null, to preserve backwards compatibility |