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-compress.git

commit 5f90930715323e679ec618e557b07b06373d626f
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 1 15:03:06 2025 -0500

    Use higher type in internal API: SeekableByteChannel ->
    WritableByteChannel
---
 .../java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java 
b/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
index 47ca263e7..f05a7452d 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipIoUtil.java
@@ -21,7 +21,7 @@
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import java.nio.channels.FileChannel;
-import java.nio.channels.SeekableByteChannel;
+import java.nio.channels.WritableByteChannel;
 
 /**
  * IO utilities for Zip operations.
@@ -36,7 +36,7 @@ final class ZipIoUtil {
      * @param buf     buffer to write
      * @throws IOException when writing fails or fails to write fully
      */
-    static void writeFully(final SeekableByteChannel channel, final ByteBuffer 
buf) throws IOException {
+    static void writeFully(final WritableByteChannel channel, final ByteBuffer 
buf) throws IOException {
         while (buf.hasRemaining()) {
             final int remaining = buf.remaining();
             final int written = channel.write(buf);

Reply via email to