Hola!!


This site is built using hugo and the theme is built by Fredrik if you enjoy it, it is available at github


EnclosingClass

What is enclosingClass.

https://github.com/MicroUtils/kotlin-logging/blob/5c297178d7edcae6af2e248328c42dad11adc88c/src/main/kotlin/mu/internal/KLoggerNameResolver.kt
inline private fun <T: Any> unwrapCompanionClass(ofClass: Class<T>): Class<*> = 
    if (ofClass.enclosingClass != null && ofClass.enclosingClass.kotlin.companionObject?.java == ofClass) {
        ofClass.enclosingClass
    } else {
        ofClass
    }