Inline NamespaceStorageSupport.accessNamespaces() 61/104861/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Mar 2023 18:26:21 +0000 (19:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Mar 2023 19:17:25 +0000 (20:17 +0100)
commit8e0305de53d206d852245682a3c26a5024b59fca
tree85c082f43cd06e9e210d3764823e3fba5fea89fb
parent2edf073ce8ecbca9f8f379c7541c26c2ecbf67ff
Inline NamespaceStorageSupport.accessNamespaces()

We have multiple callers, but all of duplicate the functionality
of getLocalNamespace(). Inline accessNamespaces() into
getLocalNamespace() and adjust users to use that instead duplicating its
code.

This removes a the need for a number of warning suppressions and makes
it clearer as to what is going on.

Change-Id: Ia210c6275b64093063eaf58a67412e94c3a29419
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 131816618ba0dd44880b58092fc062375f8d7389)
parser/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/NamespaceStorageSupport.java