chore: port changes in google-cloud-java since 2026-03-24 #4170
Quality Gate failed
Failed conditions
2 Security Hotspots
48.5% Coverage on New Code (required ≥ 80%)
D Reliability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension
SonarQube for IDE
Annotations
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
This block of commented-out lines of code should be removed.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqzDSeDQPUo8jO-d&open=AZ1uvqzDSeDQPUo8jO-d&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqmdSeDQPUo8jO9h&open=AZ1uvqmdSeDQPUo8jO9h&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove this unused "responseTrailers" private field.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqSSeDQPUo8jO9_&open=AZ1uvqqSSeDQPUo8jO9_&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO92&open=AZ1uvqqISeDQPUo8jO92&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Immediately return this expression instead of assigning it to the temporary variable "errorSpan".
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqmSeDQPUo8jO-A&open=AZ1uvqqmSeDQPUo8jO-A&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Rename this generic name to match the regular expression '^[A-Z][0-9]?$'.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqvCSeDQPUo8jO-X&open=AZ1uvqvCSeDQPUo8jO-X&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove this 'public' modifier.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqmdSeDQPUo8jO9g&open=AZ1uvqmdSeDQPUo8jO9g&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Replace these 6 tests with a single Parameterized one.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqzgSeDQPUo8jO-j&open=AZ1uvqzgSeDQPUo8jO-j&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove this use of "Thread.sleep()".
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO9j&open=AZ1uvqqISeDQPUo8jO9j&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Rename this generic name to match the regular expression '^[A-Z][0-9]?$'.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqSSeDQPUo8jO97&open=AZ1uvqqSSeDQPUo8jO97&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO9n&open=AZ1uvqqISeDQPUo8jO9n&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqmSeDQPUo8jO-E&open=AZ1uvqqmSeDQPUo8jO-E&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO9m&open=AZ1uvqqISeDQPUo8jO9m&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Refactor the code in order to not assign to this loop counter from within the loop body.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqzDSeDQPUo8jO-b&open=AZ1uvqzDSeDQPUo8jO-b&pullRequest=4170
Check warning on line 208 in gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracer.java
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove this empty statement.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvquCSeDQPUo8jO-T&open=AZ1uvquCSeDQPUo8jO-T&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Refactor the body of this try/catch to not have multiple invocations throwing the same checked exception.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqrvSeDQPUo8jO-J&open=AZ1uvqrvSeDQPUo8jO-J&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Replace this lambda with method reference 'compositeScope::close'.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqsKSeDQPUo8jO-N&open=AZ1uvqsKSeDQPUo8jO-N&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Refactor the body of this try/catch to not have multiple invocations throwing the same checked exception.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqrvSeDQPUo8jO-K&open=AZ1uvqrvSeDQPUo8jO-K&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove the declaration of thrown exception 'java.io.IOException', as it cannot be thrown from method's body.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqwESeDQPUo8jO-Y&open=AZ1uvqwESeDQPUo8jO-Y&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Rename "mockChannel" which hides the field declared at line 91.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqwESeDQPUo8jO-Z&open=AZ1uvqwESeDQPUo8jO-Z&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Do not forget to remove this deprecated code someday.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqtiSeDQPUo8jO-Q&open=AZ1uvqtiSeDQPUo8jO-Q&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Rename this generic name to match the regular expression '^[A-Z][0-9]?$'.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqSSeDQPUo8jO99&open=AZ1uvqqSSeDQPUo8jO99&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Remove this use of "Thread.sleep()".
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO9w&open=AZ1uvqqISeDQPUo8jO9w&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO95&open=AZ1uvqqISeDQPUo8jO95&pullRequest=4170
sonarqubecloud / [java_showcase_integration_tests] SonarCloud Code Analysis
Rename this generic name to match the regular expression '^[A-Z][0-9]?$'.
See more on https://sonarcloud.io/project/issues?id=googleapis_gapic-generator-java_integration_tests&issues=AZ1uvqqISeDQPUo8jO9z&open=AZ1uvqqISeDQPUo8jO9z&pullRequest=4170