We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8567e0d commit 979f12cCopy full SHA for 979f12c
src/main/java/com/fasterxml/jackson/databind/jsontype/impl/TypeDeserializerBase.java
@@ -223,13 +223,15 @@ protected final JsonDeserializer<Object> _findDefaultImplDeserializer(Deserializ
223
return NullifyingDeserializer.instance;
224
}
225
226
- synchronized (_defaultImpl) {
227
- if (_defaultImplDeserializer == null) {
228
- _defaultImplDeserializer = ctxt.findContextualValueDeserializer(
+ if (_defaultImplDeserializer == null) {
+ synchronized (_defaultImpl) {
229
+ _defaultImplDeserializer = ctxt.findContextualValueDeserializer(
230
_defaultImpl, _property);
231
+ }
232
- return _defaultImplDeserializer;
233
234
+ return _defaultImplDeserializer;
235
236
237
/**
0 commit comments