IntentionallyNonStaticCompanionApi
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY] )
Exempts the annotated companion object member from Companion function without JvmStatic and Companion property without static access. On a companion object or a class, it covers every member.
Apply it when Java callers must use the companion instance. Otherwise, add static access with @JvmStatic, @JvmField, or const val, or hide the member from Java with @JvmSynthetic.
Parameters
description
Why the exemption is applied. Can be empty when reason is ExemptionReason.FOR_BACKWARDS_COMPATIBILITY, ExemptionReason.API_DESIGN, or ExemptionReason.FOR_DEPRECATION.