Use EmptyLeafEffectiveStatement in copyLeaf() 53/98853/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Dec 2021 08:52:05 +0000 (09:52 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 6 Dec 2021 10:42:51 +0000 (11:42 +0100)
commit6b1a39c56b691702f2570c725523660c70a0f246
tree815c7a44f875e6989f8665e724618733aa1092ab
parentd4b2b759ed8d6e528d54936deca955345bbb53cf
Use EmptyLeafEffectiveStatement in copyLeaf()

If the arguments match, we can reuse empty leaf, as there is no other
state we keep.

JIRA: YANGTOOLS-1316
Change-Id: Ia822beba18834d291c33db0007c3686427d1069c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
model/yang-model-ri/src/main/java/org/opendaylight/yangtools/yang/model/ri/stmt/EffectiveStatements.java
model/yang-model-ri/src/main/java/org/opendaylight/yangtools/yang/model/ri/stmt/impl/eff/EmptyLeafEffectiveStatement.java