From e3fc2de781e3d7aad403e392e702ffd7dfc9885f Mon Sep 17 00:00:00 2001 From: Vibhatha Lakmal Abeykoon Date: Fri, 6 Sep 2024 08:48:25 +0530 Subject: [PATCH] feat: adding puppycrawl req changes in code --- .../arrow/adapter/jdbc/h2/JdbcToArrowMapDataTypeTest.java | 2 +- .../src/main/java/org/apache/arrow/flight/FlightClient.java | 2 +- .../jdbc/client/ArrowFlightSqlClientHandlerBuilderTest.java | 2 +- .../src/main/java/org/apache/arrow/memory/ArrowBuf.java | 2 +- java/pom.xml | 2 +- .../apache/arrow/vector/ipc/message/ArrowDictionaryBatch.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/h2/JdbcToArrowMapDataTypeTest.java b/java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/h2/JdbcToArrowMapDataTypeTest.java index 337220a42fbce..1daeda6772b26 100644 --- a/java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/h2/JdbcToArrowMapDataTypeTest.java +++ b/java/adapter/jdbc/src/test/java/org/apache/arrow/adapter/jdbc/h2/JdbcToArrowMapDataTypeTest.java @@ -42,7 +42,7 @@ public static Stream getTestData() throws IOException { Arguments.of(getTable("h2/test1_map_h2.yml", JdbcToArrowMapDataTypeTest.class))); } - /** Test Method to test JdbcToArrow Functionality for Map form Types.OTHER column */ + /** Test Method to test JdbcToArrow Functionality for Map form Types.OTHER column. */ @ParameterizedTest @MethodSource("getTestData") public void testJdbcToArrowValues(Table table) diff --git a/java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java b/java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java index 62b3c1eedb69d..a15c3049aa6ad 100644 --- a/java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java +++ b/java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightClient.java @@ -472,7 +472,7 @@ public void close() throws Exception { } } - /** A stream observer for Flight.PutResult */ + /** A stream observer for Flight.PutResult. */ private static class SetStreamObserver implements StreamObserver { private final BufferAllocator allocator; private final StreamListener listener; diff --git a/java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandlerBuilderTest.java b/java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandlerBuilderTest.java index 4f16a4fa60932..6beaba82360cc 100644 --- a/java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandlerBuilderTest.java +++ b/java/flight/flight-sql-jdbc-core/src/test/java/org/apache/arrow/driver/jdbc/client/ArrowFlightSqlClientHandlerBuilderTest.java @@ -33,7 +33,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; -/** Test the behavior of ArrowFlightSqlClientHandler.Builder */ +/** Test the behavior of ArrowFlightSqlClientHandler.Builder. */ public class ArrowFlightSqlClientHandlerBuilderTest { @RegisterExtension diff --git a/java/memory/memory-core/src/main/java/org/apache/arrow/memory/ArrowBuf.java b/java/memory/memory-core/src/main/java/org/apache/arrow/memory/ArrowBuf.java index a958092a5789a..775a8925ad1a9 100644 --- a/java/memory/memory-core/src/main/java/org/apache/arrow/memory/ArrowBuf.java +++ b/java/memory/memory-core/src/main/java/org/apache/arrow/memory/ArrowBuf.java @@ -549,7 +549,7 @@ public byte readByte() { } /** - * Read dst.length bytes at readerIndex into dst byte array + * Read dst.length bytes at readerIndex into dst byte array. * * @param dst byte array where the data will be written */ diff --git a/java/pom.xml b/java/pom.xml index 81e652f462e02..c6b1876873f30 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -105,7 +105,7 @@ under the License. 1.12.0 2 - 10.17.0 + 10.18.1 true 2.31.0 5.11.0 diff --git a/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowDictionaryBatch.java b/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowDictionaryBatch.java index a704dbdd74eaa..cee76433ea4c7 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowDictionaryBatch.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowDictionaryBatch.java @@ -21,7 +21,7 @@ import org.apache.arrow.flatbuf.MessageHeader; /** - * POJO wrapper around a Dictionary Batch IPC messages + * POJO wrapper around a Dictionary Batch IPC messages. * (https://arrow.apache.org/docs/format/IPC.html#dictionary-batches) */ public class ArrowDictionaryBatch implements ArrowMessage {