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

asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git


The following commit(s) were added to refs/heads/master by this push:
     new 8199658  PDFBOX-5660: Sonar fix
8199658 is described below

commit 81996589bd2e2d2b6d50f7e61935b503350493cf
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri May 15 12:37:35 2026 +0200

    PDFBOX-5660: Sonar fix
---
 src/main/java/org/apache/pdfbox/jbig2/image/Scanline.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/pdfbox/jbig2/image/Scanline.java 
b/src/main/java/org/apache/pdfbox/jbig2/image/Scanline.java
index e55d4a3..b44f553 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/image/Scanline.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/image/Scanline.java
@@ -147,7 +147,8 @@ abstract class Scanline
 
             final int[] abuf = data;
 
-            for (int b = 0; b < abuf.length;)
+            int b = 0;
+            while (b < abuf.length)
             {
                 for (int c = 0; c < 3; c++, b++)
                 {
@@ -291,7 +292,8 @@ abstract class Scanline
 
             final int[] abuf = data;
 
-            for (int b = 0; b < abuf.length;)
+            int b = 0;
+            while (b < abuf.length)
             {
                 for (int c = 0; c < componentCount; c++, b++)
                 {

Reply via email to