aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-07-27 11:38:51 (EDT)
committerStephan Herrmann2012-07-28 05:53:41 (EDT)
commitbdffbad17d807f0dd3ee0d4fceef5b80cf8a3082 (patch)
tree15a4f8e5b692e009deee7999186d15d32aae12ea
parent582bc933207dd5993c4f5677036ca6833f164aa2 (diff)
downloadeclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.zip
eclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.tar.gz
eclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.tar.bz2
Bug 385564 - [null] document which entities are affected byv20120728-095341
@NonNullByDefault Change-Id: Ie4794e6717b798d3132c4ad6a0d311e5be80b7e6
-rw-r--r--org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/NonNullByDefault.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/NonNullByDefault.java b/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/NonNullByDefault.java
index bb0f9b9..d5e5aa7 100644
--- a/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/NonNullByDefault.java
+++ b/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/NonNullByDefault.java
@@ -23,8 +23,14 @@ import java.lang.annotation.Target;
/**
* This annotation can be applied to a package, type, method or constructor in order to
- * define that all contained entities for which a null annotation is otherwise lacking
- * should be considered as {@link NonNull @NonNull}.
+ * define that contained entities for which a null annotation is otherwise lacking
+ * should be considered as {@link NonNull @NonNull}. Entities affected by
+ * <code>@NonNullByDefault</code> are:
+ * <ul>
+ * <li>method return values</li>
+ * <li>parameters of a method or constructor.</li>
+ * </ul>
+ * Local variables are <em>not</em> affected.
* <dl>
* <dt>Canceling a default</dt>
* <dd>By using a <code>@NonNullByDefault</code> annotation with the argument <code>false</code>,