private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  if (name == null)   throw new InvalidObjectException("name cannot be null");
  integrity=MarshalledWrapper.integrityEnforced(in);
  if (hash == 0) {
    try {
      computeHash();
    }
 catch (    Exception e) {
      throw new UnmarshalException("unable to calculate the type" + " hash for " + name,e);
    }
  }
}

private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( name == null ) throw new InvalidObjectException ( "name cannot be null" ) ; integrity = MarshalledWrapper . integrityEnforced ( in ) ; if ( hash == 0 ) { try { computeHash ( ) ; } catch ( Exception e ) { throw new UnmarshalException ( "unable to calculate the type" + " hash for " + name , e ) ; } } }
samples integrity protection setting ( if any ) of the stream from which this instance is being deserialized .
