1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

Return XmlStringBuilder instead of CharSequence

This commit is contained in:
Paul Schaub 2019-08-31 16:59:11 +02:00
parent 225a8fa29d
commit 6749a1d9d9
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ public class DataExtension implements ExtensionElement {
} }
@Override @Override
public CharSequence toXML(XmlEnvironment xmlEnvironment) { public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment); XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
xml.rightAngleBracket(); xml.rightAngleBracket();
xml.escape(this.getDataAsString()); xml.escape(this.getDataAsString());

View file

@ -101,7 +101,7 @@ public class MetadataExtension implements ExtensionElement {
} }
@Override @Override
public CharSequence toXML(XmlEnvironment xmlEnvironment) { public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment); XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
appendInfoElements(xml); appendInfoElements(xml);
appendPointerElements(xml); appendPointerElements(xml);