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:
Michael McCandless 2014-08-30 08:26:14 +00:00
parent e969c2c39c
commit 7bb8cd1e39
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ public class TestDirectoryReaderReopen extends LuceneTestCase {
MockDirectoryWrapper dir = newMockDirectory();
if (dir instanceof MockDirectoryWrapper) {
// ensure we produce enough of our exceptions
((MockDirectoryWrapper)dir).setEnableVirusScanner(false);
dir.setEnableVirusScanner(false);
}
IndexWriterConfig iwc = new IndexWriterConfig(new MockAnalyzer(random()));