Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This compliant solution declares the readObject() and writeObject() methods private to limit their accessibility.

Code Block
bgColor#ccccff
publicprivate void writeObject(final ObjectOutputStream stream) throws IOException {
  stream.defaultWriteObject();
}
	
publicprivate void readObject(final ObjectInputStream stream) throws 
    IOException, ClassNotFoundException {
  stream.defaultReadObject();
}

...