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 87be02a PDFBOX-6263: replace optimized code with shorter code by
Claude Code
87be02a is described below
commit 87be02a00e0b93505267fd5e6b503c63d7c3d714
Author: Tilman Hausherr <[email protected]>
AuthorDate: Sun Sep 13 22:04:37 2026 +0200
PDFBOX-6263: replace optimized code with shorter code by Claude Code
---
src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
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 eb9264c..0bbb966 100644
--- a/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
+++ b/src/main/java/org/apache/pdfbox/jbig2/segments/SymbolDictionary.java
@@ -553,12 +553,11 @@ public class SymbolDictionary implements Dictionary
int startColumn = 0;
for (int i = heightClassFirstSymbol; i < amountOfDecodedSymbols; i++)
{
- final int symbolWidth = newSymbolsWidths[i];
- final Rectangle roi = new Rectangle(startColumn, 0, symbolWidth,
heightClassHeight);
+ final Rectangle roi = new Rectangle(startColumn, 0,
newSymbolsWidths[i], heightClassHeight);
final Bitmap symbolBitmap = Bitmaps.extract(roi,
heightClassCollectiveBitmap);
newSymbols[i] = symbolBitmap;
sbSymbols.add(symbolBitmap);
- startColumn += symbolWidth;
+ startColumn += newSymbolsWidths[i];
}
}