Skip to content

ORC-1472: Replace deprecated method in TestMurmur3.java - #1573

Closed
paliwalashish wants to merge 1 commit into
apache:mainfrom
paliwalashish:ORC-1472_replace_deprecatemethod_TestMurmur3
Closed

paliwalashish wants to merge 1 commit into
apache:mainfrom
paliwalashish:ORC-1472_replace_deprecatemethod_TestMurmur3

Conversation

@paliwalashish

@paliwalashish paliwalashish commented Aug 7, 2023 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The PR proposes to update the use to deprecate method in TestMurmur3 to recommended one
Hashing.murmur3_32(seed) has been deprecated and documentation recommends to use Hashing.murmur3_32_fixed

Why are the changes needed?

Google Guava v31+ has the following fix.

Updating Deprecated method to use recommended ones is a good practice, as deprecated methods might have bugs or gets removed from subsequent releases.

How was this patch tested?

The Unit tests with changes passes

@github-actions github-actions Bot added the JAVA label Aug 7, 2023
@dongjoon-hyun

Copy link
Copy Markdown
Member

cc @williamhyun

@dongjoon-hyun dongjoon-hyun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM because we use Guava 31+ test dependency since ORC-1066 .

@williamhyun williamhyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 LGTM, I will merge this now.

@dongjoon-hyun dongjoon-hyun added this to the 2.0.0 milestone Aug 8, 2023
@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you, @mystic-lama and @williamhyun .

@paliwalashish
paliwalashish deleted the ORC-1472_replace_deprecatemethod_TestMurmur3 branch September 22, 2023 03:44
cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?

The PR proposes to update the use to deprecate method in TestMurmur3 to recommended one
Hashing.murmur3_32(seed) has been deprecated and documentation recommends to use Hashing.murmur3_32_fixed

### Why are the changes needed?

Google Guava v31+ has the following fix.
- Issue: google/guava#5648
- Fix: google/guava@a36f08f

Updating Deprecated method to use recommended ones is a good practice, as deprecated methods might have bugs or gets removed from subsequent releases.

### How was this patch tested?
The Unit tests with changes passes

Closes apache#1573 from mystic-lama/ORC-1472_replace_deprecatemethod_TestMurmur3.

Authored-by: mystic-lama <mysticlama000@gmail.com>
Signed-off-by: William Hyun <william@apache.org>
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