On Sat, Sep 13, 2014 at 10:23 PM, Ryan Ernst <[email protected]> wrote:
> How would the Version be constructed with an invalid major version, given
> this exact check in the constructor (and the fact that the only way to
> construct is through Version.parse)?

I think it makes sense to be defensive here and have the check in two places.

This also guards against any future changes to Version that somehow
allow this ... it sure look like Version can't ever be created in an
"out of bounds" state today, but who knows tomorrow ...

Mike McCandless

http://blog.mikemccandless.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to