Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.module.afterburner.ser;
 
 
    public ObjectFieldPropertyWriter(BeanPropertyWriter srcBeanPropertyAccessor accint index,
            JsonSerializer<Objectser) {
        super(srcaccindexser);
    }
    @Override
        return new ObjectFieldPropertyWriter(thisser);
    }
    
        if (acc == nullthrow new IllegalArgumentException();
        return new ObjectFieldPropertyWriter(thisacc);
    }
    /*
    /**********************************************************
    /* Overrides
    /**********************************************************
     */
    @Override
    public final void serializeAsField(Object beanJsonGenerator jgenSerializerProvider prov)
        throws Exception
    {
        Object value = .objectField(bean);
        // Null (etc) handling; copied from super-class impl
        if (value == null) {
            if (!) {
                jgen.writeFieldName();
                prov.defaultSerializeNull(jgen);
            }
            return;
        }
        if ( != null && .equals(value)) {
            return;
        }
        JsonSerializer<Objectser = ;
        if (ser == null) {
            Class<?> cls = value.getClass();
            PropertySerializerMap map = ;
            ser = map.serializerFor(cls);
            if (ser == null) {
                ser = _findAndAddDynamic(mapclsprov);
            }
        }
        jgen.writeFieldName();
        if ( == null) {
            ser.serialize(valuejgenprov);
        } else {
            ser.serializeWithType(valuejgenprov);
        }
    }
New to GrepCode? Check out our FAQ X