fix(serialize-xml): Correct message for mismatched closing tag
This commit is contained in:
parent
fb1c0fd3cb
commit
a1b0df3caa
|
@ -172,7 +172,7 @@ public class NativeXmlReader implements Closeable {
|
||||||
name = pathNames[stackSize - 2];
|
name = pathNames[stackSize - 2];
|
||||||
} else throw unexpectedTokenError("END_TAG");
|
} else throw unexpectedTokenError("END_TAG");
|
||||||
if (!name.equals(pathNames[stackSize - 2])) {
|
if (!name.equals(pathNames[stackSize - 2])) {
|
||||||
if (!lenient) throw syntaxError("Mismatched closing tag: Expected " + pathNames[stackSize - 1] + " but was " + name);
|
if (!lenient) throw syntaxError("Mismatched closing tag: Expected " + pathNames[stackSize - 2] + " but was " + name);
|
||||||
}
|
}
|
||||||
stackSize--;
|
stackSize--;
|
||||||
pathNames[stackSize] = null; // Free the last path name so that it can be garbage collected!
|
pathNames[stackSize] = null; // Free the last path name so that it can be garbage collected!
|
||||||
|
|
Loading…
Reference in New Issue