Annotation Interface DoNotCall


@Documented @Target({METHOD,CONSTRUCTOR}) public @interface DoNotCall
Indicates that a method or constructor is not intended to be called directly.

This annotation serves as a warning to developers that the annotated element should not be invoked, as it may lead to unexpected behavior or is reserved for internal use only.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional message providing additional context about why the element should not be called.
  • Element Details

    • value

      String value
      An optional message providing additional context about why the element should not be called.
      Returns:
      a string message, or an empty string if no message is provided
      Default:
      ""