Skip to content
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

Fix #558 #631

Merged
merged 1 commit into from Feb 20, 2023
Merged

Fix #558 #631

merged 1 commit into from Feb 20, 2023

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Feb 19, 2023

SSIA

see #558

@@ -97,13 +97,13 @@ operator fun JsonNode.contains(index: Int) = has(index)
internal fun JsonMappingException.wrapWithPath(refFrom: Any?, refFieldName: String) = JsonMappingException.wrapWithPath(this, refFrom, refFieldName)
internal fun JsonMappingException.wrapWithPath(refFrom: Any?, index: Int) = JsonMappingException.wrapWithPath(this, refFrom, index)

inline fun <reified T : Any> SimpleModule.addSerializer(kClass: KClass<T>, serializer: JsonSerializer<T>) = this.apply {
addSerializer(kClass.java, serializer)
fun <T : Any> SimpleModule.addSerializer(kClass: KClass<T>, serializer: JsonSerializer<T>): SimpleModule = this.apply {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was no need to define this function in reified since it does not make calls like T::class.

@k163377 k163377 merged commit 5ce200d into FasterXML:2.15 Feb 20, 2023
@k163377 k163377 deleted the fix-#558 branch February 20, 2023 20:54
k163377 added a commit to k163377/jackson-module-kotlin that referenced this pull request Feb 20, 2023
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.

None yet

2 participants