lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r511384 - in /lucene/java/trunk: ./ src/java/org/apache/lucene/index/
Date Sun, 25 Feb 2007 00:43:46 GMT
Author: mikemccand
Date: Sat Feb 24 16:43:45 2007
New Revision: 511384

URL: http://svn.apache.org/viewvc?view=rev&rev=511384
Log:
LUCENE-811: make SegmentInfos class package-private again

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNames.java
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?view=diff&rev=511384&r1=511383&r2=511384
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Sat Feb 24 16:43:45 2007
@@ -16,6 +16,10 @@
     This was done to better call out the possible root causes of an
     IOException from these methods.  (Mike McCandless)
 
+ 2. LUCENE-811: make SegmentInfos class, plus a few methods from related
+    classes, package-private again (they were unnecessarily made public
+    as part of LUCENE-701).  (Mike McCandless)
+
 Bug fixes
 
  1. LUCENE-804: Fixed build.xml to pack a fully compilable src dist.  (Doron Cohen)

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNames.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNames.java?view=diff&rev=511384&r1=511383&r2=511384
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNames.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexFileNames.java Sat Feb 24 16:43:45
2007
@@ -71,7 +71,7 @@
    * @param extension -- extension of the filename (including .)
    * @param gen -- generation
    */
-  public static final String fileNameFromGeneration(String base, String extension, long gen)
{
+  static final String fileNameFromGeneration(String base, String extension, long gen) {
     if (gen == -1) {
       return null;
     } else if (gen == 0) {

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java?view=diff&rev=511384&r1=511383&r2=511384
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java Sat Feb 24 16:43:45
2007
@@ -157,7 +157,7 @@
 
     return (IndexReader) new SegmentInfos.FindSegmentsFile(directory) {
 
-      public Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
+      protected Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
 
         SegmentInfos infos = new SegmentInfos();
         infos.read(directory, segmentFileName);

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java?view=diff&rev=511384&r1=511383&r2=511384
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java Sat Feb 24 16:43:45
2007
@@ -94,7 +94,7 @@
    * @param format format of the segments info file
    * @param input input handle to read segment info from
    */
-  public SegmentInfo(Directory dir, int format, IndexInput input) throws IOException {
+  SegmentInfo(Directory dir, int format, IndexInput input) throws IOException {
     this.dir = dir;
     name = input.readString();
     docCount = input.readInt();

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java?view=diff&rev=511384&r1=511383&r2=511384
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java Sat Feb 24 16:43:45
2007
@@ -27,7 +27,7 @@
 import java.io.PrintStream;
 import java.util.Vector;
 
-public final class SegmentInfos extends Vector {
+final class SegmentInfos extends Vector {
   
   /** The file format version, a negative number. */
   /* Works since counter, the old 1st entry, is always >= 0 */
@@ -235,7 +235,7 @@
 
     new FindSegmentsFile(directory) {
 
-      public Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
+      protected Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
         read(directory, segmentFileName);
         return null;
       }
@@ -315,7 +315,7 @@
     throws CorruptIndexException, IOException {
 
     return ((Long) new FindSegmentsFile(directory) {
-        public Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
+        protected Object doBody(String segmentFileName) throws CorruptIndexException, IOException
{
 
           IndexInput input = directory.openInput(segmentFileName);
 
@@ -630,5 +630,6 @@
      * during the processing that could have been caused by
      * a writer committing.
      */
-    protected abstract Object doBody(String segmentFileName) throws CorruptIndexException,
IOException;}
+    protected abstract Object doBody(String segmentFileName) throws CorruptIndexException,
IOException;
+  }
 }



Mime
View raw message