RFR: 8276048: Error in javadoc regarding Long method public static Long valueOf(String s)
Brian Burkhalter
bpb at openjdk.java.net
Wed Nov 3 17:38:23 UTC 2021
On Wed, 27 Oct 2021 09:57:43 GMT, swati sharma <duke at openjdk.java.net> wrote:
> 8276048: Error in javadoc regarding Long method public static Long valueOf(String s)
> Fix: Changing integer to {@code Long}
src/java.base/share/classes/java/lang/Long.java line 1141:
> 1139: * exactly as if the argument were given to the {@link
> 1140: * #parseLong(java.lang.String)} method. The result is a
> 1141: * {@code Long} object that represents the {@code Long} value
I think it should be `{@code long}`, i.e., the primitive type, not the class, for consistency with other numeric classes.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6135
More information about the core-libs-dev
mailing list