[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:
Issue split
split from YANGTOOLS-908 DeclaredStatement.argument() nullness... Resolved

 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.


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