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 3fd3800 PDFBOX-5660: remove exception that isn't thrown
3fd3800 is described below
commit 3fd380034f0a4d82a2b51058c2be56fa4e0d2016
Author: Tilman Hausherr <[email protected]>
AuthorDate: Fri May 15 16:10:06 2026 +0200
PDFBOX-5660: remove exception that isn't thrown
---
.../java/org/apache/pdfbox/jbig2/segments/GenericRegion.java | 10 +++++-----
.../org/apache/pdfbox/jbig2/segments/SymbolDictionary.java | 10 ++++------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/main/java/org/apache/pdfbox/jbig2/segments/GenericRegion.java
b/src/main/java/org/apache/pdfbox/jbig2/segments/GenericRegion.java
index 7fc73a1..f42f71a 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/segments/GenericRegion.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/segments/GenericRegion.java
@@ -779,7 +779,7 @@ public class GenericRegion implements Region
}
private int overrideAtTemplate0a(int context, final int x, final int y,
final int result,
- final int minorX, final int toShift) throws IOException
+ final int minorX, final int toShift)
{
if (gbAtOverride[0])
{
@@ -820,7 +820,7 @@ public class GenericRegion implements Region
}
private int overrideAtTemplate0b(int context, final int x, final int y,
final int result,
- final int minorX, final int toShift) throws IOException
+ final int minorX, final int toShift)
{
if (gbAtOverride[0])
{
@@ -924,7 +924,7 @@ public class GenericRegion implements Region
}
private int overrideAtTemplate1(int context, final int x, final int y,
final int result,
- final int minorX) throws IOException
+ final int minorX)
{
context &= 0x1ff7;
if (gbAtY[0] == 0 && gbAtX[0] >= -minorX)
@@ -934,7 +934,7 @@ public class GenericRegion implements Region
}
private int overrideAtTemplate2(int context, final int x, final int y,
final int result,
- final int minorX) throws IOException
+ final int minorX)
{
context &= 0x3fb;
if (gbAtY[0] == 0 && gbAtX[0] >= -minorX)
@@ -944,7 +944,7 @@ public class GenericRegion implements Region
}
private int overrideAtTemplate3(int context, final int x, final int y,
final int result,
- final int minorX) throws IOException
+ final int minorX)
{
context &= 0x3ef;
if (gbAtY[0] == 0 && gbAtX[0] >= -minorX)
diff --git
a/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
b/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
index 392e658..a647c3f 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
@@ -595,7 +595,7 @@ public class SymbolDictionary implements Dictionary
}
}
- private long huffDecodeRefAggNInst() throws IOException,
InvalidHeaderValueException
+ private long huffDecodeRefAggNInst() throws IOException
{
if (sdHuffAggInstanceSelection == 0)
{
@@ -779,7 +779,7 @@ public class SymbolDictionary implements Dictionary
sbSymbols.add(symbol);
}
- private long decodeDifferenceWidth() throws IOException,
InvalidHeaderValueException
+ private long decodeDifferenceWidth() throws IOException
{
if (isHuffmanEncoded)
{
@@ -831,10 +831,8 @@ public class SymbolDictionary implements Dictionary
*
* @return long - Result of decoding HCDH
* @throws IOException
- * @throws InvalidHeaderValueException
*/
- private long decodeHeightClassDeltaHeightWithHuffman()
- throws IOException, InvalidHeaderValueException
+ private long decodeHeightClassDeltaHeightWithHuffman() throws IOException
{
switch (sdHuffDecodeHeightSelection)
{
@@ -943,7 +941,7 @@ public class SymbolDictionary implements Dictionary
return exportFlags;
}
- private long huffDecodeBmSize() throws IOException,
InvalidHeaderValueException
+ private long huffDecodeBmSize() throws IOException
{
if (bmSizeTable == null)
{