Closed equeim closed 3 years ago
Same issue. I also cannot override tag. tag in CustomTree has no access to internal open val tag: String? defined in timber.log.Timber.Tree, so it cannot override it
We have no way of differentiating this from a normal nested type with the name bar
. So this is unfortunately going to be working as intended.
If we have following class in Kotlin:
Then DebugTree will create tag "Foo$bar", while the same class written in Java will create tag "Foo". This is probably because Kotlin apparently compiler adds enclosing method name to anonymous class name, while Java compiler doesn't do it.