BUG-6972: inline copy operation modifications 10/58710/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jun 2017 23:38:56 +0000 (01:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 12 Jun 2017 11:24:59 +0000 (13:24 +0200)
commit7c9b9c8e6056728e77f486f266cbccfece9d72eb
treedc1c5430e73a41539ec9444ca9900a8b01e306e9
parent177924d2a8d4805768cea6b06f1e692ad7822cb9
BUG-6972: inline copy operation modifications

Copy operations is really internal to StatementContextBase hence
all the work of setting state can be done in the constructor.

This allows us to make some of the state final. While it does not
help the footprint issue, it is a stepping-stone to defining a
proper set of copy operations.

Change-Id: I0586ecb0757a3126b9e4ed3dbd0ea6c5a2547544
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit e807a055a1f878b4e0fd74d5763caaa7ab16a8c7)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/CopyHistory.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/SubstatementContext.java