[YANGTOOLS-1220] Switch non-existent arguments to Empty instead of Void Created: 03/Feb/21 Updated: 03/Feb/21 Resolved: 03/Feb/21 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| 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 | ||
| Issue Links: |
|
||||||||
| Description |
|
We currently allow ModelStatement.argument() to return null for the purposes on supporting argumentless statements. We really want to make sure nulls do no occur – and for that yang.common.Empty is a much better fit. Convert all Void use to Empty, making sure ModelStatement.argument() always returns non-null. |