private Class<?> readNewClass(boolean unshared) throws ClassNotFoundException, IOException {
  ObjectStreamClass classDesc=readClassDesc();
  if (classDesc == null) {
    throw missingClassDescriptor();
  }
  Class<?> localClass=classDesc.forClass();
  if (localClass != null) {
    registerObjectRead(localClass,nextHandle(),unshared);
  }
  return localClass;
}

private Class < ? > readNewClass ( boolean unshared ) throws ClassNotFoundException , IOException { ObjectStreamClass classDesc = readClassDesc ( ) ; if ( classDesc == null ) { throw missingClassDescriptor ( ) ; } Class < ? > localClass = classDesc . forClass ( ) ; if ( localClass != null ) { registerObjectRead ( localClass , nextHandle ( ) , unshared ) ; } return localClass ; }
reads a new class from the receiver . it is assumed the class has not been read yet ( not a cyclic reference ) . return the class read .
