mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +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:
parent
eecd5b70d3
commit
12cbeede57
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ public class XmlStringBuilder implements Appendable, CharSequence, Element {
|
||||||
|
|
||||||
public XmlStringBuilder element(String name, Enum<?> content) {
|
public XmlStringBuilder element(String name, Enum<?> content) {
|
||||||
assert content != null;
|
assert content != null;
|
||||||
element(name, content.name());
|
element(name, content.toString());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue