edu.umd.cs.findbugs.annotations
Annotation Type DefaultAnnotation


@Documented
@Target(value={TYPE,PACKAGE})
@Retention(value=CLASS)
public @interface DefaultAnnotation

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.


Required Element Summary
 Class<? extends Annotation>[] value
          Annotation class objects.
 
Optional Element Summary
 Priority priority
          Default priority.
 

Element Detail

value

public abstract Class<? extends Annotation>[] value
Annotation class objects. More than one class can be specified.

Returns:
Annotation class objects. More than one class can be specified.

priority

public abstract Priority priority
Default priority.

Returns:
Default priority.
Default:
edu.umd.cs.findbugs.annotations.Priority.MEDIUM


Copyright © 2011. All Rights Reserved.