opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Fix stale parameter name in JcTools.drain Javadoc

Open thswlsqls opened this issue 5 months ago • 2 comments

Description

  • JcTools.drain(Queue, int, Consumer) documents @throws IllegalArgumentException if maxExportBatchSize is negative, but no maxExportBatchSize parameter exists; the argument is limit.
  • The name is a leftover from the private drainNonJcQueue(..., int maxExportBatchSize, ...) helper removed in #7691. The thrown behavior is unchanged: the delegate MessagePassingQueue.drain(Consumer, int) throws IllegalArgumentException for a negative limit.
  • Javadoc-only change in the internal, non-published :sdk:trace-shaded-deps module; no signature, behavior, or public API change.

Testing done

  • Docs-only, test-exempt: no test added; ./gradlew :sdk:trace-shaded-deps:check passed.

thswlsqls avatar Jun 22 '26 08:06 thswlsqls

CLA Signed
The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: thswlsqls / name: Eunbin Son (affdccb4c0dd637f757fce736bece2bb8061d740)

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 91.59%. Comparing base (824334c) to head (affdccb). :warning: Report is 63 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##               main    #8513       +/-   ##
=============================================
+ Coverage     78.77%   91.59%   +12.82%     
- Complexity     8579    10311     +1732     
=============================================
  Files          1009     1013        +4     
  Lines         28993    27273     -1720     
  Branches       3599     3202      -397     
=============================================
+ Hits          22839    24982     +2143     
+ Misses         5311     1563     -3748     
+ Partials        843      728      -115     

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jun 22 '26 08:06 codecov[bot]

This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

github-actions[bot] avatar Jul 09 '26 18:07 github-actions[bot]

/easycla

jack-berg avatar Jul 13 '26 19:07 jack-berg

Thank you for your contribution @thswlsqls! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

otelbot[bot] avatar Jul 13 '26 20:07 otelbot[bot]