use 'reader' in code to make it easier to disable evilReader

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1684294 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-06-08 23:20:08 +00:00
parent ab21c7dcd6
commit 1cf0ee7471
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ public abstract class BaseTokenStreamTestCase extends LuceneTestCase {
// currently allow it, so, we must call // currently allow it, so, we must call
// a.tokenStream inside the try since we may // a.tokenStream inside the try since we may
// hit the exc on init: // hit the exc on init:
ts = a.tokenStream("dummy", useCharFilter ? new MockCharFilter(evilReader, remainder) : evilReader); ts = a.tokenStream("dummy", useCharFilter ? new MockCharFilter(reader, remainder) : reader);
ts.reset(); ts.reset();
while (ts.incrementToken()); while (ts.incrementToken());
fail("did not hit exception"); fail("did not hit exception");