Handle empty type in NormalizedNode streaming
authorTom Pantelis <tompantelis@gmail.com>
Sat, 20 Jan 2018 00:19:03 +0000 (19:19 -0500)
committerRobert Varga <nite@hq.sk>
Mon, 22 Jan 2018 19:58:31 +0000 (19:58 +0000)
commitc1285a0812b8f12173a9cff5878968a3716003c7
treed62cdef1cb27cbce6dfdf34b7fa41daebeea470b
parentc21de0a3badc62fa68575c2f63b5e94d8cc98d3c
Handle empty type in NormalizedNode streaming

The yang "empty" type is now represented as
org.opendaylight.yangtools.yang.common.Empty so handle it.

NormalizedNode no longer allows a null value but we still need
to handle NULL_TYPE on input for backwards compatibility. NULL_TYPE
is translated to Empty.

Change-Id: I99b87138d7358d37170cf603d993cd1a4f6a2087
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
node/utils/stream/NormalizedNodeStreamReaderWriterTest.java
util/TestModel.java