You need to configure your IDEA inspections accordingly.

See 
http://germanogiudici.wordpress.com/2011/09/16/how-to-generate-serialversionuid-with-intellij-idea-no-external-plugin-needed/
 - that way, a Serializable without a serialVersionUID will get a yellow 
warning and Alt-Enter creation of it.

Never understood why this is disabled by default.

Joern

On 11.01.2013, at 07:15, Ralph Goers <[email protected]> wrote:

> Yes. Anything that is Serializable should have an id.  I know Eclipse will 
> generate them but I don't use Eclipse. I believe IntelliJ will too but I've 
> never been able to get it to do it.  Not a fan of -1.
> 
> Ralph
> 
> On Jan 10, 2013, at 9:37 PM, Gary Gregory wrote:
> 
>> Hi All:
>> 
>> Many classes are missing serial version IDs.
>> 
>> Should we add them now? 
>> 
>> If no, why not?
>> 
>> If yes, what should the value be? The usual default of -1 or a generated ID?
>> 
>> Gary
>> 
>> -- 
>> E-Mail: [email protected] | [email protected] 
>> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
>> Spring Batch in Action: http://bit.ly/bqpbCK
>> Blog: http://garygregory.wordpress.com 
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
> 


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

Reply via email to