Code review sweep (run 25143427986)#18430
Merged
Merged
Conversation
Automated code review of instrumentation/guava-10.0/javaagent.
Automated code review of instrumentation/gwt-2.0/javaagent.
Automated code review of instrumentation/helidon-4.3/javaagent.
Automated code review of instrumentation/hibernate/hibernate-3.3/javaagent.
Automated code review of instrumentation/hibernate/hibernate-4.0/javaagent.
trask
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:
guava-10.0:javaagentguava-10.0:librarygwt-2.0:javaagenthelidon-4.3:javaagenthelidon-4.3:libraryhelidon-4.3:testinghibernate-3.3:javaagenthibernate-4.0:javaagentModule:
guava-10.0:javaagentModule path:
instrumentation/guava-10.0/javaagentSummary
Applied and committed safe review fixes for
guava-10.0javaagent: corrected nullable contracts in ByteBuddy advice and aligned the experimental test flag constant with repository test guidance.Applied Changes
Nullability
File:
GuavaListenableFutureInstrumentation.java:52Change: Added `@Nullable` to `addListenerEnter()` and to `@Advice.Enter` / `@Advice.Thrown` parameters in `addListenerExit()`.
Reason: Repository nullability guidance requires `@Nullable` where values can actually be absent; `addListenerEnter()` returns `null`, `@Advice.Enter` receives that `null`, and `@Advice.Thrown` is `null` on successful exits.
Testing
File:
BaseGuavaWithSpanTest.java:17Change: Renamed the experimental flag field to private `EXPERIMENTAL_ATTRIBUTES` and updated its accessor use.
Reason: Experimental test flag guidance says module-specific experimental span attribute flags should be read once into a private static final `EXPERIMENTAL_ATTRIBUTES` constant.
Module:
guava-10.0:libraryModule path:
instrumentation/guava-10.0/librarySummary
No safe repository-guideline fixes were applied for
instrumentation/guava-10.0/library; the trackedbuild.gradle.kts, main sources, and tests matched the loaded style, library, testing, Gradle, andmetadata.yamlguidance.Applied Changes
No safe automated changes were applied.
Module:
gwt-2.0:javaagentModule path:
instrumentation/gwt-2.0/javaagentSummary
Applied and committed one safe repository-guideline fix for
gwt-2.0javaagenttest-task configuration.Applied Changes
Build
File:
build.gradle.kts:106Change: Moved the default test-task `jvmArgs`, `collectMetadata`, and `testcontainersBuildService` configuration from `tasks.withType<Test>().configureEach` into the existing `test` block.
Reason: `gradle-conventions.md` says single-test-task modules should use `tasks.test`; `withType<Test>().configureEach` is reserved for modules that explicitly register additional `Test` tasks, and existing `collectMetadata` should be configured on `tasks.test` in this case.
Module:
helidon-4.3:javaagentModule path:
instrumentation/helidon-4.3/javaagentSummary
Applied safe repository-guideline fixes in
instrumentation/helidon-4.3/javaagentand committed them in3ced831d.Applied Changes
Performance
File:
HelidonServerResponseMutator.java:12Change: Added a package-local `INSTANCE` singleton and private constructor for the stateless `HelidonServerResponseMutator`.
Reason: Repository review guidance says stateless telemetry helpers used on hot paths should avoid per-request allocation; keeping a singleton on hot paths is the documented exception to the general instance-creation preference.
File:
ResponseCustomizingFilter.java:24Change: Reused `HelidonServerResponseMutator.INSTANCE` instead of creating `new HelidonServerResponseMutator()` during response customization.
Reason: The `Filter.filter(...)` method runs on the request path, and repository performance guidance says to avoid avoidable hot-path allocations for stateless telemetry interface implementations.
Module:
helidon-4.3:libraryModule path:
instrumentation/helidon-4.3/librarySummary
No safe repository-guideline fixes were needed for
instrumentation/helidon-4.3/library. Reviewable source, test, Gradle, and requiredmetadata.yamlchecks did not reveal deterministic issues to change.Applied Changes
No safe automated changes were applied.
Module:
helidon-4.3:testingModule path:
instrumentation/helidon-4.3/testingSummary
No safe repository-guideline fixes were applied under
instrumentation/helidon-4.3/testing; the review found no deterministic issues in the reviewable source or Gradle files.Applied Changes
No safe automated changes were applied.
Module:
hibernate-3.3:javaagentModule path:
instrumentation/hibernate/hibernate-3.3/javaagentSummary
Applied one safe repository-guideline fix in
hibernate-3.3javaagent test code.Applied Changes
Style
File:
SessionTest.java:140Change: Renamed the unused caught `RuntimeException` variable from `e` to `ignored`.
Reason: Repository catch-variable naming guidance prefers `ignored` for intentionally unused catch parameters.
Module:
hibernate-4.0:javaagentModule path:
instrumentation/hibernate/hibernate-4.0/javaagentSummary
Applied and committed safe review fixes for
hibernate-4.0javaagent advice nullability. Validation completed with:instrumentation:hibernate:hibernate-4.0:javaagent:check,:instrumentation:hibernate:hibernate-4.0:javaagent:check -PtestLatestDeps=true, and finalspotlessApply.Applied Changes
Nullability
File:
CriteriaInstrumentation.java:50Change: Added `@Nullable` to the `startMethod()` advice return and to nullable `@Advice.Thrown` / `@Advice.Enter` exit parameters.
Reason: Repository nullability guidance requires annotating values that can be `null`; `HibernateOperationScope.start(...)` can return `null`, and javaagent advice patterns model thrown and enter-scope values as nullable on exit advice.
File:
QueryInstrumentation.java:50Change: Added `@Nullable` to the `startMethod()` advice return and to nullable `@Advice.Thrown` / `@Advice.Enter` exit parameters.
Reason: Repository nullability guidance requires annotating values that can be `null`; `HibernateOperationScope.start(...)` can return `null`, and javaagent advice patterns model thrown and enter-scope values as nullable on exit advice.
File:
SessionInstrumentation.java:97Change: Added `@Nullable` to the `startMethod()` advice return and to nullable `@Advice.Thrown` / `@Advice.Enter` exit parameters.
Reason: Repository nullability guidance requires annotating values that can be `null`; `HibernateOperationScope.start(...)` can return `null`, and javaagent advice patterns model thrown and enter-scope values as nullable on exit advice.
File:
TransactionInstrumentation.java:49Change: Added `@Nullable` to the `startCommit()` advice return and to nullable `@Advice.Thrown` / `@Advice.Enter` exit parameters.
Reason: Repository nullability guidance requires annotating values that can be `null`; `HibernateOperationScope.start(...)` can return `null`, and javaagent advice patterns model thrown and enter-scope values as nullable on exit advice.
Download code review diagnostics