Skip to content

Commit c47d7b4

Browse files
committed
Apply spotless formatting to TestPrimitiveComparator
CI's spotless check (palantirJavaFormat) flagged over-indentation in testInt96Comparator's array literals and lambda body. Reformat to Palantir's continuation-indent style (6 spaces for items inside an array literal). Pure whitespace change; all 14 tests still pass.
1 parent beff689 commit c47d7b4

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

parquet-column/src/test/java/org/apache/parquet/schema/TestPrimitiveComparator.java

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -310,36 +310,36 @@ private Binary timestampToInt96(String timestamp) {
310310
@Test
311311
public void testInt96Comparator() {
312312
Binary[] valuesInAscendingOrder = {
313-
timestampToInt96("2020-01-01T00:00:00.000"),
314-
timestampToInt96("2020-01-01T10:00:00.000"),
315-
timestampToInt96("2020-02-29T23:59:59.999"),
316-
timestampToInt96("2020-12-31T23:59:59.999"),
317-
timestampToInt96("2021-01-01T00:00:00.000"),
318-
timestampToInt96("2023-06-15T12:30:45.500"),
319-
timestampToInt96("2024-02-29T15:45:30.750"),
320-
timestampToInt96("2024-12-25T07:00:00.000"),
321-
timestampToInt96("2025-01-01T00:00:00.000"),
322-
timestampToInt96("2025-07-04T20:00:00.000"),
323-
timestampToInt96("2025-07-04T20:50:00.000"),
324-
timestampToInt96("2025-12-31T23:59:59.999")
313+
timestampToInt96("2020-01-01T00:00:00.000"),
314+
timestampToInt96("2020-01-01T10:00:00.000"),
315+
timestampToInt96("2020-02-29T23:59:59.999"),
316+
timestampToInt96("2020-12-31T23:59:59.999"),
317+
timestampToInt96("2021-01-01T00:00:00.000"),
318+
timestampToInt96("2023-06-15T12:30:45.500"),
319+
timestampToInt96("2024-02-29T15:45:30.750"),
320+
timestampToInt96("2024-12-25T07:00:00.000"),
321+
timestampToInt96("2025-01-01T00:00:00.000"),
322+
timestampToInt96("2025-07-04T20:00:00.000"),
323+
timestampToInt96("2025-07-04T20:50:00.000"),
324+
timestampToInt96("2025-12-31T23:59:59.999")
325325
};
326-
326+
327327
java.util.function.Function<Binary, Binary>[] perturb = new java.util.function.Function[] {
328-
(java.util.function.Function<Binary, Binary>) b -> b,
329-
(java.util.function.Function<Binary, Binary>) b -> Binary.fromReusedByteArray(b.getBytes()),
330-
(java.util.function.Function<Binary, Binary>) b -> Binary.fromConstantByteArray(b.getBytes()),
331-
(java.util.function.Function<Binary, Binary>) b -> {
332-
byte[] originalBytes = b.getBytes();
333-
byte[] paddedBuffer = new byte[originalBytes.length + 20];
334-
int offset = 10;
335-
for (int i = 0; i < paddedBuffer.length; i++) {
336-
paddedBuffer[i] = (byte) (0xAA + (i % 5));
337-
}
338-
System.arraycopy(originalBytes, 0, paddedBuffer, offset, originalBytes.length);
339-
return Binary.fromReusedByteArray(paddedBuffer, offset, originalBytes.length);
328+
(java.util.function.Function<Binary, Binary>) b -> b,
329+
(java.util.function.Function<Binary, Binary>) b -> Binary.fromReusedByteArray(b.getBytes()),
330+
(java.util.function.Function<Binary, Binary>) b -> Binary.fromConstantByteArray(b.getBytes()),
331+
(java.util.function.Function<Binary, Binary>) b -> {
332+
byte[] originalBytes = b.getBytes();
333+
byte[] paddedBuffer = new byte[originalBytes.length + 20];
334+
int offset = 10;
335+
for (int i = 0; i < paddedBuffer.length; i++) {
336+
paddedBuffer[i] = (byte) (0xAA + (i % 5));
340337
}
338+
System.arraycopy(originalBytes, 0, paddedBuffer, offset, originalBytes.length);
339+
return Binary.fromReusedByteArray(paddedBuffer, offset, originalBytes.length);
340+
}
341341
};
342-
342+
343343
for (int i = 0; i < valuesInAscendingOrder.length; ++i) {
344344
for (int j = 0; j < valuesInAscendingOrder.length; ++j) {
345345
Binary bi = valuesInAscendingOrder[i];

0 commit comments

Comments
 (0)