mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
437d69a220
commit
d663b5da10
7 changed files with 22 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1994, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1994, 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
|
||||
|
@ -1218,7 +1218,7 @@ public final class Float extends Number
|
|||
* of the integer value returned is the same as that of the
|
||||
* integer that would be returned by the call:
|
||||
* <pre>
|
||||
* new Float(f1).compareTo(new Float(f2))
|
||||
* Float.valueOf(f1).compareTo(Float.valueOf(f2))
|
||||
* </pre>
|
||||
*
|
||||
* @param f1 the first {@code float} to compare.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue