public SpellCheckWorker(IndexReader reader, TestSpellChecker enclInstance) : base() { this.reader = reader; enclosingInstance = enclInstance; m_thread = new Thread(run); }
ArrayList searchers = ArrayList.Synchronized(new ArrayList()); // <--New !!!!!!! public SpellCheckerMock(Directory spellIndex, TestSpellChecker inst) : base(spellIndex) { enclosingInstance = inst; enclosingInstance.searchers = searchers; //Note: this code is invoked after createSearcher }