mirror of https://github.com/apache/lucene.git
fix generification bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1311110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c63f95911a
commit
00c2246e44
|
@ -190,7 +190,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
|||
// TODO: also look for other variants and handle them special
|
||||
int idx = random.nextInt(charfilters.size());
|
||||
try {
|
||||
Constructor<? extends CharStream> c = charfilters.get(idx).getConstructor(Reader.class);
|
||||
Constructor<? extends Reader> c = charfilters.get(idx).getConstructor(Reader.class);
|
||||
spec.reader = c.newInstance(spec.reader);
|
||||
} catch (NoSuchMethodException e) {
|
||||
Constructor<? extends CharStream> c = charfilters.get(idx).getConstructor(CharStream.class);
|
||||
|
|
Loading…
Reference in New Issue