#323 UnusedprivateMethod check flags serialization methods

release_4.0
closed
Check (274)
5
2012-10-10
2004-09-28
No

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
java.io.Serializable.

Discussion

  • Rick Giles

    Rick Giles - 2004-09-29

    Logged In: YES
    user_id=539926

    The check performs as documented. I think this should be
    submitted as an RFE instead of a bug.

     
  • Oleg Sukhodolsky

    Logged In: YES
    user_id=746148

    I've added new property which allows to configure the check
    to skip such methods. The change has been committed to CVS
    for 4.0

     

Log in to post a comment.