Use the serialVersionUID or suppress warnings?
Posted
by Okami
on Stack Overflow
See other posts from Stack Overflow
or by Okami
Published on 2008-09-28T20:51:05Z
Indexed on
2010/05/14
3:34 UTC
Read the original article
Hit count: 230
Dear all,
first thing to note is the serialVersionUID of a class implementing Interface Serializable is not in question. What if we create a class that for example extends HttpServlet? It also should have a serialVersionUID. If someone knows that this object will never be serialized should he define it or add an annotation to suppress those warnings?
What would you do and why?
Thanks for sharing your thoughts.
Okami
© Stack Overflow or respective owner