Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark variables as volatile for safe concurrent access #28

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
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.
cowtowncoder marked this conversation as resolved.
Show resolved Hide resolved
*/
protected Annotations[] _defaultAnnotationsToUse;
protected final Annotations[] _defaultAnnotationsToUse;

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