Fixed JSON Deserializer to retain empty objects as empty rather than NULL. 37/3437/1
authorMadhu Venugopal <mavenugo@gmail.com>
Wed, 4 Dec 2013 00:41:21 +0000 (16:41 -0800)
committerMadhu Venugopal <mavenugo@gmail.com>
Wed, 4 Dec 2013 00:41:21 +0000 (16:41 -0800)
commit64ee68867bab543bdabf075d758916b26e2f881d
tree7b89aab92d7e5ed51ed8701da79c69a130f321da
parent564760d601e358d7ce2c2169f046fd86610ee984
Fixed JSON Deserializer to retain empty objects as empty rather than NULL.
During Update operations, ovsdb-server sends NULL values for the columns that are not changed.
If there is a change from an empty map to valid value, then that change goes undetected.
Hence we need to retain the emptiness of the map and array intact in order to differentiate the
behaviour.

Change-Id: I9ff356c0f390aeaf0cb5d43bd2ba756206f3e345
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
ovsdb/src/main/java/org/opendaylight/ovsdb/lib/notation/json/Converter.java