ExemptionReason

Why an exemption annotation is applied.

FOR_BACKWARDS_COMPATIBILITY, API_DESIGN, and FOR_DEPRECATION explain an exemption on their own. Every other reason needs a description that names the constraint, or the compiler reports EXEMPTION_WITHOUT_EXPLANATION.

See Exemptions and internal API for more details.

Entries

Link copied to clipboard

The shape stays for compatibility with existing users.

Link copied to clipboard

The shape is part of the API design.

Link copied to clipboard

The declaration is deprecated or soon to be deprecated, so no evolution is planned for it.

Link copied to clipboard

The declaration is work in progress, so its shape isn't final. Name the remaining work in the description.

Link copied to clipboard

Interoperability with another language, platform, or framework needs the shape. Name it in the description.

Link copied to clipboard

The shape mirrors a specification, a protocol, or a closed real-world domain. Name it in the description.

Link copied to clipboard

The declaration ignores Java callers. Explain why in the description. A library without Java callers can disable the Java interop checks in its build configuration instead.

Link copied to clipboard

None of the other reasons fits. The default. Explain the exemption in the description.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.