File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,8 @@ public actual class LocalDate internal constructor(
53
53
public actual fun Format (block : DateTimeFormatBuilder .WithDate .() -> Unit ): DateTimeFormat <LocalDate > =
54
54
LocalDateFormat .build(block)
55
55
56
- // even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
57
- // stable serialVersionUID means exceptions caused by deserialization of malicious streams will be consistent
58
- // (InvalidClassException vs. InvalidObjectException, see MaliciousJvmSerializationTest)
56
+ // Even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
57
+ // stable serialVersionUID is useful for testing, see MaliciousJvmSerializationTest.
59
58
private const val serialVersionUID = 7026816023079564263L
60
59
}
61
60
Original file line number Diff line number Diff line change @@ -107,9 +107,8 @@ public actual class LocalDateTime internal constructor(
107
107
public actual fun Format (builder : DateTimeFormatBuilder .WithDateTime .() -> Unit ): DateTimeFormat <LocalDateTime > =
108
108
LocalDateTimeFormat .build(builder)
109
109
110
- // even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
111
- // stable serialVersionUID means exceptions caused by deserialization of malicious streams will be consistent
112
- // (InvalidClassException vs. InvalidObjectException, see MaliciousJvmSerializationTest)
110
+ // Even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
111
+ // stable serialVersionUID is useful for testing, see MaliciousJvmSerializationTest.
113
112
private const val serialVersionUID: Long = - 4261744960416354711L
114
113
}
115
114
Original file line number Diff line number Diff line change @@ -86,9 +86,8 @@ public actual class LocalTime internal constructor(
86
86
public actual fun Format (builder : DateTimeFormatBuilder .WithTime .() -> Unit ): DateTimeFormat <LocalTime > =
87
87
LocalTimeFormat .build(builder)
88
88
89
- // even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
90
- // stable serialVersionUID means exceptions caused by deserialization of malicious streams will be consistent
91
- // (InvalidClassException vs. InvalidObjectException, see MaliciousJvmSerializationTest)
89
+ // Even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
90
+ // stable serialVersionUID is useful for testing, see MaliciousJvmSerializationTest.
92
91
private const val serialVersionUID: Long = - 352249606036216323L
93
92
}
94
93
Original file line number Diff line number Diff line change @@ -41,9 +41,8 @@ public actual class UtcOffset(
41
41
public actual fun Format (block : DateTimeFormatBuilder .WithUtcOffset .() -> Unit ): DateTimeFormat <UtcOffset > =
42
42
UtcOffsetFormat .build(block)
43
43
44
- // even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
45
- // stable serialVersionUID means exceptions caused by deserialization of malicious streams will be consistent
46
- // (InvalidClassException vs. InvalidObjectException, see MaliciousJvmSerializationTest)
44
+ // Even though this class uses writeReplace (so serialVersionUID is not needed for a stable serialized form), a
45
+ // stable serialVersionUID is useful for testing, see MaliciousJvmSerializationTest.
47
46
private const val serialVersionUID: Long = - 6636773355667981618L
48
47
}
49
48
You can’t perform that action at this time.
0 commit comments