@XmlElement on a (package visible..) field and then special logic in the
getter was perhaps an unholy combination. I can't quite explain why it
worked most of the time but not always. One would think that the tests
going through the getter should also execute that special logic, but
alas, clearly in some of the test runs (and perhaps in production...)
they did not, see the recurring NEUTRON-159 problem.
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: I986dc6f4bea2f08becea21936bedd831643d212e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
private static final long serialVersionUID = 1L;
- @XmlElement(name = "tenant_id")
String tenantID;
@XmlElement(name = "project_id")
}
@Override
+ @XmlElement(name = "tenant_id")
public String getTenantID() {
if (tenantID != null && tenantID.isEmpty()) {
// Bug 4775 - Treat empty string tenantId as null, so no attempt is made
}
@Override
+ @XmlElement(name = "tenant_id")
public void setTenantID(String tenantID) {
this.tenantID = tenantID;
}