Update dependency com.pinterest.ktlint:ktlint-cli to v1.2.0 (#1814)

* Update dependency com.pinterest.ktlint:ktlint-cli to v1.2.0

* Appease ktlint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
This commit is contained in:
renovate[bot]
2024-02-28 21:59:39 +00:00
committed by GitHub
parent 04ebd09b7c
commit 516c005952
29 changed files with 325 additions and 25 deletions

View File

@@ -104,7 +104,10 @@ internal class KotlinJsonAdapter<T>(
if (values[i] === ABSENT_VALUE) {
when {
constructor.parameters[i].isOptional -> isFullInitialized = false
constructor.parameters[i].type.isMarkedNullable -> values[i] = null // Replace absent with null.
// Replace absent with null.
constructor.parameters[i].type.isMarkedNullable -> values[i] = null
else -> throw missingProperty(
constructor.parameters[i].name,
allBindings[i]?.jsonName,
@@ -285,9 +288,11 @@ public class KotlinJsonAdapterFactory : JsonAdapter.Factory {
property.returnType.javaType
}
}
is KTypeParameter -> {
property.returnType.javaType
}
else -> error("Not possible!")
}
val resolvedPropertyType = propertyType.resolve(type, rawType)