diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-08-01 02:52:16 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-08-01 02:52:16 +0200 |
commit | 388943a7e3c8d3cf64b44af045d4d3125b597444 (patch) | |
tree | 7b5de9860038612934c33c2eee6e94818cdf00e7 /src | |
parent | dd593a3af08d9fd300ecd3a11a3551507aa35b6f (diff) | |
download | lombok-388943a7e3c8d3cf64b44af045d4d3125b597444.tar.gz lombok-388943a7e3c8d3cf64b44af045d4d3125b597444.tar.bz2 lombok-388943a7e3c8d3cf64b44af045d4d3125b597444.zip |
Introduced a NonNull annotation to generate null-checks
Diffstat (limited to 'src')
-rw-r--r-- | src/lombok/NonNull.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lombok/NonNull.java b/src/lombok/NonNull.java new file mode 100644 index 00000000..d63407f0 --- /dev/null +++ b/src/lombok/NonNull.java @@ -0,0 +1,12 @@ +package lombok; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE}) +@Retention(RetentionPolicy.CLASS) +public @interface NonNull { + +} |