Skip to content

Commit 9893749

Browse files
committed
PDFBOX-6131: use jdk6
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1930885 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9735936 commit 9893749

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,11 +1454,10 @@ void testPDFBox6131_2() throws IOException, XmpParsingException, BadFieldValueEx
14541454
// Contains "Seq Text" instead of "seq Text" and "Bag Text" instead of "bag Text"
14551455
// from file RMR6DEEUWZO6IM3A7WKRPX33SZMBTTQZ
14561456
// Fairfax County Office of Community Revitalization
1457-
try (InputStream is = DomXmpParser.class.getResourceAsStream("/org/apache/xmpbox/xml/PDFBOX-6131-RMR6DEEUWZO6IM3A7WKRPX33SZMBTTQZ.xml"))
1458-
{
1459-
DomXmpParser xmpParser = new DomXmpParser();
1460-
XMPMetadata xmp = xmpParser.parse(is);
1461-
assertEquals(1, xmp.getPDFAIdentificationSchema().getPart());
1462-
}
1457+
InputStream is = DomXmpParser.class.getResourceAsStream("/org/apache/xmpbox/xml/PDFBOX-6131-RMR6DEEUWZO6IM3A7WKRPX33SZMBTTQZ.xml");
1458+
DomXmpParser xmpParser = new DomXmpParser();
1459+
XMPMetadata xmp = xmpParser.parse(is);
1460+
assertEquals(1, xmp.getPDFAIdentificationSchema().getPart());
1461+
is.close();
14631462
}
14641463
}

0 commit comments

Comments
 (0)