mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
7086604: (reflect) Clarifications to javadoc for getGeneric*Type methods in j.l.r
Reviewed-by: lancea, abuckley
This commit is contained in:
parent
94e1d7530f
commit
d3dd56d3b2
5 changed files with 10 additions and 10 deletions
|
@ -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}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue