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

Remove redundant null check in ObjectOutputStream.writeProxyDesc

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 24
    • None
    • core-libs

    Description

      There is implicit null check in line before.

           Class<?>[] ifaces = cl.getInterfaces();
           bout.writeInt(ifaces.length);
           for (int i = 0; i < ifaces.length; i++) {
               bout.writeUTF(ifaces[i].getName());
           }
           bout.setBlockDataMode(true);
           if (cl != null && isCustomSubclass()) {

      Attachments

        Issue Links

          Activity

            People

              aturbanov Andrey Turbanov
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: