Skip to content

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Feb 19, 2023

SSIA

see #558


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.

2 participants