Improve EnumerationCodec
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 11 Mar 2018 15:25:40 +0000 (16:25 +0100)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 19 Jun 2024 00:41:22 +0000 (10:41 +1000)
commit2b8e60b51ca8b6c5a00d661f4d263c31e8bed9a7
treee9181970a7d110ade565fb2908ab3b924e0db609
parent5802b6406ec190b2136c4d2020e34670fb3f9eef
Improve EnumerationCodec

Now that we have proper information from enumerations, we can use
build the codec map as known at generation time and check it against
the type we are receiving, adding proper warnings.

JIRA: MDSAL-317
Change-Id: Ia5bd3d73e44eba2568818b578bc44985fafb6294
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/EnumerationCodec.java
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/EnumerationCodecTest.java