Fold MainVarsWrapper 30/83330/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 31 Jul 2019 00:41:17 +0000 (02:41 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 2 Aug 2019 17:33:11 +0000 (17:33 +0000)
commitb4b85566a0ca876478ee8407cf139fa4a5c46f64
treeeb8a544174f984ea6c0d7f1f4fe9f88bb5a46cb7
parentd1e2e2b034a9426f6590643174ea0ae60207905d
Fold MainVarsWrapper

It does not make any sense to keep a separate object to keep
state, while YangInstanceIdentifierDeserializer is pure static.

Eliminate MainVarsWrapper as a separate subclass, encapsulating
it in an YangInstanceIdentifierDeserializer instead. This allows
us manipulate state data freely, without having to go through
accessors, and thus make it much easier to follow as to what is
happening.

Change-Id: Ifa241c7343e13fe524ad8cf7d05cb3a6bbd6a18b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializer.java