From 01f9b228f25ec1b4fc16652109292869aab6946c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 18 Oct 2018 20:57:03 +0200 Subject: [PATCH] Consider enclosing namespace in Stream Management elements --- .../smack/sm/packet/StreamManagement.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/sm/packet/StreamManagement.java b/smack-tcp/src/main/java/org/jivesoftware/smack/sm/packet/StreamManagement.java index 0667c5517..201f760e0 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/sm/packet/StreamManagement.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/sm/packet/StreamManagement.java @@ -48,7 +48,7 @@ public class StreamManagement { @Override public CharSequence toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); xml.closeEmptyElement(); return xml; } @@ -114,7 +114,7 @@ public class StreamManagement { @Override public CharSequence toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); maybeAddResumeAttributeTo(xml); maybeAddMaxAttributeTo(xml); xml.closeEmptyElement(); @@ -175,7 +175,7 @@ public class StreamManagement { @Override public CharSequence toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); xml.optAttribute("id", id); maybeAddResumeAttributeTo(xml); xml.optAttribute("location", location); @@ -221,7 +221,7 @@ public class StreamManagement { @Override public CharSequence toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); if (condition == null && textElements.isEmpty()) { xml.closeEmptyElement(); } else { @@ -274,7 +274,7 @@ public class StreamManagement { @Override public final XmlStringBuilder toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); xml.attribute("h", Long.toString(handledCount)); xml.attribute("previd", previd); xml.closeEmptyElement(); @@ -323,7 +323,7 @@ public class StreamManagement { @Override public CharSequence toXML(String enclosingNamespace) { - XmlStringBuilder xml = new XmlStringBuilder(this); + XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); xml.attribute("h", Long.toString(handledCount)); xml.closeEmptyElement(); return xml;