Skip to content

Commit a29c32a

Browse files
committed
val serialVersionUID -> const val
1 parent 3b94059 commit a29c32a

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/LocalDateTimeJvm.kt

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

111-
@JvmStatic
112-
private val serialVersionUID: Long = 1L
111+
private const val serialVersionUID: Long = 1L
113112
}
114113

115114
public actual object Formats {

core/jvm/src/LocalTimeJvm.kt

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

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

9493
public actual object Formats {

0 commit comments

Comments
 (0)