Skip to content

Commit 3247cd2

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

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,10 +1454,11 @@ 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-
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();
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+
}
14621463
}
14631464
}

0 commit comments

Comments
 (0)