Clarify NamespaceStorageSupport.getParentNamespaceStorage() 81/93481/2
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 09:37:58 +0000 (10:37 +0100)
commit23fa427731dafe9db484f48bcdfe28ba20b5fd32
treec9d4ef78a9eee63f99f2a1ed036b84ac68622388
parentd6f64e5f8818109e0b60438f0988162c9ad341b0
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>
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