From cf875ef414af6016e4edf3fde3e52262abcc92d2 Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Wed, 31 May 2017 20:49:40 +0200 Subject: [PATCH] Fix xml of JingleContent --- .../smackx/jingle/element/JingleContent.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/JingleContent.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/JingleContent.java index ca5696bff..25bf61214 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/JingleContent.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/jingle/element/JingleContent.java @@ -16,15 +16,15 @@ */ package org.jivesoftware.smackx.jingle.element; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; - import org.jivesoftware.smack.packet.NamedElement; import org.jivesoftware.smack.util.Objects; import org.jivesoftware.smack.util.StringUtils; import org.jivesoftware.smack.util.XmlStringBuilder; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + /** * Jingle content element. */ @@ -140,7 +140,7 @@ public final class JingleContent implements NamedElement { @Override public XmlStringBuilder toXML() { - XmlStringBuilder xml = new XmlStringBuilder(); + XmlStringBuilder xml = new XmlStringBuilder(this); xml.attribute(CREATOR_ATTRIBUTE_NAME, creator); xml.optAttribute(DISPOSITION_ATTRIBUTE_NAME, disposition); xml.attribute(NAME_ATTRIBUTE_NAME, name);