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
1 changed files with 1 additions and 1 deletions

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);