冷艳早晨

文章
4
资源
0
加入时间
3年0月28天

MyEclipse中出现“Add a serial version ID”的warning 解决办法

最近重新安装了MyEclipse,在设计一个不继承任何类的类时,不会有任何warning,但在设计一个子类时,编译器经常提示“warning”,在网上查了很多资料终于搞定了这个问题:如下测试提示:The serializable class FormatStr does not declare a static final serialVersionUID field of type long     发现在我继承一些类时,会提示要这个,我打开所继承的类,里面是这样写的:     static