1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-24 07:12:05 +01:00

Return XmlStringBuilder instead of CharSequence

This commit is contained in:
Paul Schaub 2019-08-31 16:59:11 +02:00
parent 5682eaf8e5
commit 7fb6e685a7
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);