|
1 | 1 | /* |
2 | | - * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
@@ -2793,7 +2793,7 @@ public static boolean equals(boolean[] a, int aFromIndex, int aToIndex, |
2793 | 2793 | * two array references are considered equal if both are {@code null}. |
2794 | 2794 | * |
2795 | 2795 | * Two doubles {@code d1} and {@code d2} are considered equal if: |
2796 | | - * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> |
| 2796 | + * <pre> {@code Double.valueOf(d1).equals(Double.valueOf(d2))}</pre> |
2797 | 2797 | * (Unlike the {@code ==} operator, this method considers |
2798 | 2798 | * {@code NaN} equal to itself, and 0.0d unequal to -0.0d.) |
2799 | 2799 | * |
@@ -2826,7 +2826,7 @@ public static boolean equals(double[] a, double[] a2) { |
2826 | 2826 | * in the same order. |
2827 | 2827 | * |
2828 | 2828 | * <p>Two doubles {@code d1} and {@code d2} are considered equal if: |
2829 | | - * <pre> {@code new Double(d1).equals(new Double(d2))}</pre> |
| 2829 | + * <pre> {@code Double.valueOf(d1).equals(Double.valueOf(d2))}</pre> |
2830 | 2830 | * (Unlike the {@code ==} operator, this method considers |
2831 | 2831 | * {@code NaN} equal to itself, and 0.0d unequal to -0.0d.) |
2832 | 2832 | * |
@@ -2876,7 +2876,7 @@ public static boolean equals(double[] a, int aFromIndex, int aToIndex, |
2876 | 2876 | * two array references are considered equal if both are {@code null}. |
2877 | 2877 | * |
2878 | 2878 | * Two floats {@code f1} and {@code f2} are considered equal if: |
2879 | | - * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> |
| 2879 | + * <pre> {@code Float.valueOf(f1).equals(Float.valueOf(f2))}</pre> |
2880 | 2880 | * (Unlike the {@code ==} operator, this method considers |
2881 | 2881 | * {@code NaN} equal to itself, and 0.0f unequal to -0.0f.) |
2882 | 2882 | * |
@@ -2909,7 +2909,7 @@ public static boolean equals(float[] a, float[] a2) { |
2909 | 2909 | * in the same order. |
2910 | 2910 | * |
2911 | 2911 | * <p>Two floats {@code f1} and {@code f2} are considered equal if: |
2912 | | - * <pre> {@code new Float(f1).equals(new Float(f2))}</pre> |
| 2912 | + * <pre> {@code Float.valueOf(f1).equals(Float.valueOf(f2))}</pre> |
2913 | 2913 | * (Unlike the {@code ==} operator, this method considers |
2914 | 2914 | * {@code NaN} equal to itself, and 0.0f unequal to -0.0f.) |
2915 | 2915 | * |
|
0 commit comments