...
This compliant solution declares the readObject()
and writeObject()
methods private
to limit their accessibility.
Code Block | ||
---|---|---|
| ||
publicprivate void writeObject(final ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); } publicprivate void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); } |
...