Eliminate ModelActionBuilder.requiresCtxPath() 41/104841/4
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Mar 2023 14:41:58 +0000 (15:41 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Mar 2023 15:47:58 +0000 (16:47 +0100)
commit4e3cbf2b2e8556df14647d5d70131a5cf19b9add
treee3d442be8d0e3568d6f725763745c8f9e31d574d
parent46497a560b73b86f51936e3326881657e523185f
Eliminate ModelActionBuilder.requiresCtxPath()

There is only a single user of this method, which specifies
EFFECTIVE_MODEL argument, which the implementation hard-codes instead of
using the argument.

Introduce requiresEffectiveCtxPath() which makes the processing phase
implicit and inline the phase to prerequisite implementations.

Change-Id: I9072fe022600f0b24179aaad08c05cfcce2604e6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
parser/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/ModifierImpl.java
parser/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/meta/UniqueStatementSupport.java
parser/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/ModelActionBuilder.java