revert bogus fix (assault against a police officer)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1311113 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-04-08 22:10:08 +00:00
parent 00c2246e44
commit 27dbcaefdc
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
// TODO: also look for other variants and handle them special // TODO: also look for other variants and handle them special
int idx = random.nextInt(charfilters.size()); int idx = random.nextInt(charfilters.size());
try { try {
Constructor<? extends Reader> c = charfilters.get(idx).getConstructor(Reader.class); Constructor<? extends CharStream> c = charfilters.get(idx).getConstructor(Reader.class);
spec.reader = c.newInstance(spec.reader); spec.reader = c.newInstance(spec.reader);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
Constructor<? extends CharStream> c = charfilters.get(idx).getConstructor(CharStream.class); Constructor<? extends CharStream> c = charfilters.get(idx).getConstructor(CharStream.class);