BUG-6972: inline copy operation modifications 63/58563/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 8 Jun 2017 23:38:56 +0000 (01:38 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 9 Jun 2017 09:03:11 +0000 (11:03 +0200)
commite807a055a1f878b4e0fd74d5763caaa7ab16a8c7
treed2fbb022f974d6a0e022645afc943307540cfc5c
parent501f8d250a4dec41b5b7ebb77693878726616025
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>
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