Do not access model context multiple times 12/101012/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 9 May 2022 09:20:42 +0000 (11:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 9 May 2022 09:25:42 +0000 (11:25 +0200)
commit365a4ee24f4760a4e09b72d4959f618479dccf2a
tree61950c3c3745eea67955c00474066b62d363658d
parent40331af8b57ab84b92b9d5a50f19e74a88bb0cde
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>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java