Fixed EntryKeyListEncoder encoding.
This commit is contained in:
parent
434b9ec61c
commit
34335ae681
@ -61,9 +61,10 @@ public class EntryKeyListEncoder {
|
|||||||
if( ! metadata.isEmpty() ) {
|
if( ! metadata.isEmpty() ) {
|
||||||
Element md = new Element(listName);
|
Element md = new Element(listName);
|
||||||
for (Map.Entry<String, String> entry : metadata.entrySet()) {
|
for (Map.Entry<String, String> entry : metadata.entrySet()) {
|
||||||
md.addContent("entry")
|
Element entryeElem = new Element("entry")
|
||||||
.setAttribute("key", entry.getKey())
|
.setAttribute("key", entry.getKey())
|
||||||
.setText(entry.getValue());
|
.setText(entry.getValue());
|
||||||
|
md.addContent(entryeElem);
|
||||||
}
|
}
|
||||||
e.addContent(md);
|
e.addContent(md);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user