com.fasterxml.jackson.module.blackbird.ser.OptimizedBeanPropertyWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-blackbird Show documentation
Show all versions of jackson-module-blackbird Show documentation
Jackson (https://github.com/FasterXML/jackson) extension module
that uses LambdaMetafactory based code generation to replace reflection calls.
The newest version!
package com.fasterxml.jackson.module.blackbird.ser;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.SerializableString;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
import com.fasterxml.jackson.databind.ser.BeanPropertyWriter;
/**
* Intermediate base class that is used for concrete
* per-type implementations
*/
@SuppressWarnings("serial")
abstract class OptimizedBeanPropertyWriter>
extends BeanPropertyWriter
{
/**
* Locally stored version of efficiently serializable name.
* Used to work around earlier problems with typing between
* interface, implementation
*/
protected final SerializableString _fastName;
protected final BeanPropertyWriter fallbackWriter;
// Not volatile to prevent overhead, worst case is we trip the exception a few extra times
protected boolean broken = false;
protected OptimizedBeanPropertyWriter(BeanPropertyWriter src, JsonSerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy