lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r763024 - in /lucene/java/trunk/src/java/org/apache/lucene/index: DirectoryIndexReader.java FilterIndexReader.java MultiReader.java ParallelReader.java
Date Tue, 07 Apr 2009 22:52:49 GMT
Author: mikemccand
Date: Tue Apr  7 22:52:49 2009
New Revision: 763024

URL: http://svn.apache.org/viewvc?rev=763024&view=rev
Log:
LUCENE-1546: also declare all subclasses' doCommit() to be deprecated

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/FilterIndexReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java?rev=763024&r1=763023&r2=763024&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java Tue Apr 
7 22:52:49 2009
@@ -350,6 +350,7 @@
       directory.close();
   }
   
+  /** @deprecated */
   protected void doCommit() throws IOException {
     doCommit(null);
   }

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/FilterIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/FilterIndexReader.java?rev=763024&r1=763023&r2=763024&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/FilterIndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/FilterIndexReader.java Tue Apr  7 22:52:49
2009
@@ -209,8 +209,12 @@
   }
 
   protected void doDelete(int n) throws  CorruptIndexException, IOException { in.deleteDocument(n);
}
+  
+  /** @deprecated */
   protected void doCommit() throws IOException { doCommit(null); }
+  
   protected void doCommit(String commitUserData) throws IOException { in.commit(commitUserData);
}
+  
   protected void doClose() throws IOException { in.close(); }
 
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java?rev=763024&r1=763023&r2=763024&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/MultiReader.java Tue Apr  7 22:52:49
2009
@@ -346,6 +346,7 @@
     return new MultiTermPositions(subReaders, starts);
   }
 
+  /** @deprecated */
   protected void doCommit() throws IOException {
     doCommit(null);
   }

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java?rev=763024&r1=763023&r2=763024&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java Tue Apr  7 22:52:49
2009
@@ -436,6 +436,7 @@
     return (IndexReader[]) readers.toArray(new IndexReader[readers.size()]);
   }
 
+  /** @deprecated */
   protected void doCommit() throws IOException {
     doCommit(null);
   }



Mime
View raw message