Use the serialVersionUID or suppress warnings?
- by Okami
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