mirror of
https://github.com/fankes/moshi.git
synced 2025-10-21 17:09:21 +08:00
Convert StandardJsonAdapters to Kotlin (#1494)
* Rename .java to .kt * Convert StandardJsonAdapters to Kotlin * Inline factory to object * Idiomatic cleanups + japicmp * Fixes * Another idiomatatic bit * Use knownNotNull() where applicable
This commit is contained in:
@@ -28,7 +28,8 @@ val japicmp = tasks.register<JapicmpTask>("japicmp") {
|
||||
classExcludes = listOf(
|
||||
"com.squareup.moshi.internal.NonNullJsonAdapter", // Internal.
|
||||
"com.squareup.moshi.internal.NullSafeJsonAdapter", // Internal.
|
||||
"com.squareup.moshi.internal.Util" // Internal.
|
||||
"com.squareup.moshi.internal.Util", // Internal.
|
||||
"com.squareup.moshi.StandardJsonAdapters" // Package-private
|
||||
)
|
||||
methodExcludes = listOf(
|
||||
"com.squareup.moshi.JsonAdapter#indent(java.lang.String)" // Was unintentionally open before
|
||||
|
Reference in New Issue
Block a user