1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +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;