Skip to content

Suppress warnings for MD5 and SHA1 hashing function usages#12631

Merged
ebyhr merged 1 commit intotrinodb:masterfrom
leveyja:leveyja/hashing-deprecation-warnings
Jul 13, 2022
Merged

Suppress warnings for MD5 and SHA1 hashing function usages#12631
ebyhr merged 1 commit intotrinodb:masterfrom
leveyja:leveyja/hashing-deprecation-warnings

Conversation

@leveyja
Copy link
Copy Markdown
Member

@leveyja leveyja commented Jun 1, 2022

Description

Google Guava's Hashing.md5() and Hashing.sha1() are deprecated as insecure.
We use them to provide md5/sha1 functions, and therefore the usage is merited.
This PR adds @SuppressWarnings("deprecation") to the necessary usages to avoid spurious deprecation warnings.

Is this change a fix, improvement, new feature, refactoring, or other?

Refactoring

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Code change to suppress build warnings / no functional changes (apart from 1 test)

How would you describe this change to a non-technical end user or system administrator?

Resolve build warnings

Related issues, pull requests, and links

Documentation

(:white_check_mark:) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(:white_check_mark:) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jun 1, 2022
@leveyja leveyja force-pushed the leveyja/hashing-deprecation-warnings branch from 7821ef0 to 3ab574c Compare June 1, 2022 11:29
@leveyja leveyja requested review from findepi, hashhar and wendigo June 1, 2022 11:30
@leveyja leveyja force-pushed the leveyja/hashing-deprecation-warnings branch from 702c06c to 875b8ed Compare June 3, 2022 06:50
@leveyja
Copy link
Copy Markdown
Member Author

leveyja commented Jun 6, 2022

Looks ready to merge - any suggestions who should give the final 👍 ?

@ebyhr ebyhr merged commit 345ee15 into trinodb:master Jul 13, 2022
@ebyhr
Copy link
Copy Markdown
Member

ebyhr commented Jul 13, 2022

Merged, thanks!

@github-actions github-actions bot added this to the 390 milestone Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants