Skip to content

Remove duplicate getStringList resolver in DeclarativeConfigPropertyUtil#8572

Merged
jack-berg merged 1 commit into
open-telemetry:mainfrom
thswlsqls:fix/declarative-config-duplicate-stringlist-resolver
Jul 13, 2026
Merged

Remove duplicate getStringList resolver in DeclarativeConfigPropertyUtil#8572
jack-berg merged 1 commit into
open-telemetry:mainfrom
thswlsqls:fix/declarative-config-duplicate-stringlist-resolver

Conversation

@thswlsqls

Copy link
Copy Markdown
Contributor

Fixes #8569

Description

  • valueResolvers in DeclarativeConfigPropertyUtil referenced getStringList twice.
  • resolveValue returns the first non-null resolver result, so the second getStringList entry was unreachable dead code with no behavior effect.
  • Removing it leaves the list matching the ten resolver methods one-to-one (getString/Boolean/Long/Double, the four *List variants, getStructuredList, getStructured).

Testing done

  • Internal package-private util in the opentelemetry-api-incubator (-alpha) module; unreachable dead code removed, so no observable behavior change and no new test. Existing :api:incubator tests guard against regression.
  • ./gradlew :api:incubator:check passed.
  • No public API change, so no docs/apidiffs update; no user-facing change, so no CHANGELOG entry.

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.55%. Comparing base (4d974ba) to head (6fa4345).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8572   +/-   ##
=========================================
  Coverage     91.55%   91.55%           
  Complexity    10262    10262           
=========================================
  Files          1013     1013           
  Lines         27102    27102           
  Branches       3182     3182           
=========================================
  Hits          24812    24812           
  Misses         1565     1565           
  Partials        725      725           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@jack-berg
jack-berg marked this pull request as ready for review July 13, 2026 20:11
@jack-berg
jack-berg requested a review from a team as a code owner July 13, 2026 20:11
@jack-berg
jack-berg merged commit 041e122 into open-telemetry:main Jul 13, 2026
28 checks passed
@otelbot

otelbot Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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.

@thswlsqls
thswlsqls deleted the fix/declarative-config-duplicate-stringlist-resolver branch July 17, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate getStringList resolver in DeclarativeConfigPropertyUtil

2 participants