Skip to content

Commit cc34c24

Browse files
committed
PDFBOX-5660: Sonar fix
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1935306 13f79535-47bb-0310-9956-ffa450edef68
1 parent 27513b8 commit cc34c24

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

fontbox/src/test/java/org/apache/fontbox/ttf/GSUBTableDebugger.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.apache.fontbox.ttf;
1919

20-
import static org.junit.jupiter.api.Assertions.fail;
2120

2221
import java.io.IOException;
2322
import java.io.InputStream;
@@ -38,7 +37,7 @@ public class GSUBTableDebugger
3837
private static final String LOHIT_BENGALI_FONT_FILE = "/ttf/Lohit-Bengali.ttf";
3938

4039
@Test
41-
void printLohitBengaliTTF()
40+
void printLohitBengaliTTF() throws IOException
4241
{
4342
try(InputStream is1 = GSUBTableDebugger.class.getResourceAsStream(LOHIT_BENGALI_FONT_FILE);
4443
InputStream is2 = GSUBTableDebugger.class.getResourceAsStream(LOHIT_BENGALI_FONT_FILE))
@@ -60,10 +59,6 @@ void printLohitBengaliTTF()
6059
new GSUBTablePrintUtil().printCharacterToGlyph(gsubData,
6160
trueTypeFont.getUnicodeCmapLookup());
6261
}
63-
catch (IOException exception)
64-
{
65-
fail(exception);
66-
}
6762
}
6863

6964
}

pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDPageContentStream.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.apache.pdfbox.pdmodel;
1818

1919
import static org.junit.jupiter.api.Assertions.assertEquals;
20-
import static org.junit.jupiter.api.Assertions.fail;
2120

2221
import java.io.IOException;
2322
import java.util.List;
@@ -281,9 +280,5 @@ void testGeneralGraphicStateOperatorTextMode() throws IOException
281280
contentStream.endText();
282281
contentStream.close();
283282
}
284-
catch (IllegalArgumentException exception)
285-
{
286-
fail(exception);
287-
}
288283
}
289284
}

0 commit comments

Comments
 (0)