| | */ |
| | public class SymSpellSpeller implements SpellChecker { |
| | + private final BreakIterator mBreakIterator = BreakIterator.getWordInstance(); |
| | + |
| | private final SymSpell mSymSpell; |
| | |
 |
| | assert consumer != null; |
| | |
| | - final BreakIterator wb = BreakIterator.getWordInstance(); |
| | - wb.setText( text ); |
| | + mBreakIterator.setText( text ); |
| | |
| | - int boundaryIndex = wb.first(); |
| | + int boundaryIndex = mBreakIterator.first(); |
| | int previousIndex = 0; |
| | |
 |
| | |
| | previousIndex = boundaryIndex; |
| | - boundaryIndex = wb.next(); |
| | + boundaryIndex = mBreakIterator.next(); |
| | } |
| | } |