Annotation Type DoNotCall


  • @Retention(CLASS)
    @Target(METHOD)
    public @interface DoNotCall
    Indicates that the annotated method should not be called under any normal circumstances, yet is either impossible to remove, or should not ever be removed. Example:
    {@code
     public class ImmutableList implements List {
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      An optional explanation of why the method should not be called.
    • Element Detail

      • value

        java.lang.String value
        An optional explanation of why the method should not be called.
        Default:
        ""