dokka icon indicating copy to clipboard operation
dokka copied to clipboard

Suppress useless companion for Kotlin-As-Java

Open atyrin opened this issue 2 years ago • 0 comments

  • hide a companion object if it contains only const/@JvmField/lateinit properties or @JvmStatic functions
  • lift the declarations to outer class from the companion
  • mark lifted declarations as static
  • mark const/@JvmField/lateinit properties as static for named objects
  • remove getter/setter for const/lateinit properties in named objects/companions
  • add the companion property to the outer class

Fix #200, fix #2086

atyrin avatar Sep 26 '22 12:09 atyrin