https://kotlinlang.org logo
#announcements
Title
# announcements
m

mzgreen

05/18/2017, 10:24 AM
I’m converting a big codebase from java to kotlin. There is a lot of concurrency. I have a class that has a method and inside of this method
notifyAll
is called. In Kotlin there is no such method because classes don’t inherit from
java.lang.Object
. Is it a bad practice to do
class Foo : java.lang.Object()
?
y

yole

05/18/2017, 10:38 AM
mzgreen: it's easier to do
(foo as java.lang.Object).notifyAll()
m

mzgreen

05/18/2017, 10:41 AM
Thanks!