Skip to content

Commit

Permalink
Merge branch '6.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Apr 30, 2024
2 parents dbef4a9 + 17a3eb2 commit 7aa010e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Project: woodstox
#194: Remove `QNameCreator` compatibility class
#196: WstxSAXParser error handling when used with JAXB validation
(reported by @winfriedgerlach)

6.7.0 (not yet released)

#204: Non-conformant `XMLEventFactory.setLocation(null)`
(fix provided by Stanimir S)

Expand Down
8 changes: 2 additions & 6 deletions src/test/java/wstxtest/evt/TestEventFactoryLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ private static Matcher<Location> unknownLocation() {
return locationWithProperties("", "", -1, -1, -1);
}

private static Matcher<Location> locationWithProperties(String pubId,
String sysId, int charOffset, int row, int col) {
private static Matcher<Location> locationWithProperties(final String pubId,
final String sysId, final int charOffset, final int row, final int col) {
return new TypeSafeMatcher<Location>() {
@Override public void describeTo(Description description) {
description.appendText("Location(publicId: ").appendValue(pubId)
Expand All @@ -82,7 +82,6 @@ private static Matcher<Location> locationWithProperties(String pubId,
};
}


static class VolatileLocation implements Location {
int line;
int col;
Expand All @@ -96,7 +95,4 @@ static class VolatileLocation implements Location {
@Override public int getColumnNumber() { return col; }
@Override public int getCharacterOffset() { return -1; }
}


}

0 comments on commit 7aa010e

Please sign in to comment.