Skip to content

Commit

Permalink
mark variables as volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Apr 10, 2024
1 parent f81ffc2 commit 8f4d50e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -19,21 +19,21 @@ public abstract class MapperConfiguratorBase<IMPL extends MapperConfiguratorBase
* If defined (explicitly or implicitly) it will be used, instead
* of using provider-based lookup.
*/
protected MAPPER _mapper;
protected volatile MAPPER _mapper;

/**
* If no mapper was specified when constructed, and no configuration
* calls are made, a default mapper is constructed. The difference
* between default mapper and regular one is that default mapper
* is only used if no mapper is found via provider lookup.
*/
protected MAPPER _defaultMapper;
protected volatile MAPPER _defaultMapper;

/**
* Annotations set to use by default; overridden by explicit call
* to {@link #setAnnotationsToUse}
* to {@link #setAnnotationsToUse}. Marked final in v2.17.1.
*/
protected Annotations[] _defaultAnnotationsToUse;
protected final Annotations[] _defaultAnnotationsToUse;

/**
* To support optional dependency to Jackson JAXB annotations module
Expand Down

0 comments on commit 8f4d50e

Please sign in to comment.