1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

Fix TODO in PacketParserUtils

This commit is contained in:
Florian Schmaus 2018-05-09 17:01:13 +02:00
parent 0df7734efc
commit 96f75a1857

View file

@ -482,8 +482,7 @@ public class PacketParserUtils {
if (!(event == XmlPullParser.START_TAG && parser.isEmptyElementTag())) {
CharSequence text = parser.getText();
if (event == XmlPullParser.TEXT) {
// TODO the toString() can be removed in Smack 4.2.
text = StringUtils.escapeForXmlText(text.toString());
text = StringUtils.escapeForXmlText(text);
}
sb.append(text);
}