Skip to content

Commit a53960b

Browse files
authored
Remove _anyGetterWriter usage (#719)
1 parent a847848 commit a53960b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/main/java/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializer.java

Lines changed: 0 additions & 1 deletion
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/com/fasterxml/jackson/dataformat/xml/ser/XmlBeanSerializerBase.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,6 @@ protected void serializeFields(Object bean, JsonGenerator gen0, SerializerProvid
218218
xgen.setNextIsUnwrapped(false);
219219
}
220220
}
221-
if (_anyGetterWriter != null) {
222-
// For [#117]: not a clean fix, but with @JsonTypeInfo, we'll end up
223-
// with accidental attributes otherwise
224-
xgen.setNextIsAttribute(false);
225-
_anyGetterWriter.getAndSerialize(bean, xgen, provider);
226-
}
227221
} catch (Exception e) {
228222
String name = (i == props.length) ? "[anySetter]" : props[i].getName();
229223
wrapAndThrow(provider, e, bean, name);
@@ -300,13 +294,6 @@ protected void serializeFieldsFiltered(Object bean, JsonGenerator gen0,
300294
xgen.setNextIsUnwrapped(false);
301295
}
302296
}
303-
if (_anyGetterWriter != null) {
304-
// For [#117]: not a clean fix, but with @JsonTypeInfo, we'll end up
305-
// with accidental attributes otherwise
306-
xgen.setNextIsAttribute(false);
307-
// 24-Jul-2019, tatu: Fixed for [dataformat-xml#351]
308-
_anyGetterWriter.getAndFilter(bean, xgen, provider, filter);
309-
}
310297
} catch (Exception e) {
311298
String name = (i == props.length) ? "[anySetter]" : props[i].getName();
312299
wrapAndThrow(provider, e, bean, name);

0 commit comments

Comments
 (0)