Description
NormalizeCharMap#build method is inconsistent with later use in MappingCharFilter
final org.apache.lucene.util.fst.Builder<CharsRef> builder = new org.apache.lucene.util.fst.Builder<CharsRef>(FST.INPUT_TYPE.BYTE2, outputs); final IntsRef scratch = new IntsRef(); for(Map.Entry<String,String> ent : pendingPairs.entrySet()) { builder.add(Util.toUTF32(ent.getKey(), scratch), new CharsRef(ent.getValue()));
(note BYTE2 vs. toUTF32 later on).