intellij serialversionuid generate

Answered

Intellij IDEA Settings

File -> Settings -> Editor -> Inspections -> JVM Languages :

Find serialization class without serialVersionUID and check it.

 

Back to the editor, clicks on the class name, ALT + ENTER (Windows), it will prompts the Add serialVersionUID field option.

A new serialVersionUID is auto-generated.

Done !!

2
1 comment

Waw, thanks! Clear and to the point, you saved me quite some time ^^

0

Please sign in to leave a comment.