[YANGTOOLS-1183] Update DataNodeContainer methods Created: 22/Nov/20 Updated: 10/Apr/22 Resolved: 07/Dec/20 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.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 | ||
| Description |
|
DataNodeContainer.getDataChildByName() is a @Nullable getter, which is used in that capacity all over the place. On the other hand a number of places would like to make that an assertion. Fix this by centering the implementation around dataChildByName(), which is nullable and then spinning Optional and non-null from that. |