Clean up ReadDataTransactionUtil 22/106822/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 19:28:42 +0000 (21:28 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 5 Jul 2023 19:31:04 +0000 (21:31 +0200)
commit8e9db55d772deb3effa8d9cddda853807a954ff7
tree2d450ff1284e4b03e422170f1012c752045e105a
parent2479bc2e261c2256cea881adb02a3cbd9d489645
Clean up ReadDataTransactionUtil

Couple of improvements:
- do not rebuild LeafNodes and LeafSetEntryNodes
- use instanceof patterns to eliminate part of the casting
- eliminate use of ImmutableNodes' methods.
- perform strict System(Map,LeafSet) checks

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