patterntesting.annotation.check.runtime
Annotation Type NotNull


Deprecated. use javax.validation.constraints.NotNull

@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.

Since:
06.12.2008
Version:
$Revision: 1.2 $
Author:
oliver



Copyright © 2002–2014 PatternTesting Team. All rights reserved.