By default yes <https://kotlinlang.org/api/latest/...
# announcements
a
By default yes https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/lazy.html#
default thread-safety mode LazyThreadSafetyMode.SYNCHRONIZED.
Locks are used to ensure that only a single thread can initialize the Lazy instance.
p
thanks, my issue was elsewhere.. i was confused why was one of my properties behaving as if it was a static object
i had this helper for java to quickly create empty attributes:
Copy code
companion object {
    @JvmField
    val EMPTY = Attributes(null, null, null, null, null)
}
it should have been a function and not field
this is what happens when your company only lets you use Kotlin for 10% of the codebase 😞
👌 1
😁 2