Skip to content

fix: registerSwitcherKeys to load contextBase from location#395

Merged
petruki merged 6 commits into
master-2from
staging
Jun 27, 2026
Merged

fix: registerSwitcherKeys to load contextBase from location#395
petruki merged 6 commits into
master-2from
staging

Conversation

@petruki

@petruki petruki commented Jun 27, 2026

Copy link
Copy Markdown
Member

This pull request updates several dependencies in pom.xml and improves the debug logging and validation logic for registering Switcher Keys in SwitcherContextBase.java. The most important changes are:

Dependency updates:

  • Updated okhttp to version 5.4.0, maven-surefire-plugin to 3.5.6, sonar-maven-plugin to 5.7.0.6970, jacoco-maven-plugin to 0.8.15, and central-publishing-maven-plugin to 0.11.0 for improved compatibility and bug fixes. [1] [2]

Switcher Key registration improvements:

  • Enhanced the logic in registerSwitcherKeys() to verify that the current context class matches the expected context location before registering keys, ensuring more accurate context handling.
  • Added detailed debug logging to registerSwitcherKey() to trace context location, number of fields found, and each Switcher Key registered, improving observability and troubleshooting.

@petruki petruki added this to the v2.6.0 milestone Jun 27, 2026
@petruki petruki self-assigned this Jun 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki petruki changed the title chore(deps): bump test and plugins deps fix: registerSwitcherKeys to load contextBase from location Jun 27, 2026
@petruki petruki added bug Something isn't working patch Updating internal dependencies labels Jun 27, 2026
@petruki petruki merged commit e43187e into master-2 Jun 27, 2026
9 checks passed
@petruki petruki deleted the staging branch June 27, 2026 22:21
petruki added a commit that referenced this pull request Jun 27, 2026
* 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 added a commit that referenced this pull request Jun 27, 2026
* fix: registerSwitcherKeys to load contextBase from location (#395)

* 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

* chore(deps): bump test and plugins deps
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