Skip to content

Commit

Permalink
Replace JDK9 API call
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeEdgar committed Jun 12, 2020
1 parent a583992 commit b21625c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void testReadXml() throws Exception {
@Test
void testReadXml_WithOptionalInterchangeServiceRequests_TransactionOnly() throws Exception {
EDIInputFactory ediFactory = EDIInputFactory.newFactory();
XMLInputFactory xmlFactory = XMLInputFactory.newDefaultFactory();
XMLInputFactory xmlFactory = XMLInputFactory.newInstance();
InputStream stream = getClass().getResourceAsStream("/x12/optionalInterchangeServices.edi");
ediFactory.setProperty(EDIInputFactory.XML_DECLARE_TRANSACTION_XMLNS, Boolean.TRUE);
EDIStreamReader reader = ediFactory.createEDIStreamReader(stream);
Expand Down

0 comments on commit b21625c

Please sign in to comment.