@@ -217,12 +217,6 @@ protected void _serializeProperties(Object bean, JsonGenerator gen0, Serializati
217
217
xgen .setNextIsUnwrapped (false );
218
218
}
219
219
}
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
- }
226
220
} catch (Exception e ) {
227
221
String name = (i == props .length ) ? "[anySetter]" : props [i ].getName ();
228
222
wrapAndThrow (ctxt , e , bean , name );
@@ -297,13 +291,6 @@ protected void _serializePropertiesFiltered(Object bean, JsonGenerator gen0,
297
291
xgen .setNextIsUnwrapped (false );
298
292
}
299
293
}
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
- }
307
294
} catch (Exception e ) {
308
295
String name = (i == props .length ) ? "[anySetter]" : props [i ].getName ();
309
296
wrapAndThrow (ctxt , e , bean , name );
0 commit comments