BindingReflections.getQName() should return nonnull 80/83280/4
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 26 Jul 2019 13:28:38 +0000 (15:28 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 14 Aug 2019 21:56:23 +0000 (21:56 +0000)
commitc3a31312fe2c0fee43b98d60146c679702bf43ea
treeee57ebcec2dd74696325bb88c5c8328dae8cd9f5
parent019a0a530356b3dc19465131ace62b9e4287fc6d
BindingReflections.getQName() should return nonnull

It is a hard error if we cannot find the QName corresponding to
an BaseIdentity subclass. Fix getQName() to guarantee a non-null
return, throwing ISE if we should ever not find the QName.

Change-Id: I551499a8daec87e74669ba93177ad0e795367eae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/IdentityCodec.java
binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/reflect/BindingReflections.java