private void writeNonProxyDesc(ObjectStreamClass desc,boolean unshared) throws IOException {
  bout.writeByte(TC_CLASSDESC);
  handles.assign(unshared ? null : desc);
  if (protocol == PROTOCOL_VERSION_1) {
    desc.writeNonProxy(this);
  }
 else {
    writeClassDescriptor(desc);
  }
  Class<?> cl=desc.forClass();
  bout.setBlockDataMode(true);
  if (cl != null && isCustomSubclass()) {
    ReflectUtil.checkPackageAccess(cl);
  }
  annotateClass(cl);
  bout.setBlockDataMode(false);
  bout.writeByte(TC_ENDBLOCKDATA);
  writeClassDesc(desc.getSuperDesc(),false);
}

private void writeNonProxyDesc ( ObjectStreamClass desc , boolean unshared ) throws IOException { bout . writeByte ( TC_CLASSDESC ) ; handles . assign ( unshared ? null : desc ) ; if ( protocol == PROTOCOL_VERSION_1 ) { desc . writeNonProxy ( this ) ; } else { writeClassDescriptor ( desc ) ; } Class < ? > cl = desc . forClass ( ) ; bout . setBlockDataMode ( true ) ; if ( cl != null && isCustomSubclass ( ) ) { ReflectUtil . checkPackageAccess ( cl ) ; } annotateClass ( cl ) ; bout . setBlockDataMode ( false ) ; bout . writeByte ( TC_ENDBLOCKDATA ) ; writeClassDesc ( desc . getSuperDesc ( ) , false ) ; }
writes class descriptor representing a standard ( i . e . , not a dynamic proxy ) class to stream .
