From f0adb850666fd53409840ce176cfae8f93e5f5ce Mon Sep 17 00:00:00 2001 From: Russell Spitzer Date: Thu, 7 May 2026 14:33:17 -0500 Subject: [PATCH] MINOR: Fix Spotless formatting in TestCompressionCodec Consolidate the try-with-resources allocator declaration in testLz4RawHeapDecompressorCanCopyLargePage onto a single line so the file passes spotless:check. Master CI has been failing on this since GH-3478 (#3486). --- .../org/apache/parquet/hadoop/codec/TestCompressionCodec.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/codec/TestCompressionCodec.java b/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/codec/TestCompressionCodec.java index ae2bd87ac9..2db4d77f6e 100644 --- a/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/codec/TestCompressionCodec.java +++ b/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/codec/TestCompressionCodec.java @@ -195,8 +195,7 @@ public void testLz4RawHeapDecompressorCanCopyLargePage() throws IOException { final byte[] raw = new byte[size]; new Random(42).nextBytes(raw); - try (TrackingByteBufferAllocator allocator = - TrackingByteBufferAllocator.wrap(new DirectByteBufferAllocator()); + try (TrackingByteBufferAllocator allocator = TrackingByteBufferAllocator.wrap(new DirectByteBufferAllocator()); ByteBufferReleaser releaser = new ByteBufferReleaser(allocator)) { CodecFactory heapCodecFactory = new CodecFactory(new Configuration(), pageSize); BytesInputCompressor compressor = heapCodecFactory.getCompressor(CompressionCodecName.LZ4_RAW);