This is an automated email from the ASF dual-hosted git repository. jackie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push: new b9bf5237e4 Remove call to deprecated ArrayUtils.isEquals (#13551) b9bf5237e4 is described below commit b9bf5237e40ecf00cbae4c1d2148720994b6756f Author: Abhishek Sharma <abhishek.sha...@spothero.com> AuthorDate: Mon Jul 8 16:13:21 2024 -0400 Remove call to deprecated ArrayUtils.isEquals (#13551) --- .../local/segment/index/forward/ForwardIndexReaderFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/forward/ForwardIndexReaderFactory.java b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/forward/ForwardIndexReaderFactory.java index 3981cf1979..db815761d9 100644 --- a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/forward/ForwardIndexReaderFactory.java +++ b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/forward/ForwardIndexReaderFactory.java @@ -19,7 +19,7 @@ package org.apache.pinot.segment.local.segment.index.forward; -import org.apache.commons.lang3.ArrayUtils; +import java.util.Arrays; import org.apache.pinot.segment.local.io.writer.impl.VarByteChunkForwardIndexWriterV4; import org.apache.pinot.segment.local.segment.creator.impl.fwd.CLPForwardIndexCreatorV1; import org.apache.pinot.segment.local.segment.index.readers.forward.CLPForwardIndexReaderV1; @@ -89,7 +89,7 @@ public class ForwardIndexReaderFactory extends IndexReaderFactory.Default<Forwar if (dataBuffer.size() >= CLPForwardIndexCreatorV1.MAGIC_BYTES.length) { byte[] magicBytes = new byte[CLPForwardIndexCreatorV1.MAGIC_BYTES.length]; dataBuffer.copyTo(0, magicBytes); - if (ArrayUtils.isEquals(magicBytes, CLPForwardIndexCreatorV1.MAGIC_BYTES)) { + if (Arrays.equals(magicBytes, CLPForwardIndexCreatorV1.MAGIC_BYTES)) { return new CLPForwardIndexReaderV1(dataBuffer, metadata.getTotalDocs()); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org