7086604: (reflect) Clarifications to javadoc for getGeneric*Type methods in j.l.r

Reviewed-by: lancea, abuckley
This commit is contained in:
Joe Darcy 2019-06-11 17:20:51 -07:00
parent 94e1d7530f
commit d3dd56d3b2
5 changed files with 10 additions and 10 deletions

View file

@ -917,7 +917,7 @@ public final class Class<T> implements java.io.Serializable,
*
* <p>If the superclass is a parameterized type, the {@code Type}
* object returned must accurately reflect the actual type
* parameters used in the source code. The parameterized type
* arguments used in the source code. The parameterized type
* representing the superclass is created if it had not been
* created before. See the declaration of {@link
* java.lang.reflect.ParameterizedType ParameterizedType} for the
@ -1097,7 +1097,7 @@ public final class Class<T> implements java.io.Serializable,
*
* <p>If a superinterface is a parameterized type, the
* {@code Type} object returned for it must accurately reflect
* the actual type parameters used in the source code. The
* the actual type arguments used in the source code. The
* parameterized type representing each superinterface is created
* if it had not been created before. See the declaration of
* {@link java.lang.reflect.ParameterizedType ParameterizedType}

View file

@ -266,7 +266,7 @@ public abstract class Executable extends AccessibleObject
*
* <p>If a formal parameter type is a parameterized type,
* the {@code Type} object returned for it must accurately reflect
* the actual type parameters used in the source code.
* the actual type arguments used in the source code.
*
* <p>If a formal parameter type is a type variable or a parameterized
* type, it is created. Otherwise, it is resolved.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -243,9 +243,9 @@ class Field extends AccessibleObject implements Member {
* Returns a {@code Type} object that represents the declared type for
* the field represented by this {@code Field} object.
*
* <p>If the {@code Type} is a parameterized type, the
* {@code Type} object returned must accurately reflect the
* actual type parameters used in the source code.
* <p>If the declared type of the field is a parameterized type,
* the {@code Type} object returned must accurately reflect the
* actual type arguments used in the source code.
*
* <p>If the type of the underlying field is a type variable or a
* parameterized type, it is created. Otherwise, it is resolved.

View file

@ -269,7 +269,7 @@ public final class Method extends Executable {
*
* <p>If the return type is a parameterized type,
* the {@code Type} object returned must accurately reflect
* the actual type parameters used in the source code.
* the actual type arguments used in the source code.
*
* <p>If the return type is a type variable or a parameterized type, it
* is created. Otherwise, it is resolved.

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -72,7 +72,7 @@ public interface TypeVariable<D extends GenericDeclaration> extends Type, Annota
/**
* Returns the {@code GenericDeclaration} object representing the
* generic declaration declared this type variable.
* generic declaration declared for this type variable.
*
* @return the generic declaration declared for this type variable.
*