Skip to content

Commit e67695d

Browse files
committed
PDFBOX-5976: use jdk7 class
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924524 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9d0a2b7 commit e67695d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.io.IOException;
2525
import java.io.InputStream;
2626
import java.io.UnsupportedEncodingException;
27+
import java.nio.charset.StandardCharsets;
2728

2829
import org.apache.xmpbox.XMPMetadata;
2930

@@ -79,7 +80,7 @@ void testPDFBox5976() throws XmpParsingException, UnsupportedEncodingException
7980
"</rdf:RDF>\n" +
8081
"<?xpacket end=\"r\"?>";
8182
DomXmpParser xmpParser = new DomXmpParser();
82-
XMPMetadata xmp = xmpParser.parse(s.getBytes("utf-8"));
83+
XMPMetadata xmp = xmpParser.parse(s.getBytes(StandardCharsets.UTF_8));
8384
Assertions.assertEquals("B", xmp.getPDFAIdentificationSchema().getConformance());
8485
Assertions.assertEquals((Integer) 3, xmp.getPDFAIdentificationSchema().getPart());
8586
}

0 commit comments

Comments
 (0)