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

Fix IDE warnings in trino caches #14744

Conversation

findepi
Copy link
Member

@findepi findepi commented Oct 25, 2022

Guava cache classes use @ElementTypesAreNonnullByDefault annotation and some IDEs complain about it when subclasses do not do that.

Fixing these warnings has no value in itself, as they are ignorable, but helps notice potentially useful warnings, should there be any.

Guava cache classes use `@ElementTypesAreNonnullByDefault` annotation
and some IDEs complain about it when subclasses do not do that.

Fixing these warnings has no value in itself, as they are ignorable, but
helps notice potentially useful warnings, should there be any.
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Oct 25, 2022
@findepi findepi requested a review from losipiuk October 25, 2022 08:43
@cla-bot cla-bot bot added the cla-signed label Oct 25, 2022
@Target(TYPE)
@TypeQualifierDefault({FIELD, METHOD, PARAMETER})
@Nonnull
@interface ElementTypesAreNonnullByDefault {}
Copy link
Member

Choose a reason for hiding this comment

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

so IDE just cares about the name of annotation, not the package it comes from?

Copy link
Member Author

Choose a reason for hiding this comment

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

apparently

Copy link
Member Author

Choose a reason for hiding this comment

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

at least mine does

@findepi findepi merged commit c92b8d5 into trinodb:master Oct 26, 2022
@findepi findepi deleted the findepi/fix-ide-warnings-in-trino-caches-b9223e branch October 26, 2022 15:39
@github-actions github-actions bot added this to the 401 milestone Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

2 participants