IntentionallyWithoutHashCode
annotation class IntentionallyWithoutHashCode(val description: String = "", val reason: ExemptionReason = ExemptionReason.OTHER)(source)
Exempts the annotated class from STATEFUL_CLASS_WITHOUT_HASH_CODE, one of the checks of Stateful classes without equals, hashCode, and toString.
Apply it when identity hashing is intended.
Parameters
description
Why the exemption is applied. Can be empty when reason is ExemptionReason.FOR_BACKWARDS_COMPATIBILITY, ExemptionReason.API_DESIGN, or ExemptionReason.FOR_DEPRECATION.