||Seven Low-Cost Ways to Improve Legacy Code|
|Subject:||using final with Serializable classes|
I have a question about declaring member variables to be final in immutable classes. I agree with you that it is a trick to help the compiler enforce your own logic about the class. However when it comes to serializing these classes there is a problem. If I implement the serialization method
Showing messages 1 through 1 of 1.