Commit fb834898 authored by Johnny Lim's avatar Johnny Lim Committed by Stephane Nicoll

Use final keywords for Map fields in JacksonProperties

Closes gh-13517
parent 3a01914b
......@@ -65,36 +65,36 @@ public class JacksonProperties {
* Jackson visibility thresholds that can be used to limit which methods (and fields)
* are auto-detected.
*/
private Map<PropertyAccessor, JsonAutoDetect.Visibility> visibility = new EnumMap<>(
private final Map<PropertyAccessor, JsonAutoDetect.Visibility> visibility = new EnumMap<>(
PropertyAccessor.class);
/**
* Jackson on/off features that affect the way Java objects are serialized.
*/
private Map<SerializationFeature, Boolean> serialization = new EnumMap<>(
private final Map<SerializationFeature, Boolean> serialization = new EnumMap<>(
SerializationFeature.class);
/**
* Jackson on/off features that affect the way Java objects are deserialized.
*/
private Map<DeserializationFeature, Boolean> deserialization = new EnumMap<>(
private final Map<DeserializationFeature, Boolean> deserialization = new EnumMap<>(
DeserializationFeature.class);
/**
* Jackson general purpose on/off features.
*/
private Map<MapperFeature, Boolean> mapper = new EnumMap<>(MapperFeature.class);
private final Map<MapperFeature, Boolean> mapper = new EnumMap<>(MapperFeature.class);
/**
* Jackson on/off features for parsers.
*/
private Map<JsonParser.Feature, Boolean> parser = new EnumMap<>(
private final Map<JsonParser.Feature, Boolean> parser = new EnumMap<>(
JsonParser.Feature.class);
/**
* Jackson on/off features for generators.
*/
private Map<JsonGenerator.Feature, Boolean> generator = new EnumMap<>(
private final Map<JsonGenerator.Feature, Boolean> generator = new EnumMap<>(
JsonGenerator.Feature.class);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment