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

Fixed issue #130 Default Parameter Values when JSON value is null #257

Closed
wants to merge 1 commit into from
Closed

Conversation

NumezmaT
Copy link
Contributor

Using Kotlin Default Parameter Values when JSON value is null and Kotlin parameter type is Non-Nullable #130

@@ -90,7 +90,7 @@ internal class KotlinValueInstantiator(
}

var paramVal = if (!isMissing || paramDef.isPrimitive() || jsonProp.hasInjectableValueId()) {
buffer.getParameter(jsonProp)
buffer.getParameter(jsonProp) ?: return@forEachIndexed
Copy link
Member

Choose a reason for hiding this comment

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

I am not very familiar with Kotlin so... what does the last part do?

@cowtowncoder
Copy link
Member

Thank you for contributing this! I hope to get this reviewed, merged, this week to get in 2.10.1 patch (I can backport)

@NumezmaT
Copy link
Contributor Author

@cowtowncoder
Reject this changes. I was find error in this solution.

@NumezmaT NumezmaT closed this Oct 25, 2019
@NumezmaT NumezmaT deleted the issue_130 branch October 25, 2019 07:18
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.

3 participants