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: Remove -Xlint:unchecked, suppress all existing violations, add @CanIgnoreReturnValue #1324

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

sinelaw
Copy link
Contributor

@sinelaw sinelaw commented Nov 5, 2023

Fixes #1323 ☕️

This will prevent further violations from being added without explicit suppressions.

A future step would be to review all existing violations and fix instead of suppressing them.

@sinelaw sinelaw requested review from a team as code owners November 5, 2023 13:38
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Nov 5, 2023
@TimurSadykov TimurSadykov self-assigned this Nov 7, 2023
@TimurSadykov
Copy link
Member

@sinelaw thanks for the contribution, it makes sense, please see a single nit comment

Preparation for enabling errorprone
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Nov 7, 2023
@sinelaw
Copy link
Contributor Author

sinelaw commented Nov 7, 2023

Added another commit - PTAL

Copy link
Member

@TimurSadykov TimurSadykov left a comment

Choose a reason for hiding this comment

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

LGTM

@sinelaw sinelaw changed the title Remove -Xlint:unchecked, suppress all existing violations fix: Remove -Xlint:unchecked, suppress all existing violations, add @CanIgnoreReturnValue Nov 14, 2023
Copy link

sonarcloud bot commented Nov 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@TimurSadykov TimurSadykov merged commit 04dfd40 into googleapis:main Nov 21, 2023
14 checks passed
@sinelaw sinelaw deleted the unchecked branch November 21, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unchecked casts are bad practice, but allowed globally in pom.xml
2 participants