Skip to content

Commit

Permalink
Revert change to supply all namespaces to StAX, just include new name…
Browse files Browse the repository at this point in the history
…spaces
  • Loading branch information
rolfl committed Jul 2, 2021
1 parent 6a39a20 commit df1ec50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public int getNamespaceCount() {
switch(currentEvt){
case START_ELEMENT:
case END_ELEMENT:
final Iterator<?> it = nsstack.iterator();
final Iterator<?> it = nsstack.addedForward().iterator();
int cnt = 0;
while (it.hasNext()) {
cnt++;
Expand All @@ -612,7 +612,7 @@ public int getNamespaceCount() {
}

private final Namespace getNamespaceByIndex(int index) {
final Iterator<Namespace> it = nsstack.iterator();
final Iterator<Namespace> it = nsstack.addedForward().iterator();
int cnt = 0;
while (it.hasNext()) {
if (cnt == index) {
Expand Down

0 comments on commit df1ec50

Please sign in to comment.