aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/NonNull.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-08-01 02:52:16 +0200
committerRoel Spilker <r.spilker@gmail.com>2009-08-01 02:52:16 +0200
commit388943a7e3c8d3cf64b44af045d4d3125b597444 (patch)
tree7b5de9860038612934c33c2eee6e94818cdf00e7 /src/lombok/NonNull.java
parentdd593a3af08d9fd300ecd3a11a3551507aa35b6f (diff)
downloadlombok-388943a7e3c8d3cf64b44af045d4d3125b597444.tar.gz
lombok-388943a7e3c8d3cf64b44af045d4d3125b597444.tar.bz2
lombok-388943a7e3c8d3cf64b44af045d4d3125b597444.zip
Introduced a NonNull annotation to generate null-checks
Diffstat (limited to 'src/lombok/NonNull.java')
-rw-r--r--src/lombok/NonNull.java12
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 {
+
+}