From 0236721d8d3cde431d0a40995a61e4fd3fe14be1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 28 Aug 2009 00:12:27 +0200 Subject: Updated documentation for @NonNull (and the changelog). --- src/lombok/NonNull.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lombok') diff --git a/src/lombok/NonNull.java b/src/lombok/NonNull.java index 46afc5da..80dc381a 100644 --- a/src/lombok/NonNull.java +++ b/src/lombok/NonNull.java @@ -33,6 +33,10 @@ import java.lang.annotation.Target; * * You can use this annotation for the purpose, though you can also use JSR305's annotation, findbugs's, pmd's, or IDEA's, or just * about anyone elses. As long as it is named @NonNull or @NotNull. + * + * WARNING: If the java community ever does decide on supporting a single @NonNull annotation (for example via JSR305), then + * this annotation will be deleted from the lombok package. If the need to update an import statement scares + * you, you should use your own annotation named @NonNull instead of this one. */ @Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE}) @Retention(RetentionPolicy.CLASS) -- cgit