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 b92c31ff398b947d44134236932d06e6432a0439 Author: Bertil Chapuis <[email protected]> AuthorDate: Wed Jun 12 23:22:29 2024 +0200 Format code with spotless --- .../org/apache/baremaps/database/DiffService.java | 1 + .../database/postgres/HeaderRepository.java | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/baremaps-core/src/main/java/org/apache/baremaps/database/DiffService.java b/baremaps-core/src/main/java/org/apache/baremaps/database/DiffService.java index 07a7b890..6bb0f453 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/database/DiffService.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/database/DiffService.java @@ -55,6 +55,7 @@ public class DiffService implements Callable<List<TileCoord>> { private final int srid; private final int zoom; + @SuppressWarnings("squid:S107") public DiffService( Map<Long, Coordinate> coordinateMap, Map<Long, List<Long>> referenceMap, diff --git a/baremaps-core/src/main/java/org/apache/baremaps/database/postgres/HeaderRepository.java b/baremaps-core/src/main/java/org/apache/baremaps/database/postgres/HeaderRepository.java index c4c665c9..b9040b4f 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/database/postgres/HeaderRepository.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/database/postgres/HeaderRepository.java @@ -64,9 +64,15 @@ public class HeaderRepository implements Repository<Long, Header> { * @param dataSource */ public HeaderRepository(DataSource dataSource) { - this(dataSource, "public", "osm_headers", "replication_sequence_number", + this( + dataSource, + "public", + "osm_headers", + "replication_sequence_number", "replication_timestamp", - "replication_url", "source", "writing_program"); + "replication_url", + "source", + "writing_program"); } /** @@ -81,9 +87,15 @@ public class HeaderRepository implements Repository<Long, Header> { * @param sourceColumn * @param writingProgramColumn */ - public HeaderRepository(DataSource dataSource, String schema, String table, - String replicationSequenceNumberColumn, String replicationTimestampColumn, - String replicationUrlColumn, String sourceColumn, String writingProgramColumn) { + public HeaderRepository( + DataSource dataSource, + String schema, + String table, + String replicationSequenceNumberColumn, + String replicationTimestampColumn, + String replicationUrlColumn, + String sourceColumn, + String writingProgramColumn) { var fullTableName = String.format("%1$s.%2$s", schema, table); this.dataSource = dataSource; this.createTable = String.format("""
