private void readObject(java.io.ObjectInputStream s)
        throws java.io.IOException, ClassNotFoundException {
        // Note: This must be changed if any additional fields are defined
        Object a = s.readFields().get("array", null);
        if (a == null || !a.getClass().isArray())
            throw new java.io.InvalidObjectException("Not array type");
        if (a.getClass() != Object[].class)
            a = Arrays.copyOf((Object[])a, Array.getLength(a), Object[].class);
        U.putObjectVolatile(this, ARRAY, a);
    }
private void readObject ( java . io . ObjectInputStream s ) throws java . io . IOException , ClassNotFoundException { Object a = s . readFields ( ) . get ( "array" , null ) ; if ( a == null || ! a . getClass ( ) . isArray ( ) ) throw new java . io . InvalidObjectException ( "Not array type" ) ; if ( a . getClass ( ) != Object [ ] . class ) a = Arrays . copyOf ( ( Object [ ] ) a , Array . getLength ( a ) , Object [ ] . class ) ; U . putObjectVolatile ( this , ARRAY , a ) ; }
Reconstitutes the instance from a stream (that is, deserializes it).
@param s the stream
@throws ClassNotFoundException if the class of a serialized object
could not be found
@throws java.io.IOException if an I/O error occurs