Given
internal object IntSerializer : KSerializer<Int> {
override val descriptor: SerialDescriptor
get() = PrimitiveSerialDescriptor(IntSerializer::class.qualifiedName!!, PrimitiveKind.STRING)
override fun serialize(encoder: Encoder, value: Int) {
encoder.encodeString(value.toHexString())
}
override fun deserialize(decoder: Decoder): Int = 0
}
The following expression
internal data class Foo(val bar: List<Pair<@Serializable(IntSerializer::class) Int, String>>)
after running ./gradlew spotlessApply, it is reformatted to
internal data class Foo(
val bar: List<
Pair<
@Serializable(IntSerializer::class)
Int,
String,
>,
>,
)
even though line max len is not exceeded, no matter how I split this.
Given
The following expression
after running
./gradlew spotlessApply, it is reformatted toeven though line max len is not exceeded, no matter how I split this.