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 4e4fbf83 Suppress warning for long constructor
4e4fbf83 is described below
commit 4e4fbf8374b81abc0c4da81278fdcba937791819
Author: Bertil Chapuis <[email protected]>
AuthorDate: Thu Jun 13 00:46:51 2024 +0200
Suppress warning for long constructor
---
.../java/org/apache/baremaps/data/type/BooleanDataType.java | 4 ++--
.../apache/baremaps/geoparquet/hadoop/GeoParquetWriter.java | 12 ++++++++----
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git
a/baremaps-data/src/main/java/org/apache/baremaps/data/type/BooleanDataType.java
b/baremaps-data/src/main/java/org/apache/baremaps/data/type/BooleanDataType.java
index bdcefca6..5758aad5 100644
---
a/baremaps-data/src/main/java/org/apache/baremaps/data/type/BooleanDataType.java
+++
b/baremaps-data/src/main/java/org/apache/baremaps/data/type/BooleanDataType.java
@@ -19,10 +19,10 @@ package org.apache.baremaps.data.type;
-import java.nio.ByteBuffer;
-
import static java.lang.Boolean.TRUE;
+import java.nio.ByteBuffer;
+
/** A {@link DataType} for reading and writing bytes in {@link ByteBuffer}s. */
public class BooleanDataType extends MemoryAlignedDataType<Boolean> {
diff --git
a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/hadoop/GeoParquetWriter.java
b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/hadoop/GeoParquetWriter.java
index 41d2c8fe..4395d5e6 100644
---
a/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/hadoop/GeoParquetWriter.java
+++
b/baremaps-geoparquet/src/main/java/org/apache/baremaps/geoparquet/hadoop/GeoParquetWriter.java
@@ -70,13 +70,17 @@ public class GeoParquetWriter extends
ParquetWriter<GeoParquetGroupImpl> {
* @param conf The Configuration to use.
* @throws IOException
*/
- GeoParquetWriter(Path file, WriteSupport<GeoParquetGroupImpl> writeSupport,
+ @SuppressWarnings("squid:S107")
+ GeoParquetWriter(
+ Path file,
+ WriteSupport<GeoParquetGroupImpl> writeSupport,
CompressionCodecName compressionCodecName,
- int blockSize, int pageSize, boolean enableDictionary,
+ int blockSize,
+ int pageSize,
+ boolean enableDictionary,
boolean enableValidation,
ParquetProperties.WriterVersion writerVersion,
- Configuration conf)
- throws IOException {
+ Configuration conf) throws IOException {
super(file, writeSupport, compressionCodecName, blockSize, pageSize,
pageSize, enableDictionary, enableValidation, writerVersion, conf);
}