1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 12:37:58 +01:00

Use Enum.toString() in XmlStringBuilder.element(String, Enum)

as toString() is often overriden by Enums to yield the expected XMPP
wire protocol representation.
This commit is contained in:
Florian Schmaus 2019-08-03 22:15:44 +02:00
parent eecd5b70d3
commit 12cbeede57

View file

@ -112,7 +112,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
public XmlStringBuilder element(String name, Enum<?> content) {
assert content != null;
element(name, content.name());
element(name, content.toString());
return this;
}