1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-26 12:37:58 +01:00

XmlStringBuilder: Declare actual return type instead of supertype

This commit is contained in:
Florian Schmaus 2019-09-18 09:00:06 +02:00
parent 5483e95920
commit 3318a44016

View file

@ -627,7 +627,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
}
@Override
public CharSequence toXML(XmlEnvironment enclosingXmlEnvironment) {
public StringBuilder toXML(XmlEnvironment enclosingXmlEnvironment) {
// This is only the potential length, since the actual length depends on the given XmlEnvironment.
int potentialLength = length();
StringBuilder res = new StringBuilder(potentialLength);