Make LINE_SEPARATOR lazy property to not kick-in before system is setup.
This commit is contained in:
committed by
Evgeny Gerashchenko
parent
2b6fcc0b7c
commit
e22ff87d81
@@ -1,7 +1,9 @@
|
||||
package kotlin
|
||||
|
||||
import kotlin.properties.*
|
||||
|
||||
/** Line separator for current system. */
|
||||
val LINE_SEPARATOR: String = System.getProperty("line.separator")!!
|
||||
val LINE_SEPARATOR: String by Delegates.lazy { System.getProperty("line.separator")!! }
|
||||
|
||||
/** Appends line separator to Appendable. */
|
||||
public fun Appendable.appendln(): Appendable = append(LINE_SEPARATOR)
|
||||
|
||||
Reference in New Issue
Block a user