You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/09/01 16:03:13 UTC

svn commit: r1621790 - /lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java

Author: rmuir
Date: Mon Sep  1 14:03:12 2014
New Revision: 1621790

URL: http://svn.apache.org/r1621790
Log:
LUCENE-5858: clear bogus code/comment up

Modified:
    lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java

Modified: lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java?rev=1621790&r1=1621789&r2=1621790&view=diff
==============================================================================
--- lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java (original)
+++ lucene/dev/branches/lucene5858/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java Mon Sep  1 14:03:12 2014
@@ -49,9 +49,7 @@ public class TestFileSwitchDirectory ext
     secondaryDir.setCheckIndexOnClose(false); // only part of an index
     
     FileSwitchDirectory fsd = new FileSwitchDirectory(fileExtensions, primaryDir, secondaryDir, true);
-    // for now we wire Lucene40Codec because we rely upon its specific impl
-    boolean oldValue = OLD_FORMAT_IMPERSONATION_IS_ACTIVE;
-    OLD_FORMAT_IMPERSONATION_IS_ACTIVE = true;
+    // for now we wire Lucene410Codec because we rely upon its specific impl
     IndexWriter writer = new IndexWriter(
         fsd,
         new IndexWriterConfig(new MockAnalyzer(random())).
@@ -83,7 +81,6 @@ public class TestFileSwitchDirectory ext
       assertNotNull(files[i]);
     }
     fsd.close();
-    OLD_FORMAT_IMPERSONATION_IS_ACTIVE = oldValue;
   }
   
   private Directory newFSSwitchDirectory(Set<String> primaryExtensions) throws IOException {