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


The following commit(s) were added to refs/heads/master by this push:
     new 51cd60ea Flip parameters in a private method
51cd60ea is described below

commit 51cd60ea302fd3c2b4cf9aa33dff37c4e546328f
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 1 11:13:57 2025 -0500

    Flip parameters in a private method
---
 .../java/org/apache/commons/imaging/formats/gif/GifImageParser.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java 
b/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java
index 96b7021f..90d5750d 100644
--- a/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java
+++ b/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java
@@ -829,7 +829,7 @@ public class GifImageParser extends 
AbstractImageParser<GifImagingParameters> im
         return result;
     }
 
-    private void writeAsSubBlocks(final OutputStream os, final byte[] bytes) 
throws IOException {
+    private void writeAsSubBlocks(final byte[] bytes, final OutputStream os) 
throws IOException {
         int index = 0;
 
         while (index < bytes.length) {
@@ -1039,7 +1039,7 @@ public class GifImageParser extends 
AbstractImageParser<GifImagingParameters> im
                 }
 
                 final byte[] compressed = compressor.compress(imageData);
-                writeAsSubBlocks(bos, compressed);
+                writeAsSubBlocks(compressed, bos);
 //            image_data_total += compressed.length;
             }
 

Reply via email to