lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1641862 - in /lucene/dev/trunk: ./ lucene/ lucene/test-framework/ lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java
Date Wed, 26 Nov 2014 17:24:05 GMT
Author: rmuir
Date: Wed Nov 26 17:24:05 2014
New Revision: 1641862

URL: http://svn.apache.org/r1641862
Log:
LUCENE-6072: fix delegation of remove method

Modified:
    lucene/dev/trunk/   (props changed)
    lucene/dev/trunk/lucene/   (props changed)
    lucene/dev/trunk/lucene/test-framework/   (props changed)
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java?rev=1641862&r1=1641861&r2=1641862&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java
Wed Nov 26 17:24:05 2014
@@ -109,6 +109,11 @@ public class FilterFileSystem extends Fi
         public Path next() {
           return new FilterPath(iterator.next(), FilterFileSystem.this);
         }
+        
+        @Override
+        public void remove() {
+          iterator.remove();
+        }
       };
     };
   }
@@ -128,6 +133,11 @@ public class FilterFileSystem extends Fi
         public FileStore next() {
           return new FilterFileStore(iterator.next(), parent.getScheme());
         }
+        
+        @Override
+        public void remove() {
+          iterator.remove();
+        }
       };
     };
   }

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java?rev=1641862&r1=1641861&r2=1641862&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java
Wed Nov 26 17:24:05 2014
@@ -237,6 +237,11 @@ public class FilterPath implements Path 
       public Path next() {
         return new FilterPath(iterator.next(), fileSystem);
       }
+
+      @Override
+      public void remove() {
+        iterator.remove();
+      }
     };
   }
 



Mime
View raw message