Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8299501

Usage of constructors of primitive wrapper classes should be avoided in java.util API docs

    XMLWordPrintable

Details

    Backports

      Description

        A DESCRIPTION OF THE PROBLEM :
        There are several code samples in the Java SE API documentation still using constructors of primitive wrapper classes, which are deprecated for removal. They should be replaced by valueOf factory methods or auto-boxing.

        Here's what I found:

        java.util.Arrays.equals(double[], double[])
        java.util.Arrays.equals(double[], int, int, double[], int, int)
        java.util.Arrays.equals(float[], float[])
        java.util.Arrays.equals(float[], int, int, float[], int, int)


        Attachments

          Issue Links

            Activity

              People

                jlu Justin Lu
                tongwan Andrew Wang
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: