Skip to content

Commit 32c9cc0

Browse files
committed
val serialVersionUID -> const val
1 parent f44c9a4 commit 32c9cc0

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

core/jvm/src/Instant.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ public actual class Instant internal constructor(
100100
internal actual val MIN: Instant = Instant(jtInstant.MIN)
101101
internal actual val MAX: Instant = Instant(jtInstant.MAX)
102102

103-
@JvmStatic
104-
private val serialVersionUID: Long = 1L
103+
private const val serialVersionUID: Long = 1L
105104
}
106105

107106
private fun writeObject(oStream: java.io.ObjectOutputStream) {

core/jvm/src/LocalDate.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ public actual class LocalDate internal constructor(
4545
public actual fun Format(block: DateTimeFormatBuilder.WithDate.() -> Unit): DateTimeFormat<LocalDate> =
4646
LocalDateFormat.build(block)
4747

48-
@JvmStatic
49-
private val serialVersionUID: Long = 1L
48+
private const val serialVersionUID: Long = 1L
5049
}
5150

5251
public actual object Formats {

core/jvm/src/LocalDateTime.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public actual class LocalDateTime internal constructor(
8181
public actual fun Format(builder: DateTimeFormatBuilder.WithDateTime.() -> Unit): DateTimeFormat<LocalDateTime> =
8282
LocalDateTimeFormat.build(builder)
8383

84-
@JvmStatic
85-
private val serialVersionUID: Long = 1L
84+
private const val serialVersionUID: Long = 1L
8685
}
8786

8887
public actual object Formats {

core/jvm/src/LocalTime.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public actual class LocalTime internal constructor(
8686
public actual fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime> =
8787
LocalTimeFormat.build(builder)
8888

89-
@JvmStatic
90-
private val serialVersionUID: Long = 1L
89+
private const val serialVersionUID: Long = 1L
9190
}
9291

9392
public actual object Formats {

0 commit comments

Comments
 (0)