From 43367931fe956a595a1e425f61e3e12d21a47240 Mon Sep 17 00:00:00 2001 From: aandres3 Date: Tue, 7 Jan 2025 09:14:38 +0000 Subject: [PATCH] Apply spotless --- .../org/apache/parquet/proto/ProtoMessageConverter.java | 1 - .../org/apache/parquet/proto/ProtoWriteSupportTest.java | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoMessageConverter.java b/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoMessageConverter.java index e9e42e24a0..ff9e4ca33a 100644 --- a/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoMessageConverter.java +++ b/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoMessageConverter.java @@ -763,7 +763,6 @@ public ProtoUInt32ValueConverter(ParentValueContainer parent) { this.parent = parent; } - @Override public void addInt(int value) { parent.add(UInt32Value.of(value)); diff --git a/parquet-protobuf/src/test/java/org/apache/parquet/proto/ProtoWriteSupportTest.java b/parquet-protobuf/src/test/java/org/apache/parquet/proto/ProtoWriteSupportTest.java index 309828488a..58347c679f 100644 --- a/parquet-protobuf/src/test/java/org/apache/parquet/proto/ProtoWriteSupportTest.java +++ b/parquet-protobuf/src/test/java/org/apache/parquet/proto/ProtoWriteSupportTest.java @@ -1374,8 +1374,12 @@ public void testProto3WrappedMessageUnwrappedRoundTrip() throws Exception { @Test public void testProto3WrappedMessageUnwrappedRoundTripUint32() throws Exception { - TestProto3.WrappedMessage msgMin = TestProto3.WrappedMessage.newBuilder().setWrappedUInt32(UInt32Value.of(Integer.MAX_VALUE)).build(); - TestProto3.WrappedMessage msgMax = TestProto3.WrappedMessage.newBuilder().setWrappedUInt32(UInt32Value.of(Integer.MIN_VALUE)).build(); + TestProto3.WrappedMessage msgMin = TestProto3.WrappedMessage.newBuilder() + .setWrappedUInt32(UInt32Value.of(Integer.MAX_VALUE)) + .build(); + TestProto3.WrappedMessage msgMax = TestProto3.WrappedMessage.newBuilder() + .setWrappedUInt32(UInt32Value.of(Integer.MIN_VALUE)) + .build(); Path tmpFilePath = TestUtils.someTemporaryFilePath(); ParquetWriter writer = ProtoParquetWriter.builder(tmpFilePath) @@ -1389,7 +1393,6 @@ public void testProto3WrappedMessageUnwrappedRoundTripUint32() throws Exception assertEquals(msgMin, gotBack.get(0)); assertEquals(msgMax, gotBack.get(1)); - } @Test