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 c5c1051fd872dcdc8872c7bb42d97c92247f41b2 Author: Tilman Hausherr <[email protected]> AuthorDate: Thu May 14 14:12:03 2026 +0200 PDFBOX-5660: remove exception that isn't thrown --- .../org/apache/pdfbox/jbig2/JBIG2ImageReaderTest.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderTest.java b/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderTest.java index 653d31d..66347db 100644 --- a/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderTest.java +++ b/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderTest.java @@ -31,8 +31,6 @@ import javax.imageio.ImageReader; import javax.imageio.stream.ImageInputStream; import javax.imageio.stream.MemoryCacheImageInputStream; -import org.apache.pdfbox.jbig2.err.IntegerMaxValueException; -import org.apache.pdfbox.jbig2.err.InvalidHeaderValueException; import org.junit.Assert; import org.junit.Test; @@ -56,7 +54,7 @@ public class JBIG2ImageReaderTest } @Test - public void testRead() throws IOException, InvalidHeaderValueException, IntegerMaxValueException + public void testRead() throws IOException { int imageIndex = 0; @@ -82,8 +80,7 @@ public class JBIG2ImageReaderTest } @Test - public void testReadRaster() - throws IOException, InvalidHeaderValueException, IntegerMaxValueException + public void testReadRaster() throws IOException { int imageIndex = 0; @@ -104,8 +101,7 @@ public class JBIG2ImageReaderTest } @Test - public void testReadImageReadParamNull() - throws IOException, InvalidHeaderValueException, IntegerMaxValueException + public void testReadImageReadParamNull() throws IOException { int imageIndex = 0; @@ -125,8 +121,7 @@ public class JBIG2ImageReaderTest } @Test - public void testReadRasterImageReadParamNull() - throws IOException, InvalidHeaderValueException, IntegerMaxValueException + public void testReadRasterImageReadParamNull() throws IOException { int imageIndex = 0; @@ -146,8 +141,7 @@ public class JBIG2ImageReaderTest } @Test - public void testGetNumImages() - throws IOException, InvalidHeaderValueException, IntegerMaxValueException + public void testGetNumImages() throws IOException { String filepath = "/images/002.jb2";
