7026868: Apply specification changes fro 6505047
authordarcy
Fri, 11 Mar 2011 14:07:11 -0800
changeset 8840 a321232a781c
parent 8839 a4a4b4bda328
child 8841 b4422fa4f2e6
7026868: Apply specification changes fro 6505047 Reviewed-by: jjg
langtools/src/share/classes/javax/lang/model/element/Element.java
langtools/src/share/classes/javax/lang/model/element/TypeParameterElement.java
--- a/langtools/src/share/classes/javax/lang/model/element/Element.java	Thu Mar 10 14:37:52 2011 -0800
+++ b/langtools/src/share/classes/javax/lang/model/element/Element.java	Fri Mar 11 14:07:11 2011 -0800
@@ -197,11 +197,12 @@
      * <li> If this is a {@linkplain
      * PackageElement#getEnclosingElement package}, {@code null} is
      * returned.
-
+     *
      * <li> If this is a {@linkplain
      * TypeParameterElement#getEnclosingElement type parameter},
-     * {@code null} is returned.
-
+     * {@linkplain TypeParameterElement#getGenericElement the
+     * generic element} of the type parameter is returned.
+     *
      * </ul>
      *
      * @return the enclosing element, or {@code null} if there is none
--- a/langtools/src/share/classes/javax/lang/model/element/TypeParameterElement.java	Thu Mar 10 14:37:52 2011 -0800
+++ b/langtools/src/share/classes/javax/lang/model/element/TypeParameterElement.java	Fri Mar 11 14:07:11 2011 -0800
@@ -64,9 +64,9 @@
     List<? extends TypeMirror> getBounds();
 
     /**
-     * Returns {@code null}.
+     * Returns the {@linkplain TypeParameterElement#getGenericElement generic element} of this type parameter.
      *
-     * @return {@code null}
+     * @return the generic element of this type parameter
      */
     @Override
     Element getEnclosingElement();