aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-08-28 00:12:27 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-08-28 00:12:27 +0200
commit0236721d8d3cde431d0a40995a61e4fd3fe14be1 (patch)
tree54841f3e750b4ccc89564712ece7286bc23d40db
parente1ee1b7d2db1ea998aa4d6aa3f6b4141315a9496 (diff)
downloadlombok-0236721d8d3cde431d0a40995a61e4fd3fe14be1.tar.gz
lombok-0236721d8d3cde431d0a40995a61e4fd3fe14be1.tar.bz2
lombok-0236721d8d3cde431d0a40995a61e4fd3fe14be1.zip
Updated documentation for @NonNull (and the changelog).
-rw-r--r--doc/changelog.markdown1
-rw-r--r--src/lombok/NonNull.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown
index a74990e4..fe39a509 100644
--- a/doc/changelog.markdown
+++ b/doc/changelog.markdown
@@ -4,6 +4,7 @@ Lombok Changelog
### v0.8.4
* All generated methods now make their parameters (if they have any) final. This should help avoid problems with the 'make all parameters final' save action in eclipse. [Issue #40](http://code.google.com/p/projectlombok/issues/detail?id=40)
+* Okay, this time _really_ added support for @NonNull and @NotNull annotations. It was reported for v0.8.3 but it wasn't actually in that release. @Nullable annotations are now also copied over to the getter's return type and the setter and constructor's parameters (but, obviously, no check is added).
### v0.8.3
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 <code>@NonNull</code> or <code>@NotNull</code>.
+ *
+ * WARNING: If the java community ever does decide on supporting a single @NonNull annotation (for example via JSR305), then
+ * this annotation will <strong>be deleted</strong> from the lombok package. If the need to update an import statement scares
+ * you, you should use your own annotation named <code>@NonNull</code> instead of this one.
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
@Retention(RetentionPolicy.CLASS)