mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Fix TODO in PacketParserUtils
This commit is contained in:
parent
0df7734efc
commit
96f75a1857
1 changed files with 1 additions and 2 deletions
|
@ -482,8 +482,7 @@ public class PacketParserUtils {
|
||||||
if (!(event == XmlPullParser.START_TAG && parser.isEmptyElementTag())) {
|
if (!(event == XmlPullParser.START_TAG && parser.isEmptyElementTag())) {
|
||||||
CharSequence text = parser.getText();
|
CharSequence text = parser.getText();
|
||||||
if (event == XmlPullParser.TEXT) {
|
if (event == XmlPullParser.TEXT) {
|
||||||
// TODO the toString() can be removed in Smack 4.2.
|
text = StringUtils.escapeForXmlText(text);
|
||||||
text = StringUtils.escapeForXmlText(text.toString());
|
|
||||||
}
|
}
|
||||||
sb.append(text);
|
sb.append(text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue