Streamline GlobalContext retrieving 74/108274/3
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 6 Oct 2023 10:44:08 +0000 (12:44 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 6 Oct 2023 12:39:00 +0000 (12:39 +0000)
commit2d30740e8845a3a19e7447f210110b17b412c967
tree87ee3a33cd10081d44b7024f73bf7b786d0ce09b
parentbaff918df37ef8553b1ad83294911a34b1e99be0
Streamline GlobalContext retrieving

We do not have to use flatMap or additional Optional to get
EfffectiveModelContext from DOMSchemaService.

Use just DOMSchemaService::getGlobalContext method reference instead.

Change-Id: I0cbcf59bc65ba84bdcf6c5c921c6628b255af97d
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifier.java
restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/mountpoints/MountPointOpenApi.java