Clarify NamespaceStorageSupport.getParentNamespaceStorage() 90/93490/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 30 Oct 2020 09:08:51 +0000 (10:08 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 30 Oct 2020 11:28:29 +0000 (12:28 +0100)
commit888d6b36fbeafdf699c4b48abbeb42e30e7c642c
tree47d52b34d7755cd10001fd84af9d95fd2ad7cfed
parenta57fd3b022b86a609d78563cbc10bf0ae5303bb3
Clarify NamespaceStorageSupport.getParentNamespaceStorage()

This override does seemingly nothing, but in fact splits invocation
groups to two -- those going to SourceSpecificContext and those
going to a NamespaceStorageSupport subclass. More specifically, if
a caller knows it is talking to NamespaceStorageSupport, JIT does
will not consider SourceSpecificContext an implementation.

Furthermore, SourceSpecificContext, as an implementation class,
guarantees it will return BuildGlobalContext.

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