Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove call to deprecated ArrayUtils.isEquals #13551

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

abhioncbr
Copy link
Contributor

Labels

  • cleanup

Description

  • Remove call to deprecated ArrayUtils.isEquals

@codecov-commenter
Copy link

codecov-commenter commented Jul 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 62.06%. Comparing base (59551e4) to head (f63e16b).
Report is 722 commits behind head on master.

Files Patch % Lines
...gment/index/forward/ForwardIndexReaderFactory.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13551      +/-   ##
============================================
+ Coverage     61.75%   62.06%   +0.31%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2558     +122     
  Lines        133233   140895    +7662     
  Branches      20636    21857    +1221     
============================================
+ Hits          82274    87446    +5172     
- Misses        44911    46810    +1899     
- Partials       6048     6639     +591     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 62.05% <0.00%> (+0.34%) ⬆️
java-21 27.67% <0.00%> (-33.96%) ⬇️
skip-bytebuffers-false 62.06% <0.00%> (+0.31%) ⬆️
skip-bytebuffers-true <0.01% <0.00%> (-27.73%) ⬇️
temurin 62.06% <0.00%> (+0.31%) ⬆️
unittests 62.06% <0.00%> (+0.31%) ⬆️
unittests1 46.61% <0.00%> (-0.28%) ⬇️
unittests2 27.67% <0.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abhioncbr abhioncbr requested a review from Jackie-Jiang July 8, 2024 16:38
@@ -89,7 +89,7 @@ public static ForwardIndexReader createIndexReader(PinotDataBuffer dataBuffer, C
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 (Objects.deepEquals(magicBytes, CLPForwardIndexCreatorV1.MAGIC_BYTES)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you want to use Arrays.equals()

@Jackie-Jiang Jackie-Jiang merged commit b9bf523 into apache:master Jul 8, 2024
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants