On Sat, Apr 11, 2009 at 08:45:31AM -0500, Luther Baker wrote:
> A quick question - is it generally acceptable to use
> 
>         private static final long serialVersionUID = *1L*;
> 
> for most the anonymous inner class I create using Wicket? Specifically, I'm
> asking about using the value (-1).
> 
> I've seen this idiom in the source but wasn't sure if there was some
> rational or serialization concerns I needed to be aware of before generally
> using (-1) everywhere.
> 
> -Luther

An arbitrary constant (1 or -1) works just as well as any other value.

Personally, I've disabled that warning in Eclipse and I don't add
serialVersionUID to any of my Wicket components.

jk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to