Skip to content

Commit

Permalink
Jackson2ObjectMapperBuilder stores visibility declarations in order
Browse files Browse the repository at this point in the history
Issue: SPR-17489
  • Loading branch information
jhoeller committed Nov 13, 2018
1 parent 9f857c1 commit 093254b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
Expand Down Expand Up @@ -105,15 +104,15 @@ public class Jackson2ObjectMapperBuilder {

private final Log logger = HttpLogging.forLogName(getClass());

private final Map<Class<?>, Class<?>> mixIns = new HashMap<>();
private final Map<Class<?>, Class<?>> mixIns = new LinkedHashMap<>();

private final Map<Class<?>, JsonSerializer<?>> serializers = new LinkedHashMap<>();

private final Map<Class<?>, JsonDeserializer<?>> deserializers = new LinkedHashMap<>();

private final Map<PropertyAccessor, JsonAutoDetect.Visibility> visibilities = new HashMap<>();
private final Map<PropertyAccessor, JsonAutoDetect.Visibility> visibilities = new LinkedHashMap<>();

private final Map<Object, Boolean> features = new HashMap<>();
private final Map<Object, Boolean> features = new LinkedHashMap<>();

private boolean createXmlMapper = false;

Expand Down

0 comments on commit 093254b

Please sign in to comment.