https://kotlinlang.org logo
Title
t

tschuchort

06/20/2017, 8:43 PM
is it possible to somehow hide overridden functions from subclasses? My problem is that a method of my superclass has a name collision with
bindView
from the kotterknife library.
d

diesieben07

06/20/2017, 8:56 PM
tschuchort: You could put
@Deprecated(level = HIDDEN)
on it.
But then you cannot call it yourself, either.
t

tschuchort

06/20/2017, 8:59 PM
interesting. I better use the annotations though. Kotterknife simply doesnt work correctly
d

diesieben07

06/20/2017, 9:10 PM
Actually, I misunderstood your problem. Not sure if this can be solved.
r

russhwolf

06/20/2017, 9:10 PM
you can do
import com.package.Foo as Bar
to avoid name collisions with imports
👍 2
r

radityagumay

06/21/2017, 8:41 AM
Yes, you can alias any import with new name