[jdk16] RFR: 8257636: Update usage of "type" terminology in java.lang.Class and java.lang.reflect
Joe Darcy
darcy at openjdk.java.net
Thu Dec 17 05:30:56 UTC 2020
On Wed, 16 Dec 2020 15:17:57 GMT, Julia Boes <jboes at openjdk.org> wrote:
> Another change to align with upcoming changes in the JLS terminology ('type' versus 'class and interface').
>
> For background see: https://download.java.net/java/early_access/jdk16/docs/specs/class-terminology-jls.html
>
> Where a class models types (as in the type of a variable or an expression), the change in terminology is mostly not applicable. For easier reviewing, paragraphs will only be reflowed before the PR is integrated.
Marked as reviewed by darcy (Reviewer).
src/java.base/share/classes/java/lang/reflect/ProxyGenerator.java line 209:
> 207: *
> 208: * @param classes an array of classes or interfaces
> 209: * @return the array of class and interface names; or null if classes is empty
Slightly better as "...or null if classes is null or empty".
-------------
PR: https://git.openjdk.java.net/jdk16/pull/36
More information about the core-libs-dev
mailing list