Skip to content

Commit

Permalink
PDFBOX-5660: sonar fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922831 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jan 2, 2025
1 parent 8f8ece5 commit 9cf28a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,21 +198,21 @@ void testInlineImage() throws IOException
@Test
void testShortCCITT1() throws IOException
{
byte ba[] = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 4, 8, 0x10, 0, 0x40, 4, 0, 0x40, 4, 0, 0x40, 4 };
byte[] ba = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 4, 8, 0x10, 0, 0x40, 4, 0, 0x40, 4, 0, 0x40, 4 };
doInlineCcittImage(23, 10, ba);
}

@Test
void testShortCCITT2() throws IOException
{
byte ba[] = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 0, 8, 0, (byte) 0x80, 8, 8, (byte) 0x80, 8, 0, (byte) 0x80};
byte[] ba = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 0, 8, 0, (byte) 0x80, 8, 8, (byte) 0x80, 8, 0, (byte) 0x80};
doInlineCcittImage(23, 7, ba);
}

@Test
void testShortCCITT3() throws IOException
{
byte ba[] = { 103, 44, 103, 44, 103, 44, 103, 44, 0, 16, 1, 0, 16, 1, 0, 16, 1, 10};
byte[] ba = { 103, 44, 103, 44, 103, 44, 103, 44, 0, 16, 1, 0, 16, 1, 0, 16, 1, 10};
doInlineCcittImage(683, 4, ba);
}

Expand Down
2 changes: 1 addition & 1 deletion tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class TextToPDF implements Callable<Integer>
private Charset charset = Charset.defaultCharset();

@Option(names = "-margins", arity="0..4", description = "Left Right Top Bottom margins (default: ${DEFAULT-VALUE})")
private float margins[] = {DEFAULT_MARGIN, DEFAULT_MARGIN, DEFAULT_MARGIN, DEFAULT_MARGIN};
private float[] margins = {DEFAULT_MARGIN, DEFAULT_MARGIN, DEFAULT_MARGIN, DEFAULT_MARGIN};

@Option(names = "-standardFont",
description = "the font to use for the text. Either this or -ttf should be specified but not both.\nCandidates: ${COMPLETION-CANDIDATES} (default: ${DEFAULT-VALUE})")
Expand Down

0 comments on commit 9cf28a5

Please sign in to comment.