-3

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)"?

Community
  • 1
  • 1
Tegiri Nenashi
  • 3,066
  • 2
  • 19
  • 20
  • http://stackoverflow.com/questions/146715/use-the-serialversionuid-or-suppress-warnings – kosa Nov 01 '12 at 20:05

2 Answers2

4

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.

JB Nizet
  • 678,734
  • 91
  • 1,224
  • 1,255
0

For the most part, you do not have to worry about this warning. However, here is a brief summary about what this is and how you can PROPERLY fix it

SerialVersionUID Explanation

tier1
  • 6,303
  • 6
  • 44
  • 75