mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-26 14:17:57 +01:00
[core] Add assert message in AbstractXMPPConnection.onStreamOpen()
This commit is contained in:
parent
d881395d05
commit
1a1a67a2c5
1 changed files with 2 additions and 1 deletions
|
@ -2214,7 +2214,8 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
|
|||
* @return a String representing the corresponding stream end tag.
|
||||
*/
|
||||
protected String onStreamOpen(XmlPullParser parser) {
|
||||
assert StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE.equals(parser.getNamespace());
|
||||
assert StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE.equals(parser.getNamespace()) : parser.getNamespace()
|
||||
+ " is not " + StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE;
|
||||
assert StreamOpen.UNPREFIXED_ELEMENT.equals(parser.getName());
|
||||
|
||||
streamId = parser.getAttributeValue("id");
|
||||
|
|
Loading…
Reference in a new issue