commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject commons-compress git commit: fix typo in syntax. Files is a static method so there shouldn't be a constructor
Date Sun, 01 Jul 2018 17:46:20 GMT
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 <nyjeanne@gmail.com>
Authored: Sun Jul 1 11:18:50 2018 -0400
Committer: Stefan Bodewig <bodewig@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)) {


Mime
View raw message