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

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

    XMLWordPrintable

Details

    • b05
    • generic
    • generic

    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.net.SocketOptions.setOption(int, Object)

        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: