Refactor AbstractNormalizedNodeBodyWriter 57/107857/5
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 13 Sep 2023 17:27:02 +0000 (19:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 14 Sep 2023 08:59:28 +0000 (10:59 +0200)
commitb2a1be0fc560cb004070f08fbeea04a034882180
tree8ba13ea15b7a53262d15a88a4475090bb4a453ac
parent2e85eb61e1166a0118d2a2cd37ae85db4784b596
Refactor AbstractNormalizedNodeBodyWriter

AbstractNormalizedNodeBodyWriter so that the three common dispatches are
handled in common code. This also modernizes them and pulls common bits
together.

This allows us to also switch the dispatch logic, so it operates on
SchemaInferenceStack instead of on SchemaNode.

All of this ends up showing that there is a bug in operation output
code, which causes us to emit an unnecessary declaration.

JIRA: NETCONF-1157
Change-Id: Icc781e884cecf7a5d64de63dd65b97e963fd4abe
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/AbstractNormalizedNodeBodyWriter.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/JsonNormalizedNodeBodyWriter.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/XmlNormalizedNodeBodyWriter.java