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

Replace uses of newParameterizedType #21687

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

ksobolew
Copy link
Contributor

Description

This uses the "well known" trick, used already elsewhere in the code, to use the anonymous inner class to force reification of type parameters, so that Key can get the exact type parameter information via reflection. This saves us a utility method and an unchecked cast.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

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

This uses the "well known" trick, used already elsewhere in the code, to
use the anonymous inner class to force reification of type parameters,
so that `Key` can get the exact type parameter information via
reflection. This saves us a utility method and an unchecked cast.
@cla-bot cla-bot bot added the cla-signed label Apr 24, 2024
@ksobolew ksobolew requested review from wendigo and findepi April 24, 2024 12:39
@wendigo wendigo merged commit 54c4f76 into trinodb:master Apr 24, 2024
95 checks passed
@github-actions github-actions bot added this to the 446 milestone Apr 24, 2024
@ksobolew ksobolew deleted the kudi/type-literal branch April 24, 2024 14:25
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.

2 participants