I’m converting a big codebase from java to kotlin....
# announcements
m
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
mzgreen: it's easier to do
(foo as java.lang.Object).notifyAll()
m
Thanks!