BUG-7464: Deduplicate code in INode.rec_insertif() 41/49941/9
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Jan 2017 12:21:01 +0000 (13:21 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 10 Jan 2017 19:12:11 +0000 (20:12 +0100)
commitd454ec97e44021019de9c6fad4f09d447f7bfcb8
tree8e889e279d06796192ad509a98e2f1623a2a5436
parentedf71b3a0e03f13a9537076551718e2a995ecebe
BUG-7464: Deduplicate code in INode.rec_insertif()

CPD complains about 11 lines being shared between the no-condition
and absent cases. Move common code into a utility method, thus
removing duplication.

Change-Id: I5b5a22e54383caefc749954094e5294a3873d5bc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/triemap/src/main/java/org/opendaylight/yangtools/triemap/INode.java