External method to set rootTypeParsers in DocumentMapperParser incorrect
fixes #4113
This commit is contained in:
parent
f6c2ee0ab2
commit
021aa09614
|
@ -134,8 +134,7 @@ public class DocumentMapperParser extends AbstractIndexComponent {
|
||||||
|
|
||||||
public void putRootTypeParser(String type, Mapper.TypeParser typeParser) {
|
public void putRootTypeParser(String type, Mapper.TypeParser typeParser) {
|
||||||
synchronized (typeParsersMutex) {
|
synchronized (typeParsersMutex) {
|
||||||
rootTypeParsers = new MapBuilder<String, Mapper.TypeParser>()
|
rootTypeParsers = new MapBuilder<String, Mapper.TypeParser>(rootTypeParsers)
|
||||||
.putAll(typeParsers)
|
|
||||||
.put(type, typeParser)
|
.put(type, typeParser)
|
||||||
.immutableMap();
|
.immutableMap();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue