Skip to content

Commit 9cf28a5

Browse files
committed
PDFBOX-5660: sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922831 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8f8ece5 commit 9cf28a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/PDInlineImageTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,21 +198,21 @@ void testInlineImage() throws IOException
198198
@Test
199199
void testShortCCITT1() throws IOException
200200
{
201-
byte ba[] = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 4, 8, 0x10, 0, 0x40, 4, 0, 0x40, 4, 0, 0x40, 4 };
201+
byte[] ba = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 4, 8, 0x10, 0, 0x40, 4, 0, 0x40, 4, 0, 0x40, 4 };
202202
doInlineCcittImage(23, 10, ba);
203203
}
204204

205205
@Test
206206
void testShortCCITT2() throws IOException
207207
{
208-
byte ba[] = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 0, 8, 0, (byte) 0x80, 8, 8, (byte) 0x80, 8, 0, (byte) 0x80};
208+
byte[] ba = { 8, 0x10, 0x20, 0x40, (byte) 0x81, 2, 0, 8, 0, (byte) 0x80, 8, 8, (byte) 0x80, 8, 0, (byte) 0x80};
209209
doInlineCcittImage(23, 7, ba);
210210
}
211211

212212
@Test
213213
void testShortCCITT3() throws IOException
214214
{
215-
byte ba[] = { 103, 44, 103, 44, 103, 44, 103, 44, 0, 16, 1, 0, 16, 1, 0, 16, 1, 10};
215+
byte[] ba = { 103, 44, 103, 44, 103, 44, 103, 44, 0, 16, 1, 0, 16, 1, 0, 16, 1, 10};
216216
doInlineCcittImage(683, 4, ba);
217217
}
218218

tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class TextToPDF implements Callable<Integer>
9393
private Charset charset = Charset.defaultCharset();
9494

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

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

0 commit comments

Comments
 (0)