Skip to content

Commit 39cc7c1

Browse files
committed
Merge branch '2.19'
2 parents 622ebea + a53960b commit 39cc7c1

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/main/java/tools/jackson/dataformat/xml/ser/XmlBeanSerializer.java

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ protected BeanSerializerBase asArraySerializer()
9696
* - have any getter
9797
*/
9898
if ((_objectIdWriter == null)
99-
&& (_anyGetterWriter == null)
10099
&& (_propertyFilterId == null)
101100
) {
102101
return new BeanAsArraySerializer(this);

src/main/java/tools/jackson/dataformat/xml/ser/XmlBeanSerializerBase.java

-13
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,6 @@ protected void _serializeProperties(Object bean, JsonGenerator gen0, Serializati
217217
xgen.setNextIsUnwrapped(false);
218218
}
219219
}
220-
if (_anyGetterWriter != null) {
221-
// For [#117]: not a clean fix, but with @JsonTypeInfo, we'll end up
222-
// with accidental attributes otherwise
223-
xgen.setNextIsAttribute(false);
224-
_anyGetterWriter.getAndSerialize(bean, xgen, ctxt);
225-
}
226220
} catch (Exception e) {
227221
String name = (i == props.length) ? "[anySetter]" : props[i].getName();
228222
wrapAndThrow(ctxt, e, bean, name);
@@ -297,13 +291,6 @@ protected void _serializePropertiesFiltered(Object bean, JsonGenerator gen0,
297291
xgen.setNextIsUnwrapped(false);
298292
}
299293
}
300-
if (_anyGetterWriter != null) {
301-
// For [#117]: not a clean fix, but with @JsonTypeInfo, we'll end up
302-
// with accidental attributes otherwise
303-
xgen.setNextIsAttribute(false);
304-
// 24-Jul-2019, tatu: Fixed for [dataformat-xml#351]
305-
_anyGetterWriter.getAndFilter(bean, xgen, ctxt, filter);
306-
}
307294
} catch (Exception e) {
308295
String name = (i == props.length) ? "[anySetter]" : props[i].getName();
309296
wrapAndThrow(ctxt, e, bean, name);

0 commit comments

Comments
 (0)