Possible Duplicate:
Where do I change the setting in Eclipse so that it would generate serialVersionUID for Serializable classes?
What is with this “The serializable class does not declare a static final serialVersionUID field of type long” warning that keeps bugging me for well over a decade? I want neither polluting my code with suppress warning nor extra garbage constants. Is there Eclipse setting “Don’t bother me with those serialized warnings (I might reconsider this decision if I ever trip over this pitfall)”?
Window – Preferences. Type “serialVersionUID” into the filter box on the left. Select the highlighted node in the tree. Then type “serialVersionUID” in the filter box on the right. Choose “Ignore” in the combo box.