RFR: JDK-8310267: Javadoc for Class#isPrimitive() is incorrect regarding Class objects for primitives [v3]
Pavel Rappo
prappo at openjdk.org
Fri Jun 23 18:14:05 UTC 2023
On Fri, 23 Jun 2023 17:57:22 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> Correct misstatement that the Class object for a primitive type can only be be access via fields like java.lang.Integer.TYPE.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix typo.
Only after I have approved the change, did I re-read the whole thing again. Would you be able to fix this in this PR too? (Sorry.)
/**
* Determines if the specified {@code Class} object represents a
* primitive type.
...
There's no "specified class object", it's **this** class object. That method has zero parameters.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14574#issuecomment-1604659632
More information about the core-libs-dev
mailing list