On Wed, 27 Oct 2021 09:57:43 GMT, swati sharma <[email protected]> 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