BUG-7464: Hide INodeBase.mainnode 72/49872/6
authorRobert Varga <rovarga@cisco.com>
Fri, 30 Dec 2016 12:58:11 +0000 (13:58 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 9 Jan 2017 14:17:12 +0000 (15:17 +0100)
commitb08662fc364d3469e4aac44ae780a347224399f4
tree26cc42fc57bbf8fcadcaf4af653119a3e714b401
parent424b4b473d472d6a72e0e0bade7a4df475057fa9
BUG-7464: Hide INodeBase.mainnode

This field is accessed either as CAS or READ, with writes being
a falso positiive, in that they are performed only at initialization
time.

Refactor access patterns to hide the updater and the field, passing
down explicit initializer from the subclass.

Also remove INodeBase.prev(), as it is not called from anywhere.

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