From 08ca30a93f8bbd13853e3730d81ea9f1260b5806 Mon Sep 17 00:00:00 2001 From: Nathaniel Bauernfeind Date: Mon, 30 Dec 2024 08:57:28 -0700 Subject: [PATCH] spotless --- .../server/jetty/JettyBarrageChunkFactoryTest.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/server/jetty/src/test/java/io/deephaven/server/jetty/JettyBarrageChunkFactoryTest.java b/server/jetty/src/test/java/io/deephaven/server/jetty/JettyBarrageChunkFactoryTest.java index 5cbd223d5b0..10152119950 100644 --- a/server/jetty/src/test/java/io/deephaven/server/jetty/JettyBarrageChunkFactoryTest.java +++ b/server/jetty/src/test/java/io/deephaven/server/jetty/JettyBarrageChunkFactoryTest.java @@ -1085,14 +1085,15 @@ public void runTest(final TestNullMode nullMode, final TestArrayMode arrayMode) // DH will unwrap the view, so to validate the data vector we need to unwrap it as well try (final ListViewVector newView = - (ListViewVector) schema.getFields().get(0).createVector(allocator)) { + (ListViewVector) schema.getFields().get(0).createVector(allocator)) { newView.setValueCount(source.getRowCount()); final ListViewVector sourceArr = (ListViewVector) source.getVector(0); int totalLen = 0; for (int ii = 0; ii < source.getRowCount(); ++ii) { if (!sourceArr.isNull(ii)) { // TODO: when https://github.com/apache/arrow-java/issues/470 is fixed, use - // totalLen += sourceArr.getElementEndIndex(ii) - sourceArr.getElementStartIndex(ii); + // totalLen += sourceArr.getElementEndIndex(ii) - + // sourceArr.getElementStartIndex(ii); totalLen += sourceArr.getObject(ii).size(); } } @@ -1117,13 +1118,14 @@ public void runTest(final TestNullMode nullMode, final TestArrayMode arrayMode) } else { // any null values will not be sent back, so we need to filter the source to match try (final BaseListVector newView = - (BaseListVector) schema.getFields().get(0).createVector(allocator)) { + (BaseListVector) schema.getFields().get(0).createVector(allocator)) { newView.setValueCount(source.getRowCount()); final BaseListVector sourceArr = (BaseListVector) source.getVector(0); int totalLen = 0; for (int ii = 0; ii < source.getRowCount(); ++ii) { if (!sourceArr.isNull(ii)) { - totalLen += sourceArr.getElementEndIndex(ii) - sourceArr.getElementStartIndex(ii); + totalLen += + sourceArr.getElementEndIndex(ii) - sourceArr.getElementStartIndex(ii); } } Assert.geqZero(totalLen, "totalLen"); @@ -1360,7 +1362,7 @@ public int initializeRoot(@NotNull final BitVector source) { @Override public void validate(final TestNullMode nullMode, @NotNull final BitVector source, - @NotNull final BitVector dest) { + @NotNull final BitVector dest) { for (int ii = 0; ii < source.getValueCount(); ++ii) { if (source.isNull(ii)) { assertTrue(dest.getValueCount() <= ii || dest.isNull(ii));