XmlStringBuilder: Declare actual return type instead of supertype
This commit is contained in:
parent
5483e95920
commit
3318a44016
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue