fix(serialize): correct oversight in peek

This commit is contained in:
Johannes Frohnmeyer 2024-04-13 21:47:35 +02:00
parent 7335bb63c8
commit 840f154110
Signed by: Johannes
GPG Key ID: E76429612C2929F4

View File

@ -196,7 +196,7 @@ public class NativeXmlReader implements Closeable {
}
return switch (p) {
case PEEKED_BEGIN_TAG -> XmlToken.BEGIN_TAG;
case PEEKED_END_TAG -> XmlToken.END_TAG;
case PEEKED_END_TAG, PEEKED_END_TAG_CONCISE -> XmlToken.END_TAG;
case PEEKED_TEXT -> XmlToken.TEXT;
case PEEKED_CDATA -> XmlToken.CDATA;
case PEEKED_ATTRIBUTE_NAME -> XmlToken.ATTRIBUTE_NAME;