Skip to content

Apply content converters for String collection values (StringCollectionDeserializer) - #6048

Merged
cowtowncoder merged 3 commits into
FasterXML:3.1from
dlwldnjs1009:string-collection-content-converter-3.1
Jun 22, 2026
Merged

Apply content converters for String collection values (StringCollectionDeserializer)#6048
cowtowncoder merged 3 commits into
FasterXML:3.1from
dlwldnjs1009:string-collection-content-converter-3.1

Conversation

@dlwldnjs1009

Copy link
Copy Markdown
Contributor

StringCollectionDeserializer skipped @JsonDeserialize(contentConverter=...)
when a Collection<String> property also specified contentUsing, because
the converter lookup only ran when no content deserializer had been resolved.

Changes:

  • Move content-converter lookup before the resolved-deserializer branch.
  • Add regression coverage for contentUsing + contentConverter on List<String>.

Testing:

  • ./mvnw -Dtest=ConvertingDeserializerTest#testPropertyAnnotationStringListWithDeserializerLC test
  • ./mvnw -Dtest=ConvertingDeserializerTest test

StringCollectionDeserializer only checked for content converters when no content deserializer had been resolved yet. This skipped @JsonDeserialize(contentConverter=...) for String collection properties that also use contentUsing.

Move the converter lookup before the existing deserializer branch and add regression coverage for the combined contentUsing/contentConverter case.
@github-actions

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.35% 📈 +0.010%
Branches branches 74.57% 📈 +0.020%

Coverage data generated from JaCoCo test results

@cowtowncoder cowtowncoder changed the title Apply content converters for String collection values Apply content converters for String collection values (StringCollectionDeserializer) Jun 22, 2026
@cowtowncoder cowtowncoder added this to the 3.1.5 milestone Jun 22, 2026
@github-actions

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.34% 📈 +0.000%
Branches branches 74.56% 📈 +0.010%

Coverage data generated from JaCoCo test results

@cowtowncoder
cowtowncoder merged commit f0354a0 into FasterXML:3.1 Jun 22, 2026
@cowtowncoder

Copy link
Copy Markdown
Member

Thank you, @dlwldnjs1009 !

@github-actions

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 81.35% 📈 +0.010%
Branches branches 74.57% 📈 +0.020%

Coverage data generated from JaCoCo test results

@dlwldnjs1009
dlwldnjs1009 deleted the string-collection-content-converter-3.1 branch June 22, 2026 01:51
cowtowncoder added a commit that referenced this pull request Aug 7, 2026
…#6101, #6109, #6115, #6116, #6127, #6129, #6137) into 3.x CREDITS

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants