Skip to content

Fix IDE warnings in trino caches#14744

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-ide-warnings-in-trino-caches-b9223e
Oct 26, 2022
Merged

Fix IDE warnings in trino caches#14744
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/fix-ide-warnings-in-trino-caches-b9223e

Conversation

@findepi
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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