oshdb icon indicating copy to clipboard operation
oshdb copied to clipboard

Serialization serialVersionUID

Open SlowMo24 opened this issue 5 years ago • 0 comments

At many places serializable classes do not specify a serialVersionUID. We have to decide what we want to do with this.

Bloch (Effective Java, Ch. 11) has a strong opinion on always declaring an explicit serialVersionUID. The automatic calculated UID is JVM-implementation dependent and expensive.

See also at the bottom of https://docs.oracle.com/javase/9/docs/api/java/io/Serializable.html

see https://gitlab.gistools.geog.uni-heidelberg.de/giscience/big-data/ohsome/oshdb/issues/86

SlowMo24 avatar Mar 13 '19 11:03 SlowMo24