Skip to content

Add copy-constructor for MappingIterator - #5069

Merged
cowtowncoder merged 1 commit into
FasterXML:2.19from
k163377:MappingIterator
Apr 5, 2025
Merged

Add copy-constructor for MappingIterator#5069
cowtowncoder merged 1 commit into
FasterXML:2.19from
k163377:MappingIterator

Conversation

@k163377

@k163377 k163377 commented Apr 5, 2025

Copy link
Copy Markdown
Contributor

I am currently trying to add a check process for MappingIterator.nextValue(to fix FasterXML/jackson-module-kotlin#399).
https://github.com/FasterXML/jackson-module-kotlin/blob/1cf821da365093a23b2e7c21bf97d17ecc4ee112/src/main/kotlin/com/fasterxml/jackson/module/kotlin/Extensions.kt#L54

A copy-constructor would be useful for this.
Could you please consider if this code could be merged?

Comment on lines +165 to +168
/**
* Copy-constructor that sub-classes can use when creating new instances
* by fluent-style construction
*/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refer to the following comment

/**
* Copy-constructor that sub-classes can use when creating new instances
* by fluent-style construction
*/


/**
* Copy-constructor that sub-classes can use when creating new instances
* by fluent-style construction

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We always want @since annotation: I can add it.

@cowtowncoder
cowtowncoder merged commit 3d4c040 into FasterXML:2.19 Apr 5, 2025
@cowtowncoder cowtowncoder changed the title Add copy-constructor for MappingIterator Add copy-constructor for MappingIterator Apr 5, 2025
cowtowncoder added a commit that referenced this pull request Apr 5, 2025
@cowtowncoder cowtowncoder added this to the 2.19.0 milestone Apr 5, 2025
@cowtowncoder cowtowncoder added the 2.19 Issues planned at 2.19 or later label Apr 5, 2025
@k163377
k163377 deleted the MappingIterator branch April 6, 2025 03:15
@k163377

k163377 commented Apr 6, 2025

Copy link
Copy Markdown
Contributor Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.19 Issues planned at 2.19 or later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ObjectMapper.readValue<T>(...) breaks null safety

2 participants