mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Update dependency com.pinterest.ktlint:ktlint-cli to v1.3.0 (#1853)
* Update dependency com.pinterest.ktlint:ktlint-cli to v1.3.0 * Disable expression rule * Reformat * Whatever --------- 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:
@@ -13,7 +13,8 @@ enum class TestMode {
|
||||
}
|
||||
|
||||
val testMode =
|
||||
findProperty("kotlinTestMode")?.toString()
|
||||
findProperty("kotlinTestMode")
|
||||
?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: REFLECT
|
||||
|
||||
|
@@ -13,7 +13,8 @@ enum class TestMode {
|
||||
}
|
||||
|
||||
val testMode =
|
||||
findProperty("kotlinTestMode")?.toString()
|
||||
findProperty("kotlinTestMode")
|
||||
?.toString()
|
||||
?.let(TestMode::valueOf)
|
||||
?: KSP
|
||||
|
||||
|
@@ -134,7 +134,9 @@ abstract class Layer1<A> {
|
||||
var layer1: A? = null
|
||||
}
|
||||
|
||||
abstract class Layer2<B> : Layer1<B>(), LayerInterface<B> {
|
||||
abstract class Layer2<B> :
|
||||
Layer1<B>(),
|
||||
LayerInterface<B> {
|
||||
var layer2: B? = null
|
||||
}
|
||||
|
||||
@@ -147,4 +149,5 @@ abstract class Layer3<C, D> : Layer2<D>() {
|
||||
data class Layer4<E : Personable, F>(
|
||||
val layer4E: E,
|
||||
val layer4F: F? = null,
|
||||
) : Layer3<List<Int>, String>(), LayerInterface<String>
|
||||
) : Layer3<List<Int>, String>(),
|
||||
LayerInterface<String>
|
||||
|
@@ -44,5 +44,7 @@ class MoshiKspTest {
|
||||
// NOTE the Any() superclass is important to test that we're detecting the farthest parent class
|
||||
// correct.y
|
||||
@JsonClass(generateAdapter = true)
|
||||
data class SimpleImpl(override val a: String, val b: String) : Any(), SimpleInterface
|
||||
data class SimpleImpl(override val a: String, val b: String) :
|
||||
Any(),
|
||||
SimpleInterface
|
||||
}
|
||||
|
Reference in New Issue
Block a user