diff options
| author | Stephan Herrmann | 2012-07-27 15:38:51 +0000 |
|---|---|---|
| committer | Stephan Herrmann | 2012-07-28 09:53:41 +0000 |
| commit | bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082 (patch) | |
| tree | 15a4f8e5b692e009deee7999186d15d32aae12ea | |
| parent | 582bc933207dd5993c4f5677036ca6833f164aa2 (diff) | |
| download | eclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.tar.gz eclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.tar.xz eclipse.jdt.core-bdffbad17d807f0dd3ee0d4fceef5b80cf8a3082.zip | |
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.java | 10 |
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 bb0f9b9460..d5e5aa7077 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>, |
