Skip to content

Commit

Permalink
fix: make JsonSchemaFactory more thread-safe #891 (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpayne-coveo authored Nov 17, 2023
1 parent 92141e3 commit 9ed6dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/networknt/schema/JsonSchemaFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static class Builder {
private final Map<String, URIFactory> uriFactoryMap = new HashMap<String, URIFactory>();
private final Map<String, URIFetcher> uriFetcherMap = new HashMap<String, URIFetcher>();
private URNFactory urnFactory;
private final Map<String, JsonMetaSchema> jsonMetaSchemas = new HashMap<String, JsonMetaSchema>();
private final ConcurrentMap<String, JsonMetaSchema> jsonMetaSchemas = new ConcurrentHashMap<String, JsonMetaSchema>();
private final Map<String, String> uriMap = new HashMap<String, String>();
private boolean enableUriSchemaCache = true;
private final CompositeURITranslator uriTranslators = new CompositeURITranslator();
Expand Down

0 comments on commit 9ed6dc2

Please sign in to comment.