Apache Lucene open-source search software
LUCENE-6072: fix delegation of remove method
Robert Muir414c894ad284
diff --git a/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java b/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.javaindex 204c7819e9a..37a03c99db5 100644--- a/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java+++ b/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java@@ -109,6 +109,11 @@ public class FilterFileSystem extends FileSystem {public Path next() {return new FilterPath(iterator.next(), FilterFileSystem.this);}++ @Override+ public void remove() {+ iterator.remove();+ }};};}@@ -128,6 +133,11 @@ public class FilterFileSystem extends FileSystem {public FileStore next() {return new FilterFileStore(iterator.next(), parent.getScheme());}++ @Override+ public void remove() {+ iterator.remove();+ }};};}diff --git a/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java b/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.javaindex 0e746852227..b8147ee0e22 100644--- a/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java+++ b/lucene/test-framework/src/java/org/apache/lucene/mockfile/FilterPath.java@@ -237,6 +237,11 @@ public class FilterPath implements Path {public Path next() {return new FilterPath(iterator.next(), fileSystem);}++ @Override+ public void remove() {+ iterator.remove();+ }};}