Do not access model context multiple times 76/100976/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 9 May 2022 09:20:42 +0000 (11:20 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 9 May 2022 11:19:15 +0000 (11:19 +0000)
commite7ddf2c2c2707a904d98f0af78bf24633ba2cb39
tree8b6db5f0369ae71ce4e5d903d4f1958ca60ce035
parent9c5bcc92dc7ab7be14e8a2ef15cc63aa80dd0c63
Do not access model context multiple times

InstanceIdentifierContext has a capture of the model context, use it
from there instead of accessing it multiple times.

Change-Id: Ia29bf5a3e80d164c08ef338649080cb4f48ce4a5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 365a4ee24f4760a4e09b72d4959f618479dccf2a)
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java