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

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


The following commit(s) were added to refs/heads/main by this push:
     new e9ecc0314 use ByteString.asInputString (#1163)
e9ecc0314 is described below

commit e9ecc031493ff5d5443b4c121df9db6942264a99
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Sep 10 19:22:44 2025 +0100

    use ByteString.asInputString (#1163)
---
 file/src/test/java/docs/javadsl/ArchiveHelper.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/file/src/test/java/docs/javadsl/ArchiveHelper.java 
b/file/src/test/java/docs/javadsl/ArchiveHelper.java
index d3f6cacb8..56062e94d 100644
--- a/file/src/test/java/docs/javadsl/ArchiveHelper.java
+++ b/file/src/test/java/docs/javadsl/ArchiveHelper.java
@@ -25,8 +25,7 @@ import java.util.zip.ZipInputStream;
 public class ArchiveHelper {
 
   public Map<String, ByteString> unzip(ByteString zipArchive) throws Exception 
{
-    // toArrayUnsafe is ok here because we know that ZipInputStream will not 
mutate the array
-    ZipInputStream zis = new ZipInputStream(new 
ByteArrayInputStream(zipArchive.toArrayUnsafe()));
+    ZipInputStream zis = new ZipInputStream(zipArchive.asInputStream());
     ZipEntry entry;
     Map<String, ByteString> result = new HashMap<>();
     try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to