Package eu.bandm.tools.annotations
Annotation Type Opt
-
@Documented @Retention(CLASS) @Target({TYPE,FIELD,METHOD,PARAMETER,LOCAL_VARIABLE,TYPE_USE,TYPE_PARAMETER}) public @interface Opt
Indicates that the valuenull
may appear. This is the opposite to the "NonNull" option, as proposed by oracle, but strictness is the normal case in our way of coding. It can be applied to the following places where types do occur:class c { public static @Opt Integer i ; public @Opt String makeString (final String s; final @Opt String i) {..} }
((LATER a use can be considered likeSystem.print("result = " + @Opt a.getId());
))