[OLINGO-1166] Fix serialization of annotations for enum members in the CSDL

Signed-off-by: Christian Amend <christian.amend@sap.com>
This commit is contained in:
Tom van Wietmarschen 2017-08-17 13:11:24 +02:00 committed by Christian Amend
parent 0a2ebd7953
commit 16afaa6f68
1 changed files with 2 additions and 1 deletions

View File

@ -934,7 +934,7 @@ public class MetadataDocumentXmlSerializer {
writer.writeAttribute(XML_UNDERLYING_TYPE, getFullQualifiedName(enumType.getUnderlyingType(), false)); writer.writeAttribute(XML_UNDERLYING_TYPE, getFullQualifiedName(enumType.getUnderlyingType(), false));
for (String memberName : enumType.getMemberNames()) { for (String memberName : enumType.getMemberNames()) {
writer.writeEmptyElement(XML_MEMBER); writer.writeStartElement(XML_MEMBER);
writer.writeAttribute(XML_NAME, memberName); writer.writeAttribute(XML_NAME, memberName);
EdmMember member = enumType.getMember(memberName); EdmMember member = enumType.getMember(memberName);
@ -943,6 +943,7 @@ public class MetadataDocumentXmlSerializer {
} }
appendAnnotations(writer, member); appendAnnotations(writer, member);
writer.writeEndElement();
} }
writer.writeEndElement(); writer.writeEndElement();