Michael Krussel
07/22/2024, 3:52 PMprivate val styleSource: NullForUndefined<@Serializable(with = LayerSourceSerializer::class) SourceDto> = NullForUndefined(null)
to make the AnnotationOnSeparateLine
rule happy.
I'm using ktlint from detekt.Vampire
07/23/2024, 11:56 AMprivate val styleSource: NullForUndefined<
@Serializable(with = LayerSourceSerializer::class)
SourceDto
> = NullForUndefined(null) to make the AnnotationOnSeparateLine
Michael Krussel
07/23/2024, 12:20 PM<
and one at the >
.David Meyer
07/24/2024, 7:31 PMMichael Krussel
07/24/2024, 8:22 PMphldavies
08/01/2024, 3:45 PMprivate typealias LayerSource =
@Serializable(with = LayerSourceSerializer::class)
SourceDto
private val styleSource: NullForUndefined<LayerSource> = NullForUndefined(null)
phldavies
08/01/2024, 3:47 PM@Serializable
private data class BigDecimalWithBytes(
val unscaledValue: @Serializable(with = LongOrBytesBigIntegerSerializer::class) BigInteger,
val scale: Int,
)
ended up as
@Serializable
private data class BigDecimalWithBytes(
val unscaledValue:
@Serializable(with = LongOrBytesBigIntegerSerializer::class)
BigInteger,
val scale: Int,
)
Michael Krussel
08/01/2024, 5:04 PM