Skip to content

Commit

Permalink
Update release notes, fix a merge issue with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 24, 2022
1 parent db8d646 commit 2301785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
5 changes: 5 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Project: woodstox
=== Releases ===
------------------------------------------------------------------------

6.4.0 (not yet released)

#160: Add limit and configuration setting for maximum nesting for DTD subsets
(contributed by @pjfanning)

6.3.1 (13-Aug-2022)

#155: Declare `osgi.serviceloader.registrar` requirement as optional
Expand Down
23 changes: 0 additions & 23 deletions src/test/java/wstxtest/BaseWstxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,29 +494,6 @@ protected static String getAndVerifyText(XMLStreamReader sr)
return text;
}

protected byte[] readResource(String ref)
{
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
final byte[] buf = new byte[4000];

InputStream in = getClass().getResourceAsStream(ref);
if (in != null) {
try {
int len;
while ((len = in.read(buf)) > 0) {
bytes.write(buf, 0, len);
}
in.close();
} catch (IOException e) {
throw new RuntimeException("Failed to read resource '"+ref+"': "+e);
}
}
if (bytes.size() == 0) {
throw new IllegalArgumentException("Failed to read resource '"+ref+"': empty resource?");
}
return bytes.toByteArray();
}

/*
//////////////////////////////////////////////////
// Misc other helpers
Expand Down

0 comments on commit 2301785

Please sign in to comment.