BUG-6972: Do not allow root StmtContext to be copied 09/58709/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jun 2017 17:02:49 +0000 (19:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 12 Jun 2017 11:24:59 +0000 (13:24 +0200)
commit177924d2a8d4805768cea6b06f1e692ad7822cb9
treef5e220bec091f7e4462d34f65017b47a6b969fa4
parent28fc34ebe5c72b6d76c0c392e7240cf510f4ead7
BUG-6972: Do not allow root StmtContext to be copied

It cannot be targeted, hence it does not make sense to copy it.
Removes a chunk of duplicate code and takes this class out of the
picture where copy operations are concerned.

Change-Id: I7a8d46ba59658a534534cd8204c43d894d017247
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 36a5673da061c01ed2c3c58e4e3b418b01e9876a)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/StmtContext.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/RootStatementContext.java