Make XmlStringBuilder.prelude() protected

as the user should never be required to call it.
This commit is contained in:
Florian Schmaus 2019-09-04 09:45:53 +02:00
parent a36e74832e
commit 85ef149c83
1 changed files with 2 additions and 2 deletions

View File

@ -461,11 +461,11 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
return escape(text.toString());
}
public XmlStringBuilder prelude(FullyQualifiedElement pe) {
protected XmlStringBuilder prelude(FullyQualifiedElement pe) {
return prelude(pe.getElementName(), pe.getNamespace());
}
public XmlStringBuilder prelude(String elementName, String namespace) {
protected XmlStringBuilder prelude(String elementName, String namespace) {
halfOpenElement(elementName);
xmlnsAttribute(namespace);
return this;