Skip to content

Remove duplicate getStringList resolver in DeclarativeConfigPropertyUtil#8572

Draft
thswlsqls wants to merge 1 commit into
open-telemetry:mainfrom
thswlsqls:fix/declarative-config-duplicate-stringlist-resolver
Draft

Remove duplicate getStringList resolver in DeclarativeConfigPropertyUtil#8572
thswlsqls wants to merge 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).

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.

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

1 participant