Annotation Type DefaultAnnotationForMethods


@Documented @Target({TYPE,PACKAGE}) @Retention(CLASS) @Deprecated public @interface DefaultAnnotationForMethods
Deprecated.
Indicates that all members of the class or package should be annotated with the default value of the supplied annotation class. This would be used for behavior annotations such as @NonNull, @CheckForNull, or @CheckReturnValue. In particular, you can use @DefaultAnnotation(NonNull.class) on a class or package, and then use @Nullable only on those parameters, methods or fields that you want to allow to be null.
Author:
William Pugh
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Annotation>[]
    Deprecated.
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Deprecated.
     
    Deprecated.