James Raitsev
James Raitsev

Reputation: 96391

IDEA: Adding default serial version ID for Serializable howto?

Using IntelliJ, whenever I add implements Serializable it does not offer to add a default serial version id, similar to how Eclipse does it.

enter image description here

Using Eclipse, if i do the same, i get a warning and an offer to

enter image description here

How can i get the same behaviour in IntelliJ please?

Upvotes: 2

Views: 2020

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 401985

This inspection is disabled by default, you need to enable it in Settings:

enable inspection

Once enabled, the quick fix becomes available on Alt+Enter while standing on the highlighted class name:

Alt+Enter

Upvotes: 8

Related Questions