You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2024/04/11 07:44:02 UTC

(pekko-http) branch main updated: fix deprecation warning in Untar.scala (#534)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new a99f968e6 fix deprecation warning in Untar.scala (#534)
a99f968e6 is described below

commit a99f968e6ff507a0ec15f0937339b38a75b54e0d
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Thu Apr 11 09:43:56 2024 +0200

    fix deprecation warning in Untar.scala (#534)
---
 project/Untar.scala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/project/Untar.scala b/project/Untar.scala
index afe8a891f..77ede2a49 100644
--- a/project/Untar.scala
+++ b/project/Untar.scala
@@ -31,14 +31,14 @@ object Untar {
       val gzIn = new GzipCompressorInputStream(buffIn)
       Using(new TarArchiveInputStream(gzIn)) { tis =>
         toDirectory.mkdirs()
-        var entry = tis.getNextTarEntry
+        var entry = tis.getNextEntry
         while (entry ne null) {
           val name = entry.getName
           val outFile = new File(toDirectory, name)
           Using(new FileOutputStream(outFile)) { fos =>
             IOUtils.copy(tis, fos)
           }
-          entry = tis.getNextTarEntry
+          entry = tis.getNextEntry
         }
       }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org