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

Remove superfluous use of boxing in ObjectStreamClass

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:

      Description

      Some of these seem superfluous, or possible misguided.

      $ grep valueOf src/java.base/share/classes/java/io/ObjectStreamClass.java
                              suid = Long.valueOf(0);
                  suid = Long.valueOf(0);
              suid = Long.valueOf(0);
              long suid = Long.valueOf(model.getSerialVersionUID());
              suid = Long.valueOf(in.readLong());
                      return Long.valueOf(f.getLong(null));

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jboes Julia Boes
              Reporter:
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: