mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Use CharSequence instead of String in parseContent()
and parseContentDepth(). This also means that the type of some fields changed from String to CharSequence. Also add Matcher for CharSequences.
This commit is contained in:
parent
54b18e3575
commit
f671b9e781
10 changed files with 80 additions and 34 deletions
|
@ -982,7 +982,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
try {
|
||||
packet = PacketParserUtils.parseStanza(parser, XMPPTCPConnection.this);
|
||||
} catch (Exception e) {
|
||||
String content = PacketParserUtils.parseContentDepth(parser, parserDepth);
|
||||
CharSequence content = PacketParserUtils.parseContentDepth(parser, parserDepth);
|
||||
UnparsablePacket message = new UnparsablePacket(content, e);
|
||||
if (callback != null) {
|
||||
callback.handleUnparsablePacket(message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue