1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 06:22:07 +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
public CharSequence toXML(XmlEnvironment xmlEnvironment) {
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
xml.rightAngleBracket();
xml.escape(this.getDataAsString());

View file

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