From 388943a7e3c8d3cf64b44af045d4d3125b597444 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sat, 1 Aug 2009 02:52:16 +0200 Subject: Introduced a NonNull annotation to generate null-checks --- src/lombok/NonNull.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/lombok/NonNull.java (limited to 'src/lombok/NonNull.java') 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 { + +} -- cgit