lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1328968 - /lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java
Date Sun, 22 Apr 2012 20:26:23 GMT
Author: rmuir
Date: Sun Apr 22 20:26:23 2012
New Revision: 1328968

URL: http://svn.apache.org/viewvc?rev=1328968&view=rev
Log:
fix private class returned by public method (name shadows public method)

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java?rev=1328968&r1=1328967&r2=1328968&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/codecs/mocksep/MockSingleIntIndexOutput.java
Sun Apr 22 20:26:23 2012
@@ -58,7 +58,7 @@ public class MockSingleIntIndexOutput ex
 
   @Override
   public Index index() {
-    return new Index();
+    return new MockSingleIntIndexOutputIndex();
   }
 
   @Override
@@ -71,7 +71,7 @@ public class MockSingleIntIndexOutput ex
     return "MockSingleIntIndexOutput fp=" + out.getFilePointer();
   }
 
-  private class Index extends IntIndexOutput.Index {
+  private class MockSingleIntIndexOutputIndex extends IntIndexOutput.Index {
     long fp;
     long lastFP;
     @Override
@@ -80,9 +80,9 @@ public class MockSingleIntIndexOutput ex
     }
     @Override
     public void copyFrom(IntIndexOutput.Index other, boolean copyLast) {
-      fp = ((Index) other).fp;
+      fp = ((MockSingleIntIndexOutputIndex) other).fp;
       if (copyLast) {
-        lastFP = ((Index) other).fp;
+        lastFP = ((MockSingleIntIndexOutputIndex) other).fp;
       }
     }
     @Override



Mime
View raw message