Package de.japkit.test.members.field
Class FieldTemplate.notNullCheck
java.lang.Object
de.japkit.test.members.field.FieldTemplate.notNullCheck
- Enclosing class:
- FieldTemplate
@CodeFragment(condFun=hasNotNull.class) class FieldTemplate.notNullCheck extends java.lang.Object
This will generate a statement that checks for null, if the given source
element has the
NotNull
annotation.
- japkit.code
if (#{name} == null) { throw new IllegalArgumentException("#{name} must not be null."); }
-
Constructor Summary
Constructors Constructor Description notNullCheck()
-
Method Summary
-
Constructor Details
-
notNullCheck
notNullCheck()
-