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

Remove redundant null check in ObjectOutputStream.writeProxyDesc

XMLWordPrintable

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

      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()) {

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

              Created:
              Updated:
              Resolved: