Skip to content

Commit 4f8125f

Browse files
committed
PDFBOX-5660: fix typo
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930600 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6bd01b9 commit 4f8125f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ private void parseEndPacket(XMPMetadata metadata, ProcessingInstruction pi) thro
836836
if (end != 'r' && end != 'w')
837837
{
838838
throw new XmpParsingException(ErrorType.XpacketBadEnd,
839-
"Excepted xpacket 'end' attribute with value 'r' or 'w' ");
839+
"Expected xpacket 'end' attribute with value 'r' or 'w' ");
840840
}
841841
else
842842
{
@@ -847,7 +847,7 @@ private void parseEndPacket(XMPMetadata metadata, ProcessingInstruction pi) thro
847847
{
848848
// should find end='r/w'
849849
throw new XmpParsingException(ErrorType.XpacketBadEnd,
850-
"Excepted xpacket 'end' attribute (must be present and placed in first)");
850+
"Expected xpacket 'end' attribute (must be present and placed in first)");
851851
}
852852
}
853853

xmpbox/src/test/java/org/apache/xmpbox/xml/DomXmpParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ void testBadXPacketEnd1() throws XmpParsingException
647647
XmpParsingException ex = assertThrows(
648648
XmpParsingException.class,
649649
() -> xmpParser.parse(s.getBytes(StandardCharsets.UTF_8)));
650-
assertEquals("Excepted xpacket 'end' attribute (must be present and placed in first)", ex.getMessage());
650+
assertEquals("Expected xpacket 'end' attribute (must be present and placed in first)", ex.getMessage());
651651
}
652652

653653
@Test
@@ -665,7 +665,7 @@ void testBadXPacketEnd2() throws XmpParsingException
665665
XmpParsingException ex = assertThrows(
666666
XmpParsingException.class,
667667
() -> xmpParser.parse(s.getBytes(StandardCharsets.UTF_8)));
668-
assertEquals("Excepted xpacket 'end' attribute with value 'r' or 'w' ", ex.getMessage());
668+
assertEquals("Expected xpacket 'end' attribute with value 'r' or 'w' ", ex.getMessage());
669669
}
670670

671671
@Test

0 commit comments

Comments
 (0)