diff options
author | Stephan Herrmann | 2014-07-20 09:15:50 +0000 |
---|---|---|
committer | Stephan Herrmann | 2014-07-22 13:03:15 +0000 |
commit | eba39b7d16632d43ea13707b696b73d1b911dc13 (patch) | |
tree | 07d90f177ad95eb06ba9e719f6e30f4196f1189e /org.eclipse.jdt.annotation | |
parent | 63231f253dc3aaae18caf57a7f77da85f8cefe96 (diff) | |
download | eclipse.jdt.core-eba39b7d16632d43ea13707b696b73d1b911dc13.tar.gz eclipse.jdt.core-eba39b7d16632d43ea13707b696b73d1b911dc13.tar.xz eclipse.jdt.core-eba39b7d16632d43ea13707b696b73d1b911dc13.zip |
Bug 439516 - [1.8][null] NonNullByDefault wrongly applied to implicit
type bound of binary type
- warning for explicit "<T extends Object>"
Diffstat (limited to 'org.eclipse.jdt.annotation')
-rw-r--r-- | org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/DefaultLocation.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/DefaultLocation.java b/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/DefaultLocation.java index 5d78d541f3..02677bfc38 100644 --- a/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/DefaultLocation.java +++ b/org.eclipse.jdt.annotation/src/org/eclipse/jdt/annotation/DefaultLocation.java @@ -80,7 +80,9 @@ public enum DefaultLocation { /** * Defines that a given {@link NonNullByDefault} annotation should affect all unannotated - * explicit type bounds within the scope of the annotated declaration. + * explicit type bounds within the scope of the annotated declaration. A type bound of + * type {@link java.lang.Object} is <strong>never</strong> considered as an explicit bound, + * i.e., <code>T extends Object</code> is never affected by {@link NonNullByDefault}. * * <h2>Example</h2> * <pre> @NonNullByDefault(TYPE_BOUND) |