From 96f75a18578e1ef5b104fdb87319b2ed63080840 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 9 May 2018 17:01:13 +0200 Subject: [PATCH] Fix TODO in PacketParserUtils --- .../java/org/jivesoftware/smack/util/PacketParserUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java index fe88a7f6f..3f47cef12 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java @@ -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); }