8299498: Usage of constructors of primitive wrapper classes should be avoided in java.lang API docs

Reviewed-by: naoto, darcy, rriggs, mchung, lancea
This commit is contained in:
Justin Lu 2023-01-11 17:18:39 +00:00 committed by Naoto Sato
parent 437d69a220
commit d663b5da10
7 changed files with 22 additions and 22 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2023, 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
@ -233,7 +233,7 @@ public final class Byte extends Number implements Comparable<Byte>, Constable {
* equal to the value of:
*
* <blockquote>
* {@code new Byte(Byte.parseByte(s, radix))}
* {@code Byte.valueOf(Byte.parseByte(s, radix))}
* </blockquote>
*
* @param s the string to be parsed
@ -262,7 +262,7 @@ public final class Byte extends Number implements Comparable<Byte>, Constable {
* equal to the value of:
*
* <blockquote>
* {@code new Byte(Byte.parseByte(s))}
* {@code Byte.valueOf(Byte.parseByte(s))}
* </blockquote>
*
* @param s the string to be parsed