Skip to content

fix: registerSwitcherKeys to load contextBase from location#396

Merged
petruki merged 2 commits into
masterfrom
staging
Jun 27, 2026
Merged

fix: registerSwitcherKeys to load contextBase from location#396
petruki merged 2 commits into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Jun 27, 2026

Copy link
Copy Markdown
Member

This pull request updates dependencies and improves debugging for context key registration. The most important changes are grouped below.

Dependency Updates:

  • Updated okhttp to version 5.4.0 in pom.xml for improved stability and features.
  • Upgraded several Maven plugins in pom.xml, including maven-surefire-plugin, sonar-maven-plugin, jacoco-maven-plugin, and central-publishing-maven-plugin to their latest versions for better build and analysis support.
  • Updated the GitHub Action actions/github-script from v7 to v9 in .github/workflows/sonar.yml to use newer features and fixes.

Debugging Improvements:

  • Enhanced logging in registerSwitcherKey (in SwitcherContextBase.java) to provide more details during Switcher Key registration, including context class and field information.

Context Registration Logic:

  • Improved context key registration logic in SwitcherContextBase.java to ensure keys are only registered if the context class matches the expected location, increasing reliability.

petruki added 2 commits June 27, 2026 15:28
* chore(deps): bump test and plugins deps

* fix(test): force context init

* Revert "fix(test): force context init"

This reverts commit 727e19e.

* chore: added debug logs for registerSwitcherKey

* chore: added debug logs for registerSwitcherKey #2

* fix: registerSwitcherKeys to load contextBase from location
@petruki petruki added this to the v1.10.0 milestone Jun 27, 2026
@petruki petruki self-assigned this Jun 27, 2026
@petruki petruki added bug Something isn't working patch Updating internal dependencies labels Jun 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki petruki merged commit 0825d4b into master Jun 27, 2026
13 checks passed
@petruki petruki deleted the staging branch June 27, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Updating internal dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant