commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [math] serialVersionUID
Date Sat, 06 Aug 2011 16:37:05 GMT
On 2011-08-06, S├ębastien Brisard wrote:

> I've just realized that many classes I've submitted do not define
> serialVersionUID, which raises a warning. I have to say that it's
> something I've never done myself, but I'd like to avoid the committers
> the burden of inserting this. What's the rule for chosing this number?

Obviously different people have different rules. 8-)

I tend to run the JDK's servialver tool on the class before adding the
serialVersionUID and use that value, it is the value the class would
have without the long attribute in the first place.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message