Skip to content

Add copy-constructor for MappingIterator #5069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Apr 5, 2025

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
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
*/

@@ -162,6 +162,14 @@ protected MappingIterator(JavaType type, JsonParser p, DeserializationContext ct
}
}

/**
* Copy-constructor that sub-classes can use when creating new instances
* by fluent-style construction
Copy link
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
8 checks passed
@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
Copy link
Contributor Author

k163377 commented Apr 6, 2025

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