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

Require deprecation annotation on deprecated methods #21411

Merged
merged 6 commits into from
Apr 5, 2024

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 5, 2024

Item documented with a @deprecated javadoc note should be annotated with @Deprecated for the deprecation to be fully effective for API consumers.

findepi added 5 commits April 5, 2024 10:52
Item documented with a `@deprecated` javadoc note should be annotated
with `@Deprecated` for the deprecation to be fully effective for API
consumers.
JLS allows for a non-public class to be defined in a file with name not
matching the class name. However, doing so reduces code readability.
The source file name should match the name of the top-level class it
contains.
Per `@Deprecated` javadoc, annotation on a local variable declaration or
on a parameter declaration has no effect.
"deprecation" is the correct spelling.
@findepi findepi force-pushed the findepi/deprecations branch from c461204 to 0b21efe Compare April 5, 2024 08:52
@findepi findepi requested review from wendigo and ksobolew April 5, 2024 08:53
Copy link
Contributor

@ksobolew ksobolew left a comment

Choose a reason for hiding this comment

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

All good stuff

`BigDecimal#equals` has surprising behavior: it also compares scale.
`a.compareTo(b) == 0` should be used instead.
@findepi findepi force-pushed the findepi/deprecations branch from 0b21efe to f38cfc9 Compare April 5, 2024 09:10
@cla-bot cla-bot bot added the cla-signed label Apr 5, 2024
@findepi
Copy link
Member Author

findepi commented Apr 5, 2024

@findepi
Copy link
Member Author

findepi commented Apr 5, 2024

@findepi findepi merged commit 7c0560d into trinodb:master Apr 5, 2024
98 of 99 checks passed
@findepi findepi deleted the findepi/deprecations branch April 5, 2024 11:58
@github-actions github-actions bot added this to the 445 milestone Apr 5, 2024
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