cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Durchholz, Joachim" <>
Subject RE: Cayenne-generated classes need @SuppressWarnings("serial")
Date Tue, 04 Oct 2011 09:48:41 GMT
Are generated classes ever instantiated via new?
If not, SerialVersionUID does not serve any useful purpose, it's the programmer-written subclass
that gets asked for the SerialVersionUID.
In that case, it may help to declare the generated classes abstract. Abstract classes cannot
be deserialized, so the compiler should not complain.

An aside note:
Adding @SuppressWarnings might not be the best way to go, most warning names are not standardized
and hence differ between compilers.
I'm not sure whether "serial" is a standardized warning. I think it isn't but don't know the
reference doc to use for checking.


View raw message