use an EmptyStringAsNullAdapter in NeutronObject re. null tenant_id 27/75927/1
authorMichael Vorburger <vorburger@redhat.com>
Mon, 10 Sep 2018 14:26:30 +0000 (16:26 +0200)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 10 Sep 2018 14:26:30 +0000 (16:26 +0200)
commit0ace14bfefbaea16126c02866f527bafe4b7a8a7
treeb8db49f0218d7749d89b4af9e1452e31c9f265da
parent2508667ae1ec0d8aadd95585a8612471e0132b6c
use an EmptyStringAsNullAdapter in NeutronObject re. null tenant_id

perhaps in JAXB it's better to place such special empty/null logic in
such an adapter instead of directly into the getter.. at worst, it
shouldn't hurt.  See also some public posts re. this in general, e.g.
https://stackoverflow.com/questions/10869748/jaxb-return-null-instead-empty-string

background: https://bugs.opendaylight.org/show_bug.cgi?id=4775 (and its
old https://git.opendaylight.org/gerrit/#/c/31324 and
https://git.opendaylight.org/gerrit/#/c/31361/)

JIRA: NEUTRON-159
Change-Id: I47ec8270ba42e787d21adff51d89052c4442f2b7
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
neutron-spi/src/main/java/org/opendaylight/neutron/spi/EmptyStringAsNullAdapter.java [new file with mode: 0644]
neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronObject.java