From fb834898abab3481e6976230e7f0f4d3f8a09be5 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Tue, 19 Jun 2018 04:27:38 +0900 Subject: [PATCH] Use final keywords for Map fields in JacksonProperties Closes gh-13517 --- .../autoconfigure/jackson/JacksonProperties.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java index 624f942dc7..05a450bcce 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java @@ -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 visibility = new EnumMap<>( + private final Map visibility = new EnumMap<>( PropertyAccessor.class); /** * Jackson on/off features that affect the way Java objects are serialized. */ - private Map serialization = new EnumMap<>( + private final Map serialization = new EnumMap<>( SerializationFeature.class); /** * Jackson on/off features that affect the way Java objects are deserialized. */ - private Map deserialization = new EnumMap<>( + private final Map deserialization = new EnumMap<>( DeserializationFeature.class); /** * Jackson general purpose on/off features. */ - private Map mapper = new EnumMap<>(MapperFeature.class); + private final Map mapper = new EnumMap<>(MapperFeature.class); /** * Jackson on/off features for parsers. */ - private Map parser = new EnumMap<>( + private final Map parser = new EnumMap<>( JsonParser.Feature.class); /** * Jackson on/off features for generators. */ - private Map generator = new EnumMap<>( + private final Map generator = new EnumMap<>( JsonGenerator.Feature.class); /**