commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [csv] Why does CSVFormat provide a validate() method instead of validating parameters passed to its constructor?
Date Wed, 14 Mar 2012 21:33:08 GMT
Le 14/03/2012 22:25, Benedikt Ritter a écrit :

> I agree with you on this. However, I think it would be better to tie
> validation to the object creation. Maybe the Builder Pattern like
> shown in Effective Java p. 14-15 is a reasonable solution for this
> case? It would be a bit more verbose, but we can be sure that
> everything will be validated.

That's too verbose, please let's keep this simple API.

Emmanuel Bourg


Mime
View raw message