[MDSAL-445] Reduce augmentation handling duplication in generated implementations Created: 01/May/19 Updated: 02/Jul/19 Resolved: 10/May/19 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 4.0.2, 3.0.10 |
| 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 | ||
| Description |
|
Our builder-based implementations usually end up implementing Augmentable contract with the related baggage of a field and augmentation() implementation. Since the contract is generic and immutable, we can easily concentrate this support into a base superclass – thus reducing the amount of code we generate and also drop the number of augment() implementations. |