Annotation Interface Unused


@Documented public @interface Unused
Marks a field, method, or constructor as currently unused.

This annotation serves as an indicator to developers that the annotated element is not actively utilized in the codebase at present.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional description providing context about the unused status.
  • Element Details

    • value

      String value
      Optional description providing context about the unused status.

      This can include reasons for why the element is unused, or plans for future use or removal.

      Returns:
      a string description (default is an empty string)
      Default:
      ""