3636/**
3737 * Implementing class for ParameterizedType interface.
3838 */
39-
4039class ParameterizedTypeImpl implements ParameterizedType {
4140
4241 private final Type [] actualTypeArguments ;
@@ -64,20 +63,19 @@ private void validateConstructorArguments() {
6463 }
6564
6665 /**
67- * Static factory. Given a (generic) class, actual type arguments and an owner type, creates a parameterized type. This class can
68- * be instantiated with a raw type that does not represent a generic type, provided the list of actual type arguments is empty. If
69- * the ownerType argument is null, the declaring class of the raw type is used as the owner type.
66+ * Static factory. Given a (generic) class, actual type arguments and an owner type, creates a parameterized type. This
67+ * class can be instantiated with a raw type that does not represent a generic type, provided the list of actual type
68+ * arguments is empty. If the ownerType argument is null, the declaring class of the raw type is used as the owner type.
7069 * <p> This method throws a MalformedParameterizedTypeException
71- * under the following circumstances: If the number of actual type arguments (i.e., the size of the array {@code typeArgs}) does
72- * not correspond to the number of formal type arguments. If any of the actual type arguments is not an instance of the bounds on
73- * the corresponding formal.
70+ * under the following circumstances: If the number of actual type arguments (i.e., the size of the array {@code
71+ * typeArgs}) does not correspond to the number of formal type arguments. If any of the actual type arguments is not an
72+ * instance of the bounds on the corresponding formal.
7473 *
7574 * @param rawType the Class representing the generic type declaration being instantiated
76- * @param actualTypeArguments a (possibly empty) array of types representing the actual type arguments to the parameterized type
75+ * @param actualTypeArguments a (possibly empty) array of types representing the actual type arguments to the
76+ * parameterized type
7777 * @param ownerType the enclosing type, if known.
78- *
7978 * @return An instance of {@code ParameterizedType}
80- *
8179 * @throws MalformedParameterizedTypeException if the instantiation is invalid
8280 */
8381 public static ParameterizedTypeImpl make (
@@ -92,10 +90,10 @@ public static ParameterizedTypeImpl make(
9290 * if this type represents a non-parameterized type nested within a parameterized type.
9391 *
9492 * @return an array of {@code Type} objects representing the actual type arguments to this type
95- *
96- * @throws TypeNotPresentException if any of the actual type arguments refers to a non-existent type declaration
97- * @throws MalformedParameterizedTypeException if any of the actual type parameters refer to a parameterized type that cannot be
98- * instantiated for any reason
93+ * @throws TypeNotPresentException if any of the actual type arguments refers to a non-existent type
94+ * declaration
95+ * @throws MalformedParameterizedTypeException if any of the actual type parameters refer to a parameterized type that
96+ * cannot be instantiated for any reason
9997 * @since 1.5
10098 */
10199 public Type [] getActualTypeArguments () {
@@ -112,16 +110,15 @@ public Class<?> getRawType() {
112110 }
113111
114112 /**
115- * Returns a {@code Type} object representing the type that this type is a member of. For example, if this type is {@code
116- * O<T>.I<S>}, return a representation of {@code O<T>}.
113+ * Returns a {@code Type} object representing the type that this type is a member of. For example, if this type is
114+ * {@code O<T>.I<S>}, return a representation of {@code O<T>}.
117115 * <p>If this type is a top-level type, {@code null} is returned.
118116 *
119- * @return a {@code Type} object representing the type that this type is a member of. If this type is a top-level type, {@code
120- * null} is returned
121- *
117+ * @return a {@code Type} object representing the type that this type is a member of. If this type is a top-level type,
118+ * {@code null} is returned
122119 * @throws TypeNotPresentException if the owner type refers to a non-existent type declaration
123- * @throws MalformedParameterizedTypeException if the owner type refers to a parameterized type that cannot be instantiated for any
124- * reason
120+ * @throws MalformedParameterizedTypeException if the owner type refers to a parameterized type that cannot be
121+ * instantiated for any reason
125122 */
126123 public Type getOwnerType () {
127124 return ownerType ;
0 commit comments