Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Jackson (https://github.com/FasterXML/jackson) extension module
used to enhance performance using bytecode generation to replace use of Reflection for
field access and method calls
package com.fasterxml.jackson.module.afterburner.deser;
import java.io.IOException;
import java.util.*;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.io.SerializedString;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.deser.*;
import com.fasterxml.jackson.databind.util.NameTransformer;
public final class SuperSonicBeanDeserializer extends BeanDeserializer
{
private static final long serialVersionUID = -8468272764223072933L;
/**
* Names of properties being deserialized, in ordered they are
* expected to have been written (as per serialization settings);
* used for speculative order-based optimizations
*/
protected final SerializedString[] _orderedPropertyNames;
/**
* Properties matching names in {@link #_orderedPropertyNames},
* assigned after resolution when property instances are finalized.
*/
protected SettableBeanProperty[] _orderedProperties;
/*
/**********************************************************
/* Life-cycle, construction, initialization
/**********************************************************
*/
public SuperSonicBeanDeserializer(BeanDeserializer src, List props)
{
super(src);
final int len = props.size();
_orderedPropertyNames = new SerializedString[len];
for (int i = 0; i < len; ++i) {
_orderedPropertyNames[i] = new SerializedString(props.get(i).getName());
}
}
protected SuperSonicBeanDeserializer(SuperSonicBeanDeserializer src, NameTransformer unwrapper)
{
super(src, unwrapper);
_orderedProperties = src._orderedProperties;
_orderedPropertyNames = src._orderedPropertyNames;
}
@Override
public JsonDeserializer