You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2008/12/01 02:10:31 UTC

svn commit: r721939 - /lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java

Author: yonik
Date: Sun Nov 30 17:10:30 2008
New Revision: 721939

URL: http://svn.apache.org/viewvc?rev=721939&view=rev
Log:
SOLR-465: use public constructors to get Directory instances

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java?rev=721939&r1=721938&r2=721939&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/core/StandardDirectoryFactory.java Sun Nov 30 17:10:30 2008
@@ -1,5 +1,6 @@
 package org.apache.solr.core;
 
+import java.io.File;
 import java.io.IOException;
 
 import org.apache.lucene.store.Directory;
@@ -15,9 +16,9 @@
 
   public Directory open(String path) throws IOException {
     if (!Constants.WINDOWS) {
-      return NIOFSDirectory.getDirectory(path);
+      return new NIOFSDirectory(new File(path), null);
     }
 
-    return FSDirectory.getDirectory(path);
+    return new FSDirectory(new File(path), null);
   }
 }