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