mirror of https://github.com/apache/lucene.git
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:
parent
74af952f0e
commit
414c894ad2
|
@ -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();
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -237,6 +237,11 @@ public class FilterPath implements Path {
|
|||
public Path next() {
|
||||
return new FilterPath(iterator.next(), fileSystem);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove() {
|
||||
iterator.remove();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue