IntentionallyWithoutToString

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class IntentionallyWithoutToString(val description: String = "", val reason: ExemptionReason = ExemptionReason.OTHER)(source)

Exempts the annotated class from STATEFUL_CLASS_WITHOUT_TO_STRING, one of the checks of Stateful classes without equals, hashCode, and toString.

Apply it when the default toString output is intended.

Parameters

description

Properties

Link copied to clipboard
Link copied to clipboard