BUG-6028: check value types for encapsulation 60/40060/11
authorRobert Varga <rovarga@cisco.com>
Wed, 8 Jun 2016 17:09:17 +0000 (19:09 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 22 Aug 2016 09:27:42 +0000 (09:27 +0000)
commita6d0735732b202f40bd37f7ae291c8a4af9e3ccf
tree64d078b5486e9ccc07b769864be3be8d0c559883
parent017c75d8779d33096b9c9a9826d3be17dad462e3
BUG-6028: check value types for encapsulation

This is a fast check to see if the argument matches expected
value class. If it does not it does not make sense to invoke
the serializer, as it will fail.

Change-Id: I4ca556fea057f2188fa1c34d303467565af38d5c
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/EncapsulatedValueCodec.java
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/UnionValueOptionContext.java