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) {
|
||||
synchronized (typeParsersMutex) {
|
||||
rootTypeParsers = new MapBuilder<String, Mapper.TypeParser>()
|
||||
.putAll(typeParsers)
|
||||
rootTypeParsers = new MapBuilder<String, Mapper.TypeParser>(rootTypeParsers)
|
||||
.put(type, typeParser)
|
||||
.immutableMap();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue