1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +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 @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. // This is only the potential length, since the actual length depends on the given XmlEnvironment.
int potentialLength = length(); int potentialLength = length();
StringBuilder res = new StringBuilder(potentialLength); StringBuilder res = new StringBuilder(potentialLength);