Azzurite / evolutionchamber

Automatically exported from code.google.com/p/evolutionchamber
0 stars 0 forks source link

com.fray.evo.util.optimization.ArrayListInt is Serializable; consider declaring a serialVersionUID #220

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Bug: com.fray.evo.util.optimization.ArrayListInt is Serializable; consider 
declaring a serialVersionUID
Pattern id: SE_NO_SERIALVERSIONID, type: SnVI, category: BAD_PRACTICE

This class implements the Serializable interface, but does not define a 
serialVersionUID field.  A change as simple as adding a reference to a .class 
object will add synthetic fields to the class, which will unfortunately change 
the implicit serialVersionUID (e.g., adding a reference to String.class will 
generate a static field class$java$lang$String). Also, different source code to 
bytecode compilers may use different naming conventions for synthetic variables 
generated for references to class objects or inner classes. To ensure 
interoperability of Serializable across versions, consider adding an explicit 
serialVersionUID.

Original issue reported on code.google.com by netpr...@gmail.com on 21 Jul 2011 at 6:23

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r301.

Original comment by netpr...@gmail.com on 21 Jul 2011 at 6:24