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 4384f081 Merge cases
4384f081 is described below

commit 4384f081e286ba5f6963017f4b2c378d89a1e4df
Author: Bertil Chapuis <[email protected]>
AuthorDate: Thu Jun 13 01:22:48 2024 +0200

    Merge cases
---
 .../org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java
 
b/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java
index c431f3b3..3787f4af 100644
--- 
a/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java
+++ 
b/baremaps-openstreetmap/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlEntitySpliterator.java
@@ -134,8 +134,7 @@ public class XmlEntitySpliterator implements 
Spliterator<Entity> {
       case ELEMENT_NAME_OSM:
         consumer.accept(readHeader());
         return;
-      case ELEMENT_NAME_BOUND:
-      case ELEMENT_NAME_BOUNDS:
+      case ELEMENT_NAME_BOUND, ELEMENT_NAME_BOUNDS:
         consumer.accept(readBounds());
         return;
       case ELEMENT_NAME_NODE:
@@ -149,7 +148,6 @@ public class XmlEntitySpliterator implements 
Spliterator<Entity> {
         return;
       default:
         readUnknownElement();
-        return;
     }
   }
 

Reply via email to