Make CopyHistory implement CopyableNode 49/94849/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Jan 2021 10:06:52 +0000 (11:06 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Jan 2021 19:16:23 +0000 (20:16 +0100)
commit7a2476cc0cc1eff6888bbd2c720683088aaa2bc9
tree3e8fc1083c562ccbe1bd5b48fc394664233bae92
parenta4b2af57d6623d0b0ae5260882e5f0760d4ed11f
Make CopyHistory implement CopyableNode

We have a few call sites checking the same thing. Make a strong
connection between CopyableNode and CopyHistory -- centralizing
checks and providing an opportunity for optimization.

CopyHistory.contains() now exists only for testing purposes.

JIRA: YANGTOOLS-1215
Change-Id: Ibc9cebe4bee6c5818570c52415c3d8a5ba1ff19d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 62c350eff478deeaa90ab0304cdc9c3623c01c83)
(cherry picked from commit 712c3ae6a666023f8febb1c7eb7c72ede2e31022)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/EffectiveStatementMixins.java
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/UnknownEffectiveStatementBase.java
yang/yang-parser-spi/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/CopyHistory.java