|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={PARAMETER,METHOD,FIELD})
@Deprecated
public @interface NotNull
In contradiction to the NullPointerTrap which forbids all null arguments
you can use a more relax strategy and mark only these parameter (and
attributes) as "@NotNull" which should never be null.
You can also mark fields with this annotation but this is at the moment not
evaluated. But you can use it for documentation purposes.
The same is true if you mark a method as @NotNull.
This annotation will be removed in 1.6.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||