Inspection: 'readResolve()' or 'writeReplace()' not declared 'protected'?

So what? The serialization spec reads:

If the idea is that subclasses must be able to overwrite this to correctly handle their instances:
The classes where this inspection triggers for me are declared 'final'. I don't think 'protected' ever makes sense for final classes...

At least some explanation should be added to the inspections page.

Please sign in to leave a comment.