This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a commit to branch sonar
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
The following commit(s) were added to refs/heads/sonar by this push:
new e0e2f5a0 Merge cases
e0e2f5a0 is described below
commit e0e2f5a03871f71da46a67c26219a6a1a1aa9b5e
Author: Bertil Chapuis <[email protected]>
AuthorDate: Thu Jun 13 01:21:19 2024 +0200
Merge cases
---
.../org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git
a/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java
b/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java
index 0850d722..e070360a 100644
---
a/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java
+++
b/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java
@@ -123,9 +123,7 @@ public class XmlChangeSpliterator implements
Spliterator<Change> {
private Change readChange() throws XMLStreamException {
switch (reader.getLocalName()) {
- case ELEMENT_NAME_CREATE:
- case ELEMENT_NAME_DELETE:
- case ELEMENT_NAME_MODIFY:
+ case ELEMENT_NAME_CREATE, ELEMENT_NAME_DELETE, ELEMENT_NAME_MODIFY:
Change.ChangeType type =
Change.ChangeType.valueOf(reader.getLocalName().toUpperCase());
List<Entity> elements = new ArrayList<>();
reader.nextTag();