Are there any plugins that can "automatically update" the serialVersionUID of classes as their structures change?
I am now using the GenerateSerialVersionUID plugin, but it generates the UID on demand, when requested by the user.
I was looking for something that could re-generate the UID as the class structure changes.
Does such a plugin exist?
Thanks,
Behrang
请先登录再写评论。
Why would you want that? How would you then deserialize old data?
It might be overkill, but mainly to change the serialVersionUID if I change the class structure such that it is no longer compatible with older versions for de/serialization.