Package eu.bandm.tools.annotations
Annotation Interface Opt
@Documented
@Retention(CLASS)
@Target({FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE,TYPE_PARAMETER})
public @interface Opt
Indicates that the value
null
may appear.
This is the opposite to the @NonNull
option, as proposed by oracle, but
for coding styles where null
is forbidden by default.
It can be applied to the following places where types do occur:
class C { public static final @Opt Integer i; public @Opt String makeString (String s, @Opt String i) {...} }
- Since:
- 1.0