private Object readResolve() throws InvalidObjectException {

        try {
            check(this.month, this.dayOfMonth);
            return this;
        } catch (IllegalArgumentException iae) {
            throw new InvalidObjectException(iae.getMessage());
        }

    }
private Object readResolve ( ) throws InvalidObjectException { try { check ( this . month , this . dayOfMonth ) ; return this ; } catch ( IllegalArgumentException iae ) { throw new InvalidObjectException ( iae . getMessage ( ) ) ; } }
@return  this instance
@throws  InvalidObjectException if the state is inconsistent
@serialData Checks the consistency