Skip to content

Commit c593f81

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

xmpbox/src/test/java/org/apache/xmpbox/SaveMetadataHelperTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SaveMetadataHelperTest
2929
{
3030

3131
@Test
32-
void testSchemaParsing() throws Exception
32+
void testSchemaParsing()
3333
{
3434
DublinCoreSchema dc = new DublinCoreSchema(XMPMetadata.createXMPMetadata());
3535
dc.setCoverage("coverage");
@@ -39,7 +39,7 @@ void testSchemaParsing() throws Exception
3939
}
4040

4141
@Test
42-
void testMetadataParsing() throws Exception
42+
void testMetadataParsing()
4343
{
4444
XMPMetadata meta = XMPMetadata.createXMPMetadata();
4545

xmpbox/src/test/java/org/apache/xmpbox/XMPMetaDataTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,23 @@ void testAddingSchem()
9090
*/
9191

9292
@Test
93-
void testTransformerExceptionMessage() throws XmpSerializationException
93+
void testTransformerExceptionMessage()
9494
{
9595
assertThrows(org.apache.xmpbox.xml.XmpSerializationException.class, () -> {
9696
throw new XmpSerializationException("TEST");
9797
});
9898
}
9999

100100
@Test
101-
void testTransformerExceptionWithCause() throws XmpSerializationException
101+
void testTransformerExceptionWithCause()
102102
{
103103
assertThrows(org.apache.xmpbox.xml.XmpSerializationException.class, () -> {
104104
throw new XmpSerializationException("TEST", new Throwable());
105105
});
106106
}
107107

108108
@Test
109-
void testInitMetaDataWithInfo() throws Exception
109+
void testInitMetaDataWithInfo()
110110
{
111111
String xpacketBegin = "TESTBEG", xpacketId = "TESTID", xpacketBytes = "TESTBYTES", xpacketEncoding = "TESTENCOD";
112112
XMPMetadata metadata = XMPMetadata.createXMPMetadata(xpacketBegin, xpacketId, xpacketBytes, xpacketEncoding);
@@ -125,7 +125,7 @@ void testInitMetaDataWithInfo() throws Exception
125125
* @throws XmpParsingException
126126
*/
127127
@Test
128-
void testPDFBOX3257() throws IOException, XmpParsingException
128+
void testPDFBOX3257() throws XmpParsingException
129129
{
130130
// taken from file test-landscape2.pdf
131131
String xmpmeta = "<?xpacket id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n"

0 commit comments

Comments
 (0)