External method to set rootTypeParsers in DocumentMapperParser incorrect

fixes #4113
This commit is contained in:
Shay Banon 2013-11-07 01:06:57 +01:00
parent f6c2ee0ab2
commit 021aa09614
1 changed files with 1 additions and 2 deletions

View File

@ -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();
}