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

commit 6d9f877b22b70826cd0e0b5a2226cf0f65f918bf
Author: Tilman Hausherr <[email protected]>
AuthorDate: Wed May 13 13:49:35 2026 +0200

    PDFBOX-5660: use isEmpty()
---
 src/main/java/org/apache/pdfbox/jbig2/JBIG2Document.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/pdfbox/jbig2/JBIG2Document.java 
b/src/main/java/org/apache/pdfbox/jbig2/JBIG2Document.java
index 539c111..89e6363 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/JBIG2Document.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/JBIG2Document.java
@@ -143,7 +143,7 @@ class JBIG2Document
     {
         if (amountOfPagesUnknown || amountOfPages == 0)
         {
-            if (pages.size() == 0)
+            if (pages.isEmpty())
             {
                 mapStream();
             }

Reply via email to