Odd warning on entity classes in IDE? (Serializable class does not define read/write object())

I don’t know if this has always been this way or not, but I’ve been into the text of my entity classes more in the last 2 days, and I noticed all of the class names are highlighted in a tannish color, and upon hovering to see why, it shows “Serializable class (name) does not define ‘readObject()’ or ‘writeObject()’”

Like I said, maybe it was always that way, but now that I’m into the source code more, I noticed it.

Is this an issue? These are all classes that were generated through normal IDE usage!

Hi,

This warning is an IntelliJ IDEA inspection. It can be disabled in File -> Settings -> Editor -> Inspections:
image

Note that this background check is useless for CUBA applications and it is disabled by default. I am not sure but probably you could have enabled it by accident.

1 Like