Annotation Interface BackwardsCompatibleAlias


@SupportedAll @Retention(RUNTIME) @Target(FIELD) public @interface BackwardsCompatibleAlias
Annotation for defining an alias on a ElementType.FIELD for backwards compatibility purposes.

Note: Using this annotation requires enabling the BackwardsCompatibleAliasProcessor on the module using it, unless already enabled, in order to enforce the value()'s uniqueness within an enum class at build time.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The value of the backwardsCompatibleAlias property.
  • Element Details

    • value

      String value
      The value of the backwardsCompatibleAlias property.
      Returns:
      the backwardsCompatibleAlias property value