LUCENE-6072: fix delegation of remove method

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1641862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-11-26 17:24:05 +00:00
parent 74af952f0e
commit 414c894ad2
2 changed files with 15 additions and 0 deletions

View File

@ -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();
}
};
};
}

View File

@ -237,6 +237,11 @@ public class FilterPath implements Path {
public Path next() {
return new FilterPath(iterator.next(), fileSystem);
}
@Override
public void remove() {
iterator.remove();
}
};
}