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


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