You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2018/07/01 17:46:20 UTC

commons-compress git commit: fix typo in syntax. Files is a static method so there shouldn't be a constructor

Repository: commons-compress
Updated Branches:
  refs/heads/master 22b0d0629 -> 15baa60ca


fix typo in syntax. Files is a static method so there shouldn't be a constructor


Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/15baa60c
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/15baa60c
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/15baa60c

Branch: refs/heads/master
Commit: 15baa60ca2ef292ea0dc9a7bf197b2044d5823fb
Parents: 22b0d06
Author: Jeanne Boyarsky <ny...@gmail.com>
Authored: Sun Jul 1 11:18:50 2018 -0400
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Jul 1 19:45:34 2018 +0200

----------------------------------------------------------------------
 src/site/xdoc/examples.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-compress/blob/15baa60c/src/site/xdoc/examples.xml
----------------------------------------------------------------------
diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml
index 5f9d2b0..81af44b 100644
--- a/src/site/xdoc/examples.xml
+++ b/src/site/xdoc/examples.xml
@@ -209,7 +209,7 @@ try (ArchiveInputStream i = ... create the stream for your format, use buffering
         <code>CompressorInputStream</code> for example:</p>
 
         <source><![CDATA[
-try (InputStream fi = new Files.newInputStream(Paths.get("my.tar.gz"));
+try (InputStream fi = Files.newInputStream(Paths.get("my.tar.gz"));
      InputStream bi = new BufferedInputStream(fi);
      InputStream gzi = new GzipCompressorInputStream(bi);
      ArchiveInputStream o = new TarArchiveInputStream(gzi)) {