Fixed Extends behaviour for a field with IgnoreValue annotation
@@ -172,6 +172,9 @@ class XmlAttributeSettingHelper<T> {
}
String stringifiedValue = value != null ? value.toString() : null;
if (StringUtils.isBlank(stringifiedValue) || stringifiedValue.equals(ignoredValue)) {
+ if (element.hasAttribute(name)){
+ element.removeAttribute(name);
+ }
return;
}
setAttribute(element, valueType.equals(String.class)
