commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <>
Subject Re: [csv] Serializable on CSVFormat
Date Mon, 12 Mar 2012 08:47:11 GMT
Le 12/03/2012 00:16, Benedikt Ritter a écrit :

> I just saw that CSVFormat implements Serializable, but neither does it
> provide a no-arg constructor nor any of the special serialization
> methods (and it has no custom serialUID). Is this the way it is
> supposed to be?

I wrote a test and it seems the serialization works fine. I think the 
no-arg constructor is only required if the class is expected to be 
subclassed, which isn't the case for CSVFormat. The UID is generated 
automatically by the compiler.

Emmanuel Bourg

View raw message