Skip to content

Commit a61c86c

Browse files
committed
val serialVersionUID -> const val
1 parent 7613327 commit a61c86c

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

core/jvm/src/Instant.kt

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public actual class LocalDate internal constructor(
5353
public actual fun Format(block: DateTimeFormatBuilder.WithDate.() -> Unit): DateTimeFormat<LocalDate> =
5454
LocalDateFormat.build(block)
5555

56-
@JvmStatic
57-
private val serialVersionUID: Long = 1L
56+
private const val serialVersionUID: Long = 1L
5857
}
5958

6059
public actual object Formats {

core/jvm/src/LocalDateTime.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public actual class LocalDateTime internal constructor(
8383
public actual fun Format(builder: DateTimeFormatBuilder.WithDateTime.() -> Unit): DateTimeFormat<LocalDateTime> =
8484
LocalDateTimeFormat.build(builder)
8585

86-
@JvmStatic
87-
private val serialVersionUID: Long = 1L
86+
private const val serialVersionUID: Long = 1L
8887
}
8988

9089
public actual object Formats {

core/jvm/src/LocalTime.kt

Lines changed: 1 addition & 2 deletions
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)