You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by bc...@apache.org on 2024/06/11 22:19:32 UTC

(incubator-baremaps) branch sonar updated (eda801a9 -> c1f01d82)

This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a change to branch sonar
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git


    from eda801a9 Fix some issues
     new 328b3c47 Fix some issues
     new c1f01d82 Format with spotless

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/baremaps/workflow/tasks/DecompressFile.java  | 9 +++++----
 .../java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java    | 2 --
 .../org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java    | 6 ++++--
 3 files changed, 9 insertions(+), 8 deletions(-)


(incubator-baremaps) 02/02: Format with spotless

Posted by bc...@apache.org.
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

commit c1f01d8275fb9aabea6c44482f8e5a40b385eb81
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Wed Jun 12 00:19:25 2024 +0200

    Format with spotless
---
 .../java/org/apache/baremaps/workflow/tasks/DecompressFile.java  | 9 +++++----
 .../java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java    | 2 --
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java
index ddc8b150..6fca8f46 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/DecompressFile.java
@@ -154,7 +154,8 @@ public class DecompressFile implements Task {
     }
   }
 
-  private static void decompressTar(Path target, TarArchiveInputStream tarInputStream) throws IOException {
+  private static void decompressTar(Path target, TarArchiveInputStream tarInputStream)
+      throws IOException {
     TarArchiveEntry entry;
     while ((entry = tarInputStream.getNextEntry()) != null) {
       var path = target.resolve(entry.getName());
@@ -163,10 +164,10 @@ public class DecompressFile implements Task {
       } else {
         Files.createDirectories(path.getParent());
         Files.write(path, new byte[] {},
-                StandardOpenOption.CREATE,
-                StandardOpenOption.TRUNCATE_EXISTING);
+            StandardOpenOption.CREATE,
+            StandardOpenOption.TRUNCATE_EXISTING);
         try (BufferedOutputStream outputStream =
-                     new BufferedOutputStream(Files.newOutputStream(path))) {
+            new BufferedOutputStream(Files.newOutputStream(path))) {
           tarInputStream.transferTo(outputStream);
         }
       }
diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java
index 7ecbed04..cf3809b6 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/ImportOsmPbf.java
@@ -33,8 +33,6 @@ import org.apache.baremaps.openstreetmap.stream.StreamUtils;
 import org.apache.baremaps.workflow.Task;
 import org.apache.baremaps.workflow.WorkflowContext;
 import org.locationtech.jts.geom.Coordinate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 /**
  * Import an OSM PBF file into a database.


(incubator-baremaps) 01/02: Fix some issues

Posted by bc...@apache.org.
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

commit 328b3c47734df0a98291a177be381970bbe0a62f
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Wed Jun 12 00:19:07 2024 +0200

    Fix some issues
---
 .../java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
index deaf4e83..52d847fb 100644
--- a/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
+++ b/baremaps-core/src/main/java/org/apache/baremaps/workflow/tasks/UpdateOsmDatabase.java
@@ -105,8 +105,10 @@ public class UpdateOsmDatabase implements Task {
   public static void execute(
       Map<Long, Coordinate> coordinateMap,
       Map<Long, List<Long>> referenceMap,
-      HeaderRepository headerRepository, Repository<Long, Node> nodeRepository,
-      Repository<Long, Way> wayRepository, Repository<Long, Relation> relationRepository,
+      HeaderRepository headerRepository,
+      Repository<Long, Node> nodeRepository,
+      Repository<Long, Way> wayRepository,
+      Repository<Long, Relation> relationRepository,
       Integer databaseSrid,
       String replicationUrl) throws Exception {