The methods writeObject(), readObject(), writeReplace
(), and readResolve() may be decalred by a class for the
JVM to call for special handling during
serialization/deserialization. Some of these methods are
required to be private while others can be. It is
incorrect for the UnusedPrivateMethod check to flag
these methods as unused. See the Javadoc for
Log in to post a comment.