Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2014-07-20 09:15:50 +0000
committerStephan Herrmann2014-07-22 13:03:15 +0000
commiteba39b7d16632d43ea13707b696b73d1b911dc13 (patch)
tree07d90f177ad95eb06ba9e719f6e30f4196f1189e /org.eclipse.jdt.annotation
parent63231f253dc3aaae18caf57a7f77da85f8cefe96 (diff)
downloadeclipse.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.java4
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)

Back to the top