1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 11:38:00 +01:00

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

View file

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