code formatting

This commit is contained in:
Claudio Atzori 2024-06-06 09:25:26 +02:00
parent 91b49366c6
commit efc1632e16
2 changed files with 7 additions and 8 deletions

View File

@ -176,13 +176,13 @@ public class XmlSerializationUtils {
StringBuilder sb = new StringBuilder();
for (KeyValue kv : measure.getUnit()) {
sb
.append("<")
.append(name)
.append(" ")
.append(attr("id", measure.getId()))
.append(attr("count", kv.getValue()))
.append(attr("datasource", kv.getKey()))
.append(" />");
.append("<")
.append(name)
.append(" ")
.append(attr("id", measure.getId()))
.append(attr("count", kv.getValue()))
.append(attr("datasource", kv.getKey()))
.append(" />");
}
return sb.toString();
}

View File

@ -43,7 +43,6 @@ public class XmlRecordFactoryTest {
final Publication p = OBJECT_MAPPER
.readValue(IOUtils.toString(getClass().getResourceAsStream("publication.json")), Publication.class);
final String xml = xmlRecordFactory.build(new JoinedEntity(p));
assertNotNull(xml);