Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Tuesday, December 03, 2013

Eclipse “Not Declare Static Final SerialVersionUID” Warning


Whenever you write a Java class in Eclipse which implements java.io.Serializable interface, you’ll get this warning:
The serializable class XXXX does not declare a static final serialVersionUID field of type long

Why do we need serialVersionUID?

Tha ๐—”๐—ฃ๐—œ Design ๐—›๐—ฎ๐—ป๐—ฑ๐—ฏ๐—ผ๐—ผ๐—ธ

 Here is the ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐—”๐—ฃ๐—œ ๐—›๐—ฎ๐—ป๐—ฑ๐—ฏ๐—ผ๐—ผ๐—ธ broken down by architecture: ๐Ÿญ. ๐—ง๐—ต๐—ฒ "๐—ฅ๐—ฒ๐—พ๐˜‚๐—ฒ๐˜€๐˜-๐—ฅ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒ" ๐—ง๐—ฟ๐—ถ๐—ผ: ...