BUG-6522: allocate copyHistory lazily 24/47324/2
authorRobert Varga <rovarga@cisco.com>
Fri, 21 Oct 2016 09:39:14 +0000 (11:39 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 21 Oct 2016 11:36:21 +0000 (13:36 +0200)
commit8e09689b94fa942be64cdce30a15520383bb177e
tree63b1d35c17d722857fa05310bc7ca6e94f3a9035
parentc20090c009bc333710678d631e180f3227cd42df
BUG-6522: allocate copyHistory lazily

Most of the statements start off with being just originals,
so we can use a shared constant for their copy history
and replace it when it is modified.

Change-Id: Ia4fcd63d2bfb42d8ba5dc29daf74aa330e5b3689
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java