mirror of
https://github.com/fankes/moshi.git
synced 2025-10-21 17:09:21 +08:00
Convert Collection adapter to Kotlin (#1485)
* Consolidate contract utils * Rename .java to .kt * Convert CollectionJsonAdapter to Kotlin * Lift factory into companion object * Update moshi/src/main/java/com/squareup/moshi/internal/Util.kt
This commit is contained in:
@@ -30,6 +30,9 @@ val japicmp = tasks.register<JapicmpTask>("japicmp") {
|
||||
"com.squareup.moshi.internal.NullSafeJsonAdapter", // Internal.
|
||||
"com.squareup.moshi.internal.Util" // Internal.
|
||||
)
|
||||
fieldExcludes = listOf(
|
||||
"com.squareup.moshi.CollectionJsonAdapter#FACTORY" // False-positive, class is not public anyway
|
||||
)
|
||||
}
|
||||
|
||||
tasks.named("check").configure {
|
||||
|
Reference in New Issue
Block a user