Skip to content

Commit 1069917

Browse files
committed
Work around a segfault
1 parent 5631cff commit 1069917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/common/src/format/DateTimeFormat.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ internal sealed class AbstractDateTimeFormat<T, U : Copyable<U>> : DateTimeForma
135135
}
136136

137137
@SharedImmutable
138-
private val allFormatConstants: List<Pair<String, StringFormat<*>>> = run {
138+
private val allFormatConstants: List<Pair<String, StringFormat<*>>> by lazy {
139139
fun unwrap(format: DateTimeFormat<*>): StringFormat<*> = (format as AbstractDateTimeFormat<*, *>).actualFormat
140140
// the formats are ordered vaguely by decreasing length, as the topmost among suitable ones is chosen.
141141
listOf(

0 commit comments

Comments
 (0)