lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1620733 - /lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java
Date Tue, 26 Aug 2014 20:51:34 GMT
Author: mikemccand
Date: Tue Aug 26 20:51:34 2014
New Revision: 1620733

URL: http://svn.apache.org/r1620733
Log:
remove unnecessary cast

Modified:
    lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java

Modified: lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java?rev=1620733&r1=1620732&r2=1620733&view=diff
==============================================================================
--- lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java
(original)
+++ lucene/dev/branches/lucene5904/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterCommit.java
Tue Aug 26 20:51:34 2014
@@ -191,7 +191,7 @@ public class TestIndexWriterCommit exten
     if (dir instanceof MockDirectoryWrapper) {
       // the virus scanner can use up too much disk space :)
       // an alternative is to expose MDW.triedToDelete and discount it
-      ((MockDirectoryWrapper)dir).setEnableVirusScanner(false);
+      dir.setEnableVirusScanner(false);
     }
     Analyzer analyzer;
     if (random().nextBoolean()) {



Mime
View raw message