1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-12-09 12:31:08 +01:00

[core] Fix parseContentDepthWithRoundtrip() and add tests

This commit is contained in:
Florian Schmaus 2020-11-25 20:49:31 +01:00
parent 821bdf6d86
commit ca497a2199
2 changed files with 38 additions and 3 deletions

View file

@ -377,10 +377,9 @@ public class PacketParserUtils {
outerloop: while (true) {
switch (event) {
case START_ELEMENT:
if (startElementJustSeen) {
sb.rightAngleBracket();
}
startElementJustSeen = true;
String openElementTag = parser.getText();
sb.append(openElementTag);
break;
case END_ELEMENT:
boolean isEmptyElement = false;