Skip to content

Commit 44e1d49

Browse files
committed
Fix warnings generated by kotlin 2.0.20
1 parent a744590 commit 44e1d49

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

jvm/selfie-lib/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ kotlin {
3131
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:$ver_KOTLIN_SERIALIZATION")
3232
}
3333
}
34+
jsMain {
35+
dependencies {
36+
api("org.jetbrains.kotlinx:kotlinx-serialization-json:$ver_KOTLIN_SERIALIZATION")
37+
}
38+
}
3439
commonTest {
3540
dependencies {
3641
implementation kotlin('test')

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/Roundtrip.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ interface Roundtrip<T, SerializedForm> {
3232
/** Roundtrips the given type into pretty-printed Json. */
3333
class RoundtripJson<T>(private val strategy: kotlinx.serialization.KSerializer<T>) :
3434
Roundtrip<T, String> {
35+
@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)
3536
private val json =
3637
kotlinx.serialization.json.Json {
3738
prettyPrint = true

jvm/selfie-lib/src/commonMain/kotlin/com/diffplug/selfie/SnapshotFile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ internal data class SnapshotValueString(val value: String) : SnapshotValue {
6363
override fun toString(): String = value
6464
}
6565

66+
@ConsistentCopyVisibility
6667
data class Snapshot
6768
private constructor(
6869
val subject: SnapshotValue,

0 commit comments

Comments
 (0)