mirror of https://github.com/apache/lucene.git
LUCENE-5904: fix redundant cast warning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1621423 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e969c2c39c
commit
7bb8cd1e39
|
@ -626,7 +626,7 @@ public class TestDirectoryReaderReopen extends LuceneTestCase {
|
||||||
MockDirectoryWrapper dir = newMockDirectory();
|
MockDirectoryWrapper dir = newMockDirectory();
|
||||||
if (dir instanceof MockDirectoryWrapper) {
|
if (dir instanceof MockDirectoryWrapper) {
|
||||||
// ensure we produce enough of our exceptions
|
// ensure we produce enough of our exceptions
|
||||||
((MockDirectoryWrapper)dir).setEnableVirusScanner(false);
|
dir.setEnableVirusScanner(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
IndexWriterConfig iwc = new IndexWriterConfig(new MockAnalyzer(random()));
|
IndexWriterConfig iwc = new IndexWriterConfig(new MockAnalyzer(random()));
|
||||||
|
|
Loading…
Reference in New Issue