IntelliJ IDEA generating serialVersionUID

I am not sure if you have an old version of IntelliJ IDEA, but if I go to menu FileSettings…InspectionsSerialization issues → Serializable class without ‘serialVersionUID’` enabled, the class you provide give me warnings.

Enter image description here

If I try the first class I see:

Enter image description here

BTW: It didn’t show me a warning until I added { } to the end of each class to fix the compile error.

Leave a Comment