michaelsims
06/15/2016, 5:25 PMObject
that exists so various code within the object can use its monitor to synchronize on. So I have private Object lock = new Object();
. The convertor replaces this with private val lock = Any()
, but this looks slightly funny to me for some reason. using Object()
here also works. Which would you consider idiomatic?