This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push: new a1aa1de2 Reuse newer APIs. a1aa1de2 is described below commit a1aa1de2f981f624bb1022b94ceb05aa1a09f650 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed Apr 20 16:17:44 2022 -0400 Reuse newer APIs. --- .../java/org/apache/commons/vfs2/provider/gzip/GzipFileObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileObject.java index f087a2ce..62e85aef 100644 --- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileObject.java +++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/gzip/GzipFileObject.java @@ -59,11 +59,11 @@ public class GzipFileObject extends CompressedFileFileObject<GzipFileSystem> { @Override protected InputStream doGetInputStream(final int bufferSize) throws Exception { - return new GZIPInputStream(getContainer().getContent().getInputStream(), bufferSize); + return new GZIPInputStream(getInputStream(), bufferSize); } @Override protected OutputStream doGetOutputStream(final boolean bAppend) throws Exception { - return new GZIPOutputStream(getContainer().getContent().getOutputStream(false)); + return new GZIPOutputStream(getOutputStream(false)); } }