BUG-509: Fix a constructor typo/thinko
authorRobert Varga <rovarga@cisco.com>
Wed, 9 Apr 2014 03:39:58 +0000 (05:39 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 9 Apr 2014 11:01:24 +0000 (11:01 +0000)
commit57eb7421b137800e23c835cafb3b9fb98f6743c2
treec423df8ac6c66a60c984ced4482050c2d5ebdaa2
parent8adced407a476b460bcbea3344f01bb27bb91c70
BUG-509: Fix a constructor typo/thinko

The 'nested' array should be initialized as empty, but sized for
the size of path.getPath(), as we fill it continuously as we traverse
the tree.

The original initialization also copied path.getPath(), resulting in the
path reported in full and then correctly.

Change-Id: I9a918ced62a845b985459699e23f1f2f1d55cf35
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/TreeNodeUtils.java