BUG-7464: do not throw ISE/RTE in "impossible" cases 54/50054/9
authorRobert Varga <rovarga@cisco.com>
Thu, 5 Jan 2017 10:24:21 +0000 (11:24 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 10 Jan 2017 23:44:44 +0000 (23:44 +0000)
commitecb69b58c3c474c8e269cb722d50845f5945c4eb
treeffe9fef823d465250f4690f6a74ce63202fb50ad
parent38732c9e9834ba76f7cd1bae3d2d5e50e54a0bad
BUG-7464: do not throw ISE/RTE in "impossible" cases

Rather than throwing exceptions which may get mis-interpreted
by the callers, use Guava's VerifyException to flag the invariant
being checked.

Change-Id: I8a9431f1b578f3bb93fccd87f5138d97c0fa4242
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/LNodeEntries.java