@@ -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