BUG-6972: Do not allow root StmtContext to be copied 40/58540/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jun 2017 17:02:49 +0000 (19:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jun 2017 23:43:52 +0000 (01:43 +0200)
commit36a5673da061c01ed2c3c58e4e3b418b01e9876a
tree701c3f51098de027ea1f266a8f1e96d45331165c
parent9bb8886df13969f7b58c68e5aa54e0392d2641bc
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>
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