Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.ser.std;
 
 
 
Intermediate base class for limited number of scalar types that should never include type information. These are "native" types that are default mappings for corresponding JSON scalar types: java.lang.String, java.lang.Integer, java.lang.Double and java.lang.Boolean.
public abstract class NonTypedScalarSerializerBase<T>
    extends StdScalarSerializer<T>
    protected NonTypedScalarSerializerBase(Class<T> t) {
        super(t);
    }
    @Override
    public final void serializeWithType(T valueJsonGenerator jgenSerializerProvider provider,
            TypeSerializer typeSer)
        throws IOExceptionJsonGenerationException
    {
        // no type info, just regular serialization
        serialize(valuejgenprovider);            
    }
New to GrepCode? Check out our FAQ X