Bug 2882: Fix off-by-one usage of cursor. 97/23897/1
authorTony Tkacik <ttkacik@cisco.com>
Wed, 8 Jul 2015 11:23:00 +0000 (13:23 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 8 Jul 2015 11:23:00 +0000 (13:23 +0200)
commit9b8490316a60fc8e63597cf328ec0646d6b325e3
tree3fbe7da90a48c2c07c230d7d3b969c2f00b93f29
parent0aea90e665823d777ceb8c7b5ee402a0c20317a3
Bug 2882: Fix off-by-one usage of cursor.

DataTreeCandidates#applyToModification
when dealing with cursor-aware transaction
entered writen / element twice - once with enter
and once with write which resulted in exception.

Change-Id: Ifd4023c7ad54f2be1672c42725dd37f4e3ff8282
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/tree/DataTreeCandidateNodes.java
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/schema/tree/DataTreeCandidates.java