diff --git a/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java b/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java index c9b49f77eb..634d160028 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java +++ b/src/main/java/com/fasterxml/jackson/databind/ser/SerializerCache.java @@ -97,7 +97,7 @@ private final synchronized ReadOnlyClassToSerializerMap _makeReadOnlyLookupMap() /********************************************************** */ - public synchronized int size() { + public int size() { return _sharedMap.size(); } @@ -107,30 +107,22 @@ public synchronized int size() { */ public JsonSerializer untypedValueSerializer(Class type) { - synchronized (this) { - return _sharedMap.get(new TypeKey(type, false)); - } + return _sharedMap.get(new TypeKey(type, false)); } public JsonSerializer untypedValueSerializer(JavaType type) { - synchronized (this) { - return _sharedMap.get(new TypeKey(type, false)); - } + return _sharedMap.get(new TypeKey(type, false)); } public JsonSerializer typedValueSerializer(JavaType type) { - synchronized (this) { - return _sharedMap.get(new TypeKey(type, true)); - } + return _sharedMap.get(new TypeKey(type, true)); } public JsonSerializer typedValueSerializer(Class cls) { - synchronized (this) { - return _sharedMap.get(new TypeKey(cls, true)); - } + return _sharedMap.get(new TypeKey(cls, true)); } /*