Skip to content

MODWRKFLOW-54: Properly switch to Jackson 3.#151

Merged
kaladay merged 1 commit into
masterfrom
MODWRKFLOW-54-object_mapper
May 28, 2026
Merged

MODWRKFLOW-54: Properly switch to Jackson 3.#151
kaladay merged 1 commit into
masterfrom
MODWRKFLOW-54-object_mapper

Conversation

@kaladay
Copy link
Copy Markdown
Contributor

@kaladay kaladay commented May 27, 2026

Further resolves MODWRKFLOW-54 .

Use JsonMapper directly instead of ObjectMapper.

  • Use Jackson 2 as the default behavior.
  • Apply common default properties.
  • Ensure modules are auto-found just like with Jackson 2.

Address some of the problems reported by SonarQube.

  • Create AbstractConverterFailure to address SonarQube concerns about directly using RuntimeException.
    • Unit tests are not written and will likely have to be pending SonarQube report from upstream.
  • Make Node constructor protected as per SonarQube.

Apply the newly established way of setting up the JsonMapper.

Rename objectMapper uses to mapper.

  • This simplifies the code.
  • This removes the now inaccurate object reference from the name.
  • Not having json in the name will allow for this to be changed again in the future (if need be) without as many changes.

Use `JsonMapper` directly instead of `ObjectMapper`.
  - Use **Jackson 2** as the default behavior.
  - Apply common default properties.
  - Ensure modules are auto-found just like with **Jackson 2**.

Address some of the problems reported by **SonarQube**.
  - Create `AbstractConverterFailure` to address **SonarQube** concerns about directly using `RuntimeException`.
    - Unit tests are not written and will likely have to be pending **SonarQube** report from upstream.
  - Make `Node` constructor protected as per **SonarQube**.

Apply the newly established way of setting up the `JsonMapper`.

Rename `objectMapper` uses to `mapper`.
  - This simplifies the code.
  - This removes the now inaccurate `object` reference from the name.
  - Not having `json` in the name will allow for this to be changed again in the future (if need be) without as many changes.
@kaladay kaladay requested a review from a team May 27, 2026 21:26
@sonarqubecloud
Copy link
Copy Markdown

@kaladay kaladay merged commit 7af4547 into master May 28, 2026
40 of 42 checks passed
@kaladay kaladay deleted the MODWRKFLOW-54-object_mapper branch May 28, 2026 14:48
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.

2 participants